-
Notifications
You must be signed in to change notification settings - Fork 0
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
In case of low desired RPM, number of subscriber instances going to negative #3
Comments
This is actually a feature, not a bug. Line 671 in 8908cfa
the sleep time it starts with is (10+500)/2. Line 307 in 8908cfa
The most probable scenario here is that the sleep time throughout is remaining low enough for the RPM to be higher than 60(which is a pretty low RPM). |
As a fix for this we can simply go ahead and change the values of the min and max subscribe sleep time to be 500ms and 5000ms in the very same places Line 671 in 8908cfa
|
https://github.com/RiflerRick/b2/pull/7/files#diff-d12a83a064d0575f7b203852c581f88dL671 |
Based on the value of the |
the config environment variables that were used are:
In case the RPM is given a low value, the number of instances going to a negative value. The most probable cause of this would be that the rate at which new instances are created because of the number of instances going zero is actually less than the rate at which instances are getting downscaled due to RPM
The text was updated successfully, but these errors were encountered: