sidekiq icon indicating copy to clipboard operation
sidekiq copied to clipboard

Running sidekiqswarm on docker container

Open yossiedri opened this issue 1 year ago • 5 comments

Hi Mike please advice on how to run sidekiqswarm on docker container thanks yossi

yossiedri avatar Jun 26 '24 10:06 yossiedri

Could you be more specific? What's the problem?

mperham avatar Jun 26 '24 12:06 mperham

We have sidekiq ent as a service (systemctl) and we moved our app to AWS k8s with docker and I want to know what the best practice in this configuration is.

From: Mike Perham @.> Date: Wednesday, 26 June 2024 at 15:51 To: sidekiq/sidekiq @.> Cc: yossi edri @.>, Author @.> Subject: Re: [sidekiq/sidekiq] Running sidekiqswarm on docker container (Issue #6346)

Could you be more specific? What's the problem?

— Reply to this email directly, view it on GitHubhttps://github.com/sidekiq/sidekiq/issues/6346#issuecomment-2191614516, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAI4K3M33RODPWKYEU7LQDTZJK2NXAVCNFSM6AAAAABJ5UIM76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGYYTINJRGY. You are receiving this because you authored the thread.Message ID: @.***>

yossiedri avatar Jun 27 '24 09:06 yossiedri

Oh, you are migrating from systemd to docker. I don't have a good answer for you. I can't help with 3rd party tooling which I have no experience with.

mperham avatar Jun 27 '24 17:06 mperham

I don't think we have a Docker wiki page but we do have https://github.com/sidekiq/sidekiq/wiki/Kubernetes

mperham avatar Jun 27 '24 17:06 mperham

And starting sidekiqswarm in Docker should be very similar to Sidekiq, just replace bundle exec sidekiq with SIDEKIQ_COUNT=2 bundle exec sidekiqswarm. Make sure you set SIDEKIQ_COUNT to reflect the CPU core count which the Docker container has access to.

mperham avatar Jun 27 '24 17:06 mperham