-
Notifications
You must be signed in to change notification settings - Fork 28
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
Goroutines may be prioritized incorrectly #54
Comments
One improvement that may improve this is refactoring server.go lifecycle-manager/pkg/service/server.go Lines 90 to 93 in 48c3bc7
We should move these checks up lifecycle-manager/pkg/service/server.go Lines 164 to 182 in 48c3bc7
|
Message validation has been refactored to avoid spinning up worker goroutines for invalid/duplicate messages, this might help a bit. |
It was noticed when a huge spike of terminating instances happen (150 instances + another 150 instances after few minutes), we may not have enough goroutines or do not prioritize some goroutines efficiently.
The result was that and event that was received started processing 5-6 minutes later and by that time the heartbeat had already expired.
It's possible that
newWorker
goroutine is trying to spawn but there are so many other goroutines that it cannot.We should load test and evaulate:
newWorker
andsendHeartbeat
goroutines.The goal is to make sure we can handle large spikes of scale-downs without starvation
The text was updated successfully, but these errors were encountered: