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 upit takes too much time to stop prometheus using SIGTERM #1622
Comments
brian-brazil
added
the
kind/bug
label
May 11, 2016
This comment has been minimized.
This comment has been minimized.
|
It sounds like you've found the cause of #1549. Do you also have unbounded memory growth? I'd consider 5 minutes to be the upper limits on stopping local storage though, so a 5m shutdown isn't necessarily a problem. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil , the memory is normal, ~3.8G. it takes one hour not 5 minutes to stop prometheus. i think too many https://github.com/prometheus/prometheus/blob/master/storage/remote/queue_manager.go#L149-L156 |
This comment has been minimized.
This comment has been minimized.
|
Yeah, that code needs to be rewritten to keep the number of goroutines bounded to maxConcurrentSends. |
pydima
referenced this issue
May 19, 2016
Merged
storage/remote: Spawn not more than "maxConcurrentSends" goroutines. #1643
brian-brazil
closed this
in
#1643
May 20, 2016
brian-brazil
added
the
component/remote storage
label
May 26, 2016
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. |
guanglinlv commentedMay 11, 2016
hi,
it will takes about one hour to stop prometheus using
kill -SIGTERM <PID>. most of the time is stopping remote storage.https://gist.github.com/guanglinlv/ebdc1e237c261b9fda5d70fb6ada3d52
https://gist.github.com/guanglinlv/543c57646b4c30c57d129e619afd18d0
the dump is very large, ~ 25M, so i can not put it here. but i can give some summary
there are 54690 goroutines,
sendSamplestake 54628 goroutines.any help? thanks.