| | 13 | * Every 4 hours (see schastel crontab on ippc11), the {{{Summary/snapshot.py}}} script is run and takes snapshots, i.e. statistics, of each storage node database. |
| | 14 | |
| | 15 | = {{{NodeRelated/refresh_table.py}}} Details = |
| | 16 | |
| | 17 | == User Doc == |
| | 18 | * This script runs on each storage node. Each storage node should run a number of instances on this script equal to the number of its storage partitions (i.e. 1 for the mhpcc nodes, 3 for the atrc and the stsci nodes). |
| | 19 | * The script uses the local mysql server and its {{{DisksMonitoring}}} database |
| | 20 | * '''If the script (resp. the mysql server) are overwhelming the host (nfs, I/O, swap...), FEEL FREE TO KILL (resp. STOP) THEM'''. If you stop the mysql server, think of restarting it. The script should be robust enough to deal with it in the worst case, it will send an e-mail to the MAILTO recipient defined in {{{NodeRelated/deployment/scripts/crontab.<node name>}}}. |
| | 21 | |
| | 22 | == Script Stages == |
| | 23 | * Constants are (should be) all defined in the Constants pseudo-class |
| | 24 | * Some initializations are performed (which disk is the script supposed to analyze, logging, ...) |
| | 26 | |
| | 27 | == Deployment == |
| | 28 | TODO: |
| | 29 | |
| | 30 | = {{{NodeRelated/update_table.py}}} Details = |
| | 31 | * The script depends on {{{ipp.lifetime_templates}}} |
| | 32 | |
| | 33 | = {{{~schastel/local/share/python/ipp/lifetime_templates.py}}} Details = |
| | 34 | |
| | 35 | See [wiki:Cluster_Storage_Notes] |
| | 36 | |
| | 37 | = {{{Summary/refresh_table.py}}} Details = |
| | 38 | |
| | 39 | |
| | 40 | = Tools = |
| | 41 | |
| | 42 | == {{{deneb_locate.py}}}: Locate a file using its nebulous storage key == |
| | 43 | * The "nebulous storage key" is something like gpc1/sc_test_01/stack/MD08.V2/skycell.128/MD08.V2.skycell.128.stk.418540.ppStack.mdc |
| | 44 | * Equivalent of the {{{neb-ls -p}}} command but uses the different {{{DisksMonitoring}}} databases; |
| | 45 | * Is installed in {{{~ipp/local/bin}}} and can be executed as user {{{ipp}}}; |
| | 46 | * {{{-h}}} to get help. |
| | 47 | |
| | 48 | == {{{}}} TODO Statistics == |
| | 49 | * |