By default, the the python client will attempt to reconnect by looping connection attempts to brokers on the broker list.
The reconnect loop will only attempt to connect to a broker after a set amount of time dictated by a backoff timer, to avoid spamming the network with connection attempts in the case of a large number of clients losing connection to their brokers at once.
The settings to control reconnect behavior can be seen in the OpenDXL Python Client Documentation for the dxlclient.client_config module, or below:
dxlclient.client_config
reconnect_back_off_multiplier
|
Multiples the current reconnect delay by this value on subsequent connect retries. For example, a current
delay of 3 seconds with a multiplier of 2 would result in the next retry attempt being in 6 seconds.
Defaults to 2
|
reconnect_delay |
The initial delay between retry attempts in seconds. The delay increases (“backs off”)
as subsequent connection attempts are made.
Defaults to 1 second |
reconnect_delay_max
|
The maximum delay between connection retry attempts in seconds
Defaults to 60 seconds (1 minute) |
reconnect_delay_random |
Get the randomness delay percentage (between 0.0 and 1.0). The default value is 0.25 |
reconnect_when_disconnected |
Whether the client will continuously attempt to reconnect to the fabric if it becomes disconnected
Defaults to True
|