-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Intercept a sigterm to do extra logging? #2383
Comments
Generally you would do the alerting with whatever you're using to restart sidekiq (monit in this case). I use something other than monit and I have it send alerts to our slack channel. |
You should configure monit to do this. There's no way to do it in Sidekiq.
|
Thanks for the responses. I'll look into monit doing the alerts. |
@ryansch - What kind of service do you use for alerting? Can you I know some other options? |
There are a number of good choices for monitoring processes. I happen to know the guy who maintains https://github.com/mperham/inspeqtor 😉 |
To avoid once-in-a-while occurring memory leaks with our sidekiq workers, we've set up monit to restart the worker if its memory footprint exceeds a certain amount.
When the worker gets restarted (with sigterm), I'd like to send an Airbrake, as well as log it in Mongo, so we can see/analyze how often these workers are restarted.
Is there a clean way to do this with sidekiq? I haven't found any in the documentation yet.
The text was updated successfully, but these errors were encountered: