| 86 | | |
| 87 | | |
| | 86 | * The purpose of this script is |
| | 87 | * 1) to extract statistics from the different neb_<disk>_<directory> tables |
| | 88 | * 2) to delete the entries which have been marked as deleted in those tables |
| | 89 | * The nodes are arbitrarily grouped in sets (set0, ..., ippb, ...) |
| | 90 | * In the loop over the hosts (given as the script arguments), for each neb_<disk>_<directory> table : |
| | 91 | * Insert or update in the {{{CurrentDiskUsage}}} table, the size and count statistics for each set of entries grouped by role, stage, lifetime, and status; |
| | 92 | * Delete the entries which have been marked as deleted from the current table; |
| | 93 | * Delete old entries from the {{{CurrentDiskUsage}}} table |
| | 94 | * Update the daily statistics (using the {{{UpdateDailyByNode}}} stored procedure) |
| | 95 | * Update the weekly statistics (using the {{{UpdateWeeklyByNode}}} stored procedure) |