-
Notifications
You must be signed in to change notification settings - Fork 268
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
mongo server is stop, Reconnect Increase delay #208
Comments
why should we wait after error was detected? |
Control the frequency of reconnection,Reducing CPU Occupancy |
I think some top supervisor should be responsible for worker restart delay. Not the worker itself, as it know nothing about will it be restarted or not. |
Reconnection requires delay。Where to change, you are free |
it is not supported out of the box.
|
I think reconnect with delay is useful, but I can't promise I'll have a time implementing this in the nearest future. |
ok. |
mc_worker.erl
init()->
......
Error ->
receive after 3000 -> ok end, %%add
proc_lib:init_ack(Error)
end.
The text was updated successfully, but these errors were encountered: