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
Fixes #19496 - passenger recycler #89
Conversation
LGTM, note you have |
6b85384
to
c95656d
Compare
Deleted |
LGTM one nitpick - I realized that 5 minutes by default is too tight, we max with 4 SIGTERMs with 90 seconds delay each which is in total 6 minutes. In the worst case, another process would be spawned. I suggest to run the cron job every 15 minutes by default, can you change the cronjob and also |
655bc0e
to
44d8c3e
Compare
Done. @lzap Can we merge this branch into master? As I will be doing the relevant packaging changes and bump the version. |
Sorry for late reponse, absolutely, I havent tested this version myself tho. |
@iNecas Can you please review this PR once and merge accordingly? |
extras/passenger-recycler.cron
Outdated
@@ -0,0 +1,3 @@ | |||
# Configuration file /etc/cron.d/passenger-recycler to run passenger-recycler | |||
# every 5 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick - it is every 15 minutes now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACKed
bin/passenger-recycler: comply with rubocop standard
44d8c3e
to
ce682dd
Compare
ce682dd
to
3025817
Compare
Ok, let's get this in. I'm bumping the version to |
Thanks, @iNecas I'll get the packaging changes ready. |
end | ||
|
||
def debug(msg) | ||
puts(msg) if CONFIG[:DEBUG] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: probably better to output to STDOUT (using warn vs puts)
@lzap, I am carrying over #78 here
Following things covered in this PR:
bin/passenger-recycler
to comply with Rubocop standards.extras
directory. Which can be used to reside files such as.cron, .conf
etc.passenger-recycler
./bin/foreman-maintain advanced procedure run passenger-recycler
Next steps:
bin/passenger-recycler
to/usr/bin/
extras/passenger-recycler
to/etc/cron.d/passenger-recycler
.PS: I have not renamed the
passenger-recycler
script and thinking to keep it that way.