Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The heartbeat monitoring is not working with Trollmoves Mirror #110

Open
pnuu opened this issue Dec 3, 2021 · 0 comments
Open

The heartbeat monitoring is not working with Trollmoves Mirror #110

pnuu opened this issue Dec 3, 2021 · 0 comments
Labels

Comments

@pnuu
Copy link
Member

pnuu commented Dec 3, 2021

Describe the bug
If a Mirror is used, the heartbeat monitoring doesn't work in either direction, to the Server and from the Client. This causes the Listeners to keep restarting.

To Reproduce

Run the commands shown here by adding heartbeat_alarm_scale = 1 to mirror.ini and client.ini configuration files.

Expected behavior
The Listeners should be restarted only if the connection is (temporarily) lost.

Actual results
This happens with every heartbeat cycle:

[2021-12-03 10:01:56,323 WARNING  trollmoves.client] Missing a heartbeat, restarting the subscriber to dict_values(['tcp://localhost:9012']).
[2021-12-03 10:01:57,324 DEBUG    trollmoves.client] Exiting listener tcp://localhost:9012
[2021-12-03 10:01:57,324 DEBUG    trollmoves.client] Starting listener tcp://localhost:9012
[2021-12-03 10:01:57,324 INFO     trollmoves.client] Subscribing to tcp://localhost:9012 with topics ['/foo', '/heartbeat/move_it_server', '/heartbeat/move_it_client']
[2021-12-03 10:01:57,324 INFO     posttroll.subscriber] Subscriber adding address tcp://localhost:9012 with topics ['pytroll://foo', 'pytroll://heartbeat/move_it_server', 'pytroll://heartbeat/move_it_client']
[2021-12-03 10:01:57,324 DEBUG    trollmoves.client] Subscriber <posttroll.subscriber.Subscriber object at 0x7f1c2ba86a00>
[2021-12-03 10:02:25,394 DEBUG    trollmoves.heartbeat_monitor] Missing heartbeat alarm!

Environment Info:

  • Trollmoves Version: 0.9.0

Additional context
The monitoring works between Server and Client, but not with Mirror in either direction. So could be something really simple.

@pnuu pnuu added the bug label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant