| 1 |
oarnodecheck is a simple local node check mechanism working as follows: |
| 2 |
|
| 3 |
* the oarnodecheckquery script is meant to be called by OAR ping checker, |
| 4 |
to report the node health status. In OAR server's oar.conf: |
| 5 |
PINGCHECKER_TAKTUK_ARG_COMMAND="-t 3 broadcast exec [ /path/to/oarnodecheckquery ] |
| 6 |
|
| 7 |
* health status is bad as soon as any check log file exists in the checklog |
| 8 |
directory (~oar/checklogs/) |
| 9 |
|
| 10 |
* the directory of check scripts (/etc/oar/check.d/) is meant to contain admin |
| 11 |
defined scripts that perform checks with regard to possible errors |
| 12 |
|
| 13 |
* if and only if an error is detected, a checklog file must be created within |
| 14 |
the checklog directory (using the pathname defined by the CHECKLOGFILE |
| 15 |
environmenet variable) |
| 16 |
|
| 17 |
* the oarnodecheckrun must be run as root by cron (on an hourly basis for instance) |
| 18 |
to execute all scripts of the directory of check scripts |
| 19 |
|
| 20 |
* if cpuset is enabled, then oarnodecheckrun do not launch the check scripts |
| 21 |
while any job is running on the node; to avoid situations when oarnodecheckrun |
| 22 |
would never launch the check scripts, it creates a stamp file when the scripts |
| 23 |
are actually run |
| 24 |
|
| 25 |
* oarnodecheckquery checks for the existence of the oarnodecheckrun stamp file |
| 26 |
and if it is older than one hour, then it runs oarnodecheckrun before looking |
| 27 |
into the checklog directory (NB: the OAR ping checker is not called while at |
| 28 |
least one job is running on a node) |
| 29 |
|
| 30 |
* since oarnodecheckquery may run the check scripts, the OAR ping chekcer |
| 31 |
timeout must be tuned accordingly on the server side |
| 32 |
|
| 33 |
* the oarnodechecklist command lists the currently recorder check logs |
| 34 |
|
| 35 |
See the template script for a template of check script to place in the |
| 36 |
directory of check scripts (/etc/oar/check.d) |