N1GE6 - Accounting and Reporting Console

The Accounting and Reporting Console is a powerful tool to visualize statistical values of the N1 Grid Engine 6.

After successful login, select the N1 Grid Engine 6 ARCo application. You are redirected to the Overview page, that shows you a list of predefined ARCo queries.

Overview Page

In the Overview page you have access to all Queries and Results which are defined in ARCo. You can change the view by clicking the corresponding register tab.

Query List

In the Overview page a table with the predefined queries is shown. The following columns are available:

Column

Description

Name

User defined name of the query

Category

For each query a category can be specified
This is useful for sorting and filtering

Last Modified

Timestamp of the last modification of the query

Query Type

Type of the query (simple or advanced query)

Available Actions

The buttons at the top of the table show the possible actions for the selected query. The buttons are only activated, if the action is possible. To select a query please click to radio button at the first column of the queries row

Action

Description

Executes the selected query. The Run Action is the default action. If you click on the name
of the query it is also executed.

Edit the selected query
(requires write priviliges)

Delete

Delete the selected query
(requires write priviliges)

Define a new simple query

Define a new advanced query

Filter

Define a filter for the Query List


Note: If the action buttons for edit and delete are not active if a query is selected please asked your administrator for write priviliges to the ARCo console.


Result List

Results of queries can be saved. The Result List shows a table with all available saved results. The columns are equal to the columns of the Query List.

Available Actions

Action

Description

View

View the selected Result

Delete

Delete the selected Result
(requires write privileges)

Filter

Define a filter for the Result List



Creating and Running Simple Queries

The query defines the data set that you want to retrieve. You can create simple queries, and the system formulates the SQL query string for you. Or if you know SQL and you want to write the query yourself, you can create advanced queries.

ProcedureHow to Create a Simple Query

Steps
  1. The following screen appears with three tabs showing common information like the query category and description. This information is optional. The Simple Query tab is the place where you define the query and the View tab where you define the configuration how to display the results of the query.

    Query List screen showing list of queries. Shows New Simple Queryand New Advanced Query buttons. Shows Run, Edit, and Delete buttons.

    Clicking on the Simple Query tab displays the Query definition page. The page is divided into:

    Simple query screen shows table, field, filter, row

    The single steps how to construct a simple query are outlined as follows.

  2. Select a table from the table list.

    simple select table a table from the table list

  3. Define the fields you want to see.

    shows field definition screen

    The Field Function describes the functionality used for the field. The following table lists the supported values of Field Function.

    Function 

    Description 

    VALUE 

    Use the current value of the field 

    SUM 

    Accumulate the values of the field 

    COUNT 

    Count the number of values of the field 

    MIN 

    Get the minimum value of the field 

    MAX 

    Get the maximum value of the field 

    AVG 

    Get the average value of the field 

  4. (Optional) Define Filters.

    You must specify at least one field before you can define filters.

    Part of the Simple Query screen showing AND/OR list, Field Namelist, Condition list, Requirement field, late_binding check box,Inactive check box.

    The Requirement field contains a value that is used for filtering the values returned by the query. The following list contains some examples of things that might go into the Requirement field.

    1 AND 100
    For a between condition.
    d%
    For a like condition.
    %d%
    For a like condition.
    %d%e%
    For a like condition.
    Wert-1', Wert-2', ... , 'Wert-n
    For an in condition.
  5. (Optional) Limit the number of data sets.

    If you want to limit the number of data sets, select the Limit Query To First check box. Then enter the number of data sets you want returned.

    Part of the Simple Query screen showing the Limit Query to Firstcheck box and the limit field.

  6. Click Save to save the query.

    Query List screen showing the Save button.

    The following figure displays the Save this Query As screen. Use the Query Name field to give your query a name, and then click Ok.

    Save This Query As screen showing the Query Name field and otherfields. Shows Ok and Cancel buttons.

    After you save your query, you return to a modified version of the Simple Query screen.

ProcedureHow to Create a View Configuration

Steps
  1. To change the view configuration for a query choose the View tab.

    To create a view for a saved query:

    The queries current view configuration displays.

  2. Declare how you want to view the results of your query.

    You can add three different sections to the view configuration, decide if additional information about the query is shown, and in which order it is shown.

    view 1 page

    On top there are jumplinks to jump to the corresponding section if it is available. The possible sections are Database Table, Pivot Table and Graphic. The View Configuration section is always visible and allows to switch on the display of the query description that has been entered on the common tab, the filter conditions from the filter list and the resulting SQL statement of the query definition or the content of the SQL tab for advanced queries.

    Pressing Add Database, Add Pivot, Add Graphic adds the corresponding section.

    For some queries, only a subset of the possible view selections are meaningful. For example, if you have only two columns to select from, pivot makes no sense.

    For the Database Table add and choose the columns that you need to display under Name and adjust their Type and Format. The order in which the columns are added will be the order in which the columns are presented. The selections that you make for this report do not affect the filters applied to the data.

    view table screen

    For the Pivot Table, add the pivot column, row, and data entries then choose the column Name, Type, and Format. To shift an entry to a different pivot type select it under Pivot Type.

    view pivot table

    For the Graphic section, you can attach the query data to different chart diagram types. The following chart types are available from the Diagram Type dropdown:

    There three different diagram types available:

    Bar and Pie types can be display with a 3D effect. Bar and Line diagrams can be drawn as stacked diagrams (values on the y-axis summarized).

    view graphic page

  3. Click Save or Save As to save your View configuration to the query.

  4. Click Run to run your query.

ProcedureHow to Define Series for Diagrams

There are two ways to define the data series for a diagram.

Steps
  1. Series from columns: All column values are added to a series. The name of the series is the column header

  2. Series from rows: All column values define the series. The names of the series is defined by the values of the label column. The values of the series are defined by the value column.


Example 5–1 The query “Accounting per Department” results in a table with the columns: time, department, and cpu.

example columns and rows table



Example 5–2 Displaying the Results- Selecting Configuration

To display the result in a pie chart select the following configuration:

example series config



Example 5–3 Displaying the Results - Pie Charts

The result will be a multiple pie charts

pie charts



Example 5–4 Cpu, Io, and Mem Usage Over All Departments

A query summarizes cpu, io, and mem usage over all departments:

Usage example



Example 5–5 Displaying the Results - Selecting Configuration

To display the results in a bar char select the following configuration

bar chart config page



Example 5–6 Displaying the Results - Bar Chart

The results will be a bar chart with three bars for each department:

shows the results, a bar chart with three bars for each department.


ProcedureHow to Run a Simple Query

Step

    You can run a simple query that you just created. You can also run a simple query that you previously saved.

ProcedureHow to Edit a Simple Query

Steps
  1. Select a query from the list on the Query List screen

  2. Click Edit.

    The selected Simple Query screen displays.

  3. Make changes to the Simple Query screen by navigating through the tabs and entering your changes as you would for creating a simple query .

  4. Save or run your changed query.

Creating and Running Advanced Queries

You must have previous experience writing SQL queries to use this feature of the accounting and reporting console.

ProcedureHow to Create an Advanced Query

Steps
  1. Click New Advanced Query on the Query List screen.

  2. Enter your SQL query in the text box.

    This is the only difference compared to the actions available for the Simple Query.

    Shows advanced query definition screen

  3. Save or run your query.

ProcedureHow to Run an Advanced Query

Step

    You can run an advances query that you just created. You can also run an advanced query that you previously saved.

    Query List screen showing list of queries. Shows the Run, Edit,and Delete buttons

ProcedureHow to Edit an Advanced Query

Steps
  1. Select a query from the list on the Query List screen

  2. Click Edit.

    A completed version of the Advanced Query screen displays.

  3. Make changes to the SQL query.

  4. Save or run your changed query.

Latebindings for Advanced Queries

The syntax for the latebindings in advanced queries is:

   LATEBINDING{ <column>;<operator>;<default value> }

   <column>    name if the latebinding
   <operator>  a SQL operator (e.g. = < > in .. )
   <value>     default value (e.g. 'localhost' )

Example 5–7 Latebindings Examples
select hostname from sge_host where LATEBINDING{hostname, like, 'a%'}
select hostname from sge_host where LATEBINDING{hostname, in, ('localhost', 'foo.bar')}