Create a CTA statistics tool
This issue is related to #729 (closed)
Problem to solve
We need a tool to compute everyday the amount of master files and bytes we have in CTA.
Intended users
CTA statistics plot
Proposal
-
This tool will query the TAPE table and for each tape, the amount of master files and bytes we have in it. It will also update the NB_MASTER_FILES and MASTER_DATA_IN_BYTES columns of the table TAPE with what it computed and set the DIRTY bit to false (issue #744 (closed)).
-
The total statistics computed will be stored in another database.
-
This tool will be runned every night (rundeck job ?).
-
[FOR THE FUTURE] If we notice that it is hammering too much the catalogue database, a cache can be implemented.