crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 275 forks source link

Make rlink auto reconnect "managed only" #1892

Open om26er opened 3 years ago

om26er commented 3 years ago

Currently the autobahn-python's default WAMP reconnect logic is used if an rlink goes down. It would be useful if the reconnect interval was configurable.

om26er commented 3 years ago

That was a wrong assessment. It seems Crossbar tries to reconnect after every two seconds (with some variation). So it doesn't go into increasing intervals as autobahn python does.

om26er commented 3 years ago

Ok, I think it might be a good idea to disable auto-reconnect all together. If the rlink goes down for a few thousand realms, the re-connect attempts would look crazy on logs as well as CPU side.

oberstet commented 3 years ago

Ok, I think it might be a good idea to disable auto-reconnect all together. If the rlink goes down for a few thousand realms, the re-connect attempts would look crazy on logs as well as CPU side.

yes, I agree .. it seems (lets discuss) better to:

the holistic management of a logical unit "router cluster" spanning many nodes and rlinks was always the actual goal in CB center/edge etc .. the code for the initial setup of eg a full mesh of rlinks between a set of nodes to form a router cluster is already there! however, we miss those dynamically reacting code bits .. eg a rlink disappearing in a non-full mesh might be compensated by restarting that rlink, or a different rlink, or ...