go-graphite / go-carbon

Golang implementation of Graphite/Carbon server with classic architecture: Agent -> Cache -> Persister
MIT License
801 stars 126 forks source link

[Q] Kill signal for graceful stop by flushing to Whisper files? #550

Open isavcic opened 1 year ago

isavcic commented 1 year ago

Hello,

What signal should be sent to the go-carbon process in order to gracefully stop it by flushing the cache to the Whisper files?

By searching through the code I found only this, but that covers only the config reloads and graceful stop by flushing to a dump file.

Thanks!

deniszh commented 1 year ago

Hi @isavcic

I think that's logic not currently implemented. I can be wrong, but I think it's design choice - flushing cache can take big amount of time, so, for sake of restart it's much faster to dump cache to file and load it back after restart.