hep-gc / dynafed_storagestats

Apache License 2.0
2 stars 2 forks source link

Add Periodicity (Frequency) Setting #66

Closed ffgalindo closed 5 years ago

ffgalindo commented 5 years ago

Allow the use of the setting "storagestats.periodicity" to enable periods to check each of the storage endpoints and set some sane default.

ffgalindo commented 5 years ago

Need to rename "periodicity" with "frequency".

ffgalindo commented 5 years ago

Setting has been renamed to frequency, and tests show to work. Only issue is that if one runs the script expecting to see the Storage Stats on STDOUT, and the checkpoint according to the setup frequency has not been reached, then nothing is shown as the endpoint will be skipped. This could be solved by adding a function that populates this information from what is available on memcache, or by adding a switch that forces all checkpoints to be checked. This will be dealt on it's own issue.