Skip to content

watchdog

Sylvain Fargier requested to merge wip-watchdog into master
  • Sample test (test:sse is the client, cmw:* server), the Header options missing is not happening every time.
  • Error is forced-triggered on reconnection, just in case the subscription does not emit an error, this will keep on triggering the watchdog until we have a correct data
  • By default 30s watchdog (started when we receive an error) with power of 2 back-off and max delay 1h
  test:sse message received :MessageEvent { type: 'message', data: '{"cycleName":"" ...}},"updateType":"UT_NORMAL"}', lastEventId: '', origin: 'http://localhost:8080' } +1s
  cmw:watchdog starting watchdog: 1 error(s), waiting 30 seconds +26s
  test:sse error received :MessageEvent { type: 'error', data: "Disconnected from 'LHCCollimator_OP.cfc-272-tcdev' : no heart-beat from server 'tcp://cfc-272-tcdev:4146'", lastEventId: '', origin: 'http://localhost:8080' } +10s
  test:sse error received :MessageEvent { type: 'error', data: "Failed to connect to server 'LHCCollimator_OP.cfc-272-tcdev' : failed to connect to 'tcp://cfc-272-tcdev:4146'", lastEventId: '', origin: 'http://localhost:8080' } +3s
  test:sse error received :MessageEvent { type: 'error', data: "Failed to connect to server 'LHCCollimator_OP.cfc-272-tcdev' : failed to connect to 'tcp://cfc-272-tcdev:4146'", lastEventId: '', origin: 'http://localhost:8080' } +11s
  test:sse error received :MessageEvent { type: 'error', data: "Failed to connect to server 'LHCCollimator_OP.cfc-272-tcdev' : failed to connect to 'tcp://cfc-272-tcdev:4146'", lastEventId: '', origin: 'http://localhost:8080' } +10s
  cmw:endpoint error watchdog triggered, reconnecting +2m
  cmw:watchdog starting watchdog: 2 error(s), waiting 60 seconds +30s
  test:sse error received :MessageEvent { type: 'error', data: "Failed to connect to server 'LHCCollimator_OP.cfc-272-tcdev' : failed to connect to 'tcp://cfc-272-tcdev:4146'", lastEventId: '', origin: 'http://localhost:8080' } +6s
  test:sse error received :MessageEvent { type: 'error', data: 'Header options are missing for request, session might have expired', lastEventId: '', origin: 'http://localhost:8080' } +535ms
  cmw:endpoint error watchdog triggered, reconnecting +1m
  cmw:watchdog starting watchdog: 3 error(s), waiting 120 seconds +1m
  cmw:watchdog clearing watchdog +4ms
  cmw:watchdog clearing error count(3) +0ms
  test:sse message received :MessageEvent { type: 'message', data: '{"cycleName":""}', lastEventId: '', origin: 'http://localhost:8080' } +60s
  test:sse message received :MessageEvent { type: 'message', data: '{"cycleName":""}',"updateType":"UT_NORMAL"}', lastEventId: '', origin: 'http://localhost:8080' } +811ms
Edited by Sylvain Fargier

Merge request reports