-
|
Dear all, I would have some questions about the retention policy of monitoring data. As they are intended to be primarly stored on OpenSearch I guess that it's sufficient to define a retention policy for the different indexes in OpenSearch. Now, as our OpenSearch infrastructure is not ready yet, we are currently storing them in the MySQL AccountingDB, but some tables, especially However, I'm not totally sure in which tables monitoring data are stored and how safe it is to simply delete entries based on the date. Note that we don't want to remove Accounting data, but only Monitoring ones. Could you please tell among the list of tables in the attached file CTA_AccountingTables.txt which are the ones hosting the monitoring data? As far as I understand for WMSHistory monitoring data, these are the following ones: but I'm not totally sure and also I'm not sure about which are the tables for the other categories of monitoring data. Would it be safe to remove entries from the concerned tables, for instance older than 1 month, based on Thank you, Luisa |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 4 replies
-
|
Hi, I personally do not have experience on selective deletes from the accounting DB. For WMSHistory, once we migrated to OpenSearch, we left both in parallel for a while and at some point we deleted the whole in MySQL. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @fstagni, thanks for these explanations. So I understand that the best would be that we setup OpenSearch as soon as possible. In the meanwhile, is it safe to completely remove the content of all the table ac_type__WMSHistory? I mean can you please confirm that it only impacts the plots obtained through the following selection?
If yes, we don't care to keep these data indeed and as an immediate result we would free 460 GB. Thank you, Luisa |
Beta Was this translation helpful? Give feedback.
-
|
That would be the main impact, but there's also the "ShareCorrectors": https://dirac.diracgrid.org/en/latest/AdministratorGuide/Configuration/ConfReference/Operations/JobScheduling/index.html which I believe will not impact you, for this I would prefer that @atsareg intervene |
Beta Was this translation helpful? Give feedback.
-
|
Hi @fstagni thank you for the confirmation. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, you can drop the current tables, and yes I think they will be re-created automatically. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @fstagni I've first tried with our certification instance:
and I confirm that restarting the Accounting_DataStore service recreates an empty table. However, I see that I can still generate non empty plots for WMSHistory. Is this due to the fact that I didn't dropped the Is it safe to remove it as well? Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
ok even: |
Beta Was this translation helpful? Give feedback.
-
|
ok thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @fstagni just to let you know that I've dropped the I would have another question, indeed I took the opportunity of this clean up to also drop WMSHistory tables for a specific old DIRAC Setup, called However in the logs of the AccountingDataStore I get errors related to the dropped tables of this old How can I avoid this error? Should I also remove the key tables for this old Setup? service |
Beta Was this translation helpful? Give feedback.
-
|
OK I will remove the CTA-Data tables and indeed in the ac_catalog_types I see also the old setups, e.g. : So I will also remove those entries right?
Concerning v9, yes I'm aware, this is still the legacy instance running in v8, but at some moment we will also move it to v9. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, remove those lines from |
Beta Was this translation helpful? Give feedback.
-
|
ok thanks. And I guess that for the old Setup I should also remove not only the WMSHistory tables but also the other types: correct? |
Beta Was this translation helpful? Give feedback.
-
|
Perfect thanks! All done and all working fine. Thanks a lot. |
Beta Was this translation helpful? Give feedback.

Hi,
the WMSHistory table growing fast was the original issue we used for moving something to OpenSearch.
The retentions are indeed policies in OpenSearch.
I personally do not have experience on selective deletes from the accounting DB. For WMSHistory, once we migrated to OpenSearch, we left both in parallel for a while and at some point we deleted the whole in MySQL.
You should not delete from the
intable. IIRC thetypeis basically the raw data (which means that, again IIRC it can be deleted. The bucket is what is used for display.