From:"Shankar, Murali" <firstname.lastname@example.org>
Sent Time:2017-09-14 12:04:32 (Thursday)
To: "email@example.com" <firstname.lastname@example.org>, "email@example.com" <firstname.lastname@example.org>
Subject: Re: How to use Archiver Appliance to archive PVs of only the latest period of time
>> In order to save storage space, we just want to archive PVs of the latest one month.
You should be able to create a policy for these 5000 PV's with a partition granularity of a month. That is, in your policies.py file, your LTS
(or MTS) can be something like
If you add PV's to the archiver using this policy, you should be able to store data in chunks of one month each.
>> the requirement may be adjusted to three or six months in future)
You could then delete the older data using a Python script. Or, if you decided to keep, let's say four months you could add a blackhole plugin after this plugin. For example,
LTS -> partitionGranularity=PARTITION_MONTH&hold=5&gather=1 followed
Final -> 'blackhole://localhost'
would keep at least (5-1)=4 months data in your LTS.
For more details, please see http://slacmshankar.github.io/epicsarchiver_docs/api/edu/stanford/slac/archiverappliance/PlainPB/PlainPBStoragePlugin.html
Hope that helps.