Reverb with AutoScaling DDOs when scaling down #52187
-
I am running Reverb behind a network load balancer and AutoScaling it. The problem is: To reconnect to private channels the client needs to authenticate then the instance death causes a bunch of re-connections/authentications at the same second. It dont seems to be a bug but a dangerous behavior for high traffic applications that requires auto-scaling or spot instances. Wondering if there is someone with any suggestion to deal with it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
From a logical perspective, can't you shut down the instance gradually? I'll make a parallel with docker containers on scale down scenario. You stop new http connections to the container from the load balancer. In your situation the graceful shutdown should close connections gradually so that you can spread the re connection requests through a wider period of time. |
Beta Was this translation helpful? Give feedback.
-
Just an update for this discussion. I stop auto scaling the reverb service. It does not handle very well scaling down events. |
Beta Was this translation helpful? Give feedback.
Just an update for this discussion. I stop auto scaling the reverb service. It does not handle very well scaling down events.
For now keeping a fixed number of horizontal instances is the mos resilient option. This should be enought for most of the cases too.