|
|
Space Requirements for the ARCo databaseThe Grid Engine product includes a tool called the Accounting
and Reporting Console (ARCo), which stores
reporting data from the qmaster in a relational database. The ARCo module of the Grid Engine product consists of the dbwriter and the
reporting module (a web application which runs inside the Java(TM) Web
Console). When the reporting functionality is enabled, the qmaster
writes reporting data into the reporting file, located at
<SGE_ROOT>/<cell>/common/reporting. This file contains raw
values in a format described in the
reporting(5)
man page. Which information is written into the reporting file can be configured with
the reporting_params parameter of the qmaster configuration (See
sge_conf(5)
). Importing of the reporting fileThe dbwriter module periodically looks for the reporting file. If the file exists, it will be renamed to reporting.processing, and the contents of the file (the raw values) will be imported into the database. After the file reporting.processing is completely processed, it is deleted by the dbwriter. Calculation of derived valuesBased on the raw values stored in the database, the dbwriter module calculates a set of derived values. The rules for the derived values are defined in the calculation file (By default at <SGE_ROOT>/<CELL>/dbwriter/<database type>/dbwriter.xml. Example:The following derived value rule calculates the derived value "h_load" (hourly load) which is an average of the raw value "np_load_avg". The calculation is performed every hour. The resulting derived values are stored in the same database table from which they were calculated. In this case the sge_host_values.
<!-- average load per hour -->
<derive object="host" interval="hour" variable="h_load">
<auto function="AVG" variable="np_load_avg" />
</derive>
Deletion of outdated valuesDeletion rules are also defined in the calculation file. A deletion rule defines how long a raw or derived value stays in the database. If correctly configured, the deletion rules keeps the database at an approximately constant size. Example:The following example deletes all the records from the sge_host_values table where "hv_variable" equals "np_load_avg" and the values are older than 7 days.
<delete scope="host_values" time_range="day" time_amount="7">
<sub_scope>np_load_avg</sub_scope>
</delete>
For detailed information please refer the Sun Grid Engine Administration Guide -- Section: Configuring DBWriter. Default configurationThe following table shows all the raw and derived values with their associated lifetimes, assuming the default configuration of the dbwriter module is used.
Estimating the space requirementsWith the knowledge of how the dbwriter module works, it is possible to estimate the space requirements of an ARCo database. Attached to this article is a spreadsheet which contains all the formulas required for such a calculation. The administrator only needs to enter the specific parameters of the Grid Engine cluster. Please note the additional comments which have been added as notes to the affected cells, such as descriptions of configuration parameters. Cells with added notes have a small, red box in the upper right corner. The calculation is based on the default configuration of the Grid Engine
product. The results may differ if the product configuration changes. Attachments: |
|
![]() |
By any use of this Website, you agree to be bound by these Policies and Terms of Use. |