-
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
AWS Beanstalk and sidekiq 6.0 + #4307
Comments
You should use a script which uses supervisord to watch and restart your Sidekiq processes. Here's one example: |
Would be great if there was an updated example for Elasticbeanstalk specifically documented for v6. The SO answer references a django application, not ruby. |
Finally found a way without dealing with supervisord: https://gist.github.com/ctrlaltdylan/f75b2e38bbbf725acb6d48283fc2f174 |
The real crime is EB forcing you to use Upstart 0.6.5 which is something like 10 years old. |
EB running Ruby on Amazon Linux 2 has removed support for Upstart. Any other configuration we can use to run Sidekiq on EB running Update: This worked for me: https://wiki.lyrasis.org/display/~elr37/Set+up+Sidekiq+for+Rails+app+on+AWS+Elastic+Beanstalk |
Sidekiq ~ 6 Finally a step by step guide on how to deploy: I spent over 160 hours figuring it out. Hope it helps you save time. |
@fromwolf You spent 160 hours building scripts to recreate the old, crappy deploy rather than using Stop creating PID file and logfile hacks manually. Let the operating system manage sidekiq and other services for you. That's literally the job of an operating system. |
Just sharing the example setup to run Sidekiq with |
For anyone coming from a google search, Amazon Linux 2 supports procfiles to determine the application(s) startup https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html Sidekiq can be easily loaded with lifecycle management by adding a single line to the
|
To create a different Procfile depending on with type of tier it is, I used an ENV variable and I created this script: .platform/hooks/prebuild/01_create_procfile.sh
|
The new 6.0 versions removes daemonization of sidekiq, but Elastic Beanstalk script uses pidfile and logfiles
Can you provide a guide to be able to use sidekiq 6 in beanstalk?
I see there is some ways to enable services and commands
https://stackoverflow.com/questions/21682443/how-to-install-and-enable-a-service-in-amazon-elastic-beanstalk
The text was updated successfully, but these errors were encountered: