cppagent icon indicating copy to clipboard operation
cppagent copied to clipboard

AGENT Device Observationrate stops reporting

Open neildes2 opened this issue 1 year ago • 10 comments

We have witnessed the agent stop reporting Observation rate. It reports every 10 secs. after some days, it seems to stop. Is there a reason for this? By Design?

The device was offline and the adapter reporting last known values to the agent every minute. Agent clearly filters out dups.

Agent v2.2.0.14

neildes2 avatar Jan 03 '24 16:01 neildes2

The agent should keep reporting. It does duplicate removal, that may be why–the value never changes from 0. I can test it out.

The rates are not reported by the adapter; they are posted by a separate async activity in the pipeline that measures the observation delivery rate. It then posts the rate back into the pipeline.

  • W

On Jan 3, 2024, at 17:09, neildes2 @.***> wrote:

We have witnessed the agent stop reporting Observation rate. It reports every 10 secs. after some days, it seems to stop. Is there a reason for this? By Design?

The device was offline and the adapter reporting last known values to the agent every minute. Agent clearly filters out dups.

Agent v2.2.0.14

— Reply to this email directly, view it on GitHub https://github.com/mtconnect/cppagent/issues/388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6BCM6RSP3OACQK2POZ3DYMV7CTAVCNFSM6AAAAABBLUXUQSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DIMRYHA4DAMI. You are receiving this because you are subscribed to this thread.

wsobel avatar Jan 03 '24 16:01 wsobel

The buffer had numerous "ZERO" values sequencially. Doesnt look like it was stopping dups. Then it stopped. Is it possible that the agent is round to zero? Then when it actually stay ZERO it stops the dups?

neildes2 avatar Jan 05 '24 17:01 neildes2

I’ll check this out. It is odd behavior. Are there any conditions when it stops reporting? (Sent from mobile)On Jan 5, 2024, at 18:35, neildes2 @.***> wrote: The buffer had numerous "ZERO" values sequencially. Doesnt look like it was stopping dups. Then it stopped. Is it possible that the agent is round to zero? Then when it actually stay ZERO it stops the dups?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

wsobel avatar Jan 05 '24 19:01 wsobel

Can you attach the log files? It should log if it stops. (Sent from mobile)On Jan 5, 2024, at 20:38, William Sobel @.> wrote:I’ll check this out. It is odd behavior. Are there any conditions when it stops reporting? (Sent from mobile)On Jan 5, 2024, at 18:35, neildes2 @.> wrote: The buffer had numerous "ZERO" values sequencially. Doesnt look like it was stopping dups. Then it stopped. Is it possible that the agent is round to zero? Then when it actually stay ZERO it stops the dups?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

wsobel avatar Jan 05 '24 21:01 wsobel

Any luck finding the agent logs?

wsobel avatar Jan 09 '24 17:01 wsobel

No luck on the logs. waiting for it to happen again. But attached is a pic of a buffer capture. Notice it does fill up with ObservationRate all zeros every ten secs. The issue that happened showed this had stopped. image

neildes2 avatar Jan 11 '24 14:01 neildes2

Looks ok. There are a few reasons it can stop, the adapter dies or the pipeline is restarted. This can happen when the adapter reconnects and some commands are sent from the adapter to change the configuration.

I'm wondering if there is a race of the stop-and-start or something else that could cause it. I tried to reproduce and could not make it happen. It does log connection status and stats timer, so i need to check what's happening.

wsobel avatar Jan 11 '24 15:01 wsobel

Any progress on getting the logs?

wsobel avatar Jan 17 '24 18:01 wsobel

Having issues reproducing. Need more info.

wsobel avatar Jan 22 '24 22:01 wsobel

I wonder if this was related to issue #419. Try to retest with build 2.3.0.4.

wsobel avatar Mar 20 '24 23:03 wsobel

Is this still an issue? Still can't reproduce.

wsobel avatar Apr 30 '24 16:04 wsobel

Have not witnessed it lately. I will close it out for now. If I witnes again, I will find out the root cause and report an issue

neildes2 avatar Apr 30 '24 18:04 neildes2