archiver-appliance / epicsarchiverap

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

PV can't automatically restore the connection #92

Open HongYi-Shern opened 4 years ago

HongYi-Shern commented 4 years ago

Hi, In some cases, when the machine is down or the device is faulty, the archive system will be disconnected from the ca server. When the fault is recovered, the pv cannot automatically restore the connection. what can be done to solve this problem?

Thank you.

slacmshankar commented 4 years ago

The archiver should automatically reconnect back to the PV. It may however take some time if you have a lot of disconnected PV's. CA throttles the searches down if the IOC has been inactive for a while. When everything is working, when the IOC starts up, the CA client in the archiver should detect a beacon anomaly and kick off searches for all disconnected PV's. I would check to see if the repeater is configured correctly etc.

If you want to force a reconnect and you have a list of PV's, you can simply pause and resume the PV. This forcibly shutdown's the CA channel and recreates it and usually results in an immediate reconnection.

Hope that helps.

HongYi-Shern commented 4 years ago

However, in the process of using the archiver appliance, when the connection is disconnected due to downtime or equipment failure, power on or failure recovery, pv will not automatically reconnect.

slacmshankar commented 4 years ago

In the PV details page for the PV, there should be a line item that looks like so: PVs Internal State Connecting Searches: 52 The number of searches is the number of CA searches that were sent out; this should increase slowly with time (a few searches per hour) if the archiver is sending out search requests. Is this happening?

HongYi-Shern commented 4 years ago

I observe for a while ,some pv can't automatically restore the connection ,but pause and resume it ,the pv will reconnect.

HongYi-Shern commented 4 years ago

@slacmshankar Hi Some PVs are refreshed normally, but the archive status is always Appliance assigned. Restarting IOC and archive appliance are useless. What is the problem?