Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHigh goroutine usage in serverset.go #1221
Comments
tommyulfsparre
changed the title
serverset goroutine usages
High goroutine usage in serverset.go
Nov 14, 2015
brian-brazil
closed this
in
#1242
Dec 10, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tommyulfsparre commentedNov 14, 2015
One of our prometheus instances panic:ed with
runtime/cgo: out of memory in thread_start(possible due to #1223 ) and noticed that > 3k goroutines where in used by:As the serveset impl. is applying watches for the entire tree any changes to the members will spawn additional goroutines for already watched members. I added some debugging to prometheus to illustrate this:
The above is an aurora job which has been scaled up and down a couple of times
member_0000000140has 13 watches and therefore uses 13 goroutines.Wanted to file this to see if other has run into this and if my observations holds true.
If nobody bets me to it I can take a stab at it when time permits and file a PR.