Number of workers #90
-
Hello everyone, I am thinking in using your images for my projects. All my projects are using queues, but I couldn't find anything about on to set the amount of workers that are picking up jobs. Seems that your container only uses a single worker when running PHP queue:work. How do you ensure that the command doesn't crash? Thank you I advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for stopping by @K2ouMais! What I would do in that case is keep 1 worker process per container, then use the orchestrator (like Swarm or K8s) to scale the job. If the process fails and exits with a non-zero exit code, the container will die. Hope this helps 👍 |
Beta Was this translation helpful? Give feedback.
Thanks for stopping by @K2ouMais!
What I would do in that case is keep 1 worker process per container, then use the orchestrator (like Swarm or K8s) to scale the job.
If the process fails and exits with a non-zero exit code, the container will die.
Hope this helps 👍