|
|||
6.6 SQL Accounting InterfaceMoab can be set up to write COMPLETED JOBS statistics to a MySQL database. The following setup shows how to accomplish this: First, Moab must be compiled with MySQL support. The global Makefile has a section of code that, by default, is commented out. Simply uncomment the following lines for Moab to compile with MySQL support. (The various file locations may change based on a particular site's MySQL installation):
You can configure Moab to use this interface by entering the following lines in the moab.cfg file. HOST, PORT, DATABASE, and TABLE can be adjusted based on a site's needs:
This sets up a native resource manager that communicates with the SQL database. Moab connects to the database with the name "Moab" and inserts completed job data into the Jobs table. To keep the communication protocol private, the following should be placed in the moab-private.cfg file:
Moab connects to the MySQL server as <username> using the password <password>. (By default, Moab connect using the primary administrator's username with no password.) If the WORKLOADQUERYURL parameter is not specified, a MySQL database by the name of "Moab" must be set up with a table named CompletedJobs (default values for database and table). The table must have the following format:
The <username> user must have insert privileges to this database/table. With this setup, Moab writes CompletedJob entries to the database with the following data:
NOTE: Some versions of libc may not include the z (compression) library by default. This may result in the following error during compilation: To remedy this, add the flag -lz to the SQLLIB variable in the file Makefile.
|
|||
| © 2001-2008 Cluster Resources, Incorporated | |||