[YT-CC-1204] Adds orphan monitoring to the sidekiq recipe #323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Github note: This closes issue #279
Description of your patch
Adds orphan monitoring to the sidekiq recipe
Recommended Release Notes
Adds orphan monitoring to the sidekiq recipe
Estimated risk
Low. Only the sidekiq recipe is changed. The new feature is disabled by default.
Components involved
sidekiq custom chef recipe
Description of testing done
Tested the unit tests on a solo environment with redis and sidekiq utility instances
QA Instructions
Enable both the redis and the sidekiq recipes.
Modify
custom-sidekiq/attributes/default.rb
and setsidekiq['orphan_monitor_enabled']
to trueUpload the chef recipe before booting the environment.
Boot a new cluster environment for the rails_activejob_example application
The cluster should have the following instances:
On the sidekiq instance:
/engineyard/bin/sidekiq_orphan_monitor
existscrontab -l
for the deploy user. Verify that a cron job was created to periodically run/engineyard/bin/sidekiq_orphan_monitor
On all the other instances:
/engineyard/bin/sidekiq_orphan_monitor
does not existcrontab -l
for the deploy user. There should be no cron job for/engineyard/bin/sidekiq_orphan_monitor