Answer the question
In order to leave comments, you need to log in
Is it possible to create dynamic workers in Gearman?
Good afternoon,
I will describe the problem. Delayed posting in VK, users enter posts into the database and indicate when to send a post. php project. The script runs every 5 minutes, collects a pool of posts to send and posts. Post for a very long time. I want to speed it up by posting in multiple threads, Gearman is my eye. A few questions for those in the know:
Answer the question
In order to leave comments, you need to log in
Yes, you need to run multiple processes per task. If you want 10 threads, run 10 processes.
I personally used this thing to manage the number of processes https://github.com/brianlmoon/GearmanManager. Completely working solution. It seems like it can increase the number of processes on demand (did not use it).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question