archiver-appliance / epicsarchiverap

This is an implementation of an archiver for EPICS control systems that aims to archive millions of PVs.
Other
39 stars 39 forks source link

Simplify retrieval of retired PVs #132

Closed aawdls closed 1 year ago

aawdls commented 2 years ago

At present it is possible to retrieve data for a PV which is no longer archived, a "retired" PV, by specifying a template PV whose PVTypeInfo can be used instead. This is the retiredPVTemplate parameter. There are some drawbacks to this approach:

We have a proposal for a simpler mechanism. We observed that the only information used from the PVTypeInfo is the location of the data stores to be searched (the type itself comes from the PB files). The location of the data stores can be found instead from the policies.py file. The proposed change is:

This means that the client does not need to specify any extra parameters in order to retrieve data for a retired PV. This has been tested in our local test server and has the desired effect. Retired PV data can be retrieved from CS-Studio without any changes in the client.

This behaviour aims to be transparent to those not using it -

We welcome feedback on this approach. In particular, others may have different uses of their policies.py file which may need to be accounted for.

aawdls commented 2 years ago

cc @rjwills28 and @MJGaughran