Closed gmitrev closed 6 years ago
Wow! It should be configurable.... Patches are welcome if you can write it :)
I've created a PR (https://github.com/treasure-data/serverengine/pull/93) that resolves this so I'm closing the issue for now.
I would suggest that changing the signal used to trigger the dump would be the best option: https://github.com/treasure-data/serverengine/blob/678bb269ab13e62277d28981b0c7047b146e72dd/lib/serverengine/signals.rb#L29
Perhaps SIGUSR1
?
serverengine
listens to theSIGCONT
signal and dumps stacktrace and memory information to/tmp/sigdump-${PID}.log
. This does not play well withsystemd
because it sends aSIGCONT
signal every time it tries to stop a service:The result of this is a lot of unneeded
/tmp/sigdump-*.log
files being generated on our servers that should be cleaned up manually.Is there a way to disable this without monkey-patching the signal here - https://github.com/treasure-data/serverengine/blob/master/lib/serverengine/worker.rb#L72?