Spawn multiple queue workers #526
Unanswered
diogogpinto
asked this question in
Q&A
Replies: 1 comment
-
I haven't tested this myself, but scaling the service is definitely the way you want to go: https://docs.docker.com/engine/swarm/swarm-tutorial/scale-service/ It gets complicated when you go down that path (especially as you add many nodes). Be sure you have your services on the hosts that make sense to run your job and the volumes are properly shared. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm using serversideup/php 8.3 with nginx and fpm, following the official recommendations to run Laravel Queues (https://serversideup.net/open-source/docker-php/docs/laravel/laravel-queue).
I was wondering what's the best way to spawn/run multiple queue workers? Should I just add new entries to docker-compose (like queue-1, queue-2) or create replicas?
I'm wondering, performance wise, what would be the best fit and the recommended approach.
Thank you so much, and thank you to the devs for the awesome work!
Beta Was this translation helpful? Give feedback.
All reactions