You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this would be useful, but the idea is that, perhaps we may want to start many tasks at the same time, but starting this many tasks at the same time would cause system instability, so individual tasks are required to sleep a bit before they start working, to ease out the workload spike.
The main goal is to prevent performance spikes and dips to ensure system stability. This will become important when we may want to start many async tasks at the same time.
One way to do it is to start many tasks but let them separately sleep randomly at the start of the task. This prevents CPU spikes, but will eat up process IDs. This cannot be good when we may suddenly have many "sleeping" processes, and it will mess with the PHP execution time limit.
The other way to do it is to let the task giver sleep a bit before actually starting the task, and tasks do not need extra sleep when they are run. This delays the task giver, but can prevent the "many sleeper" situation from happening.
Not sure if this would be useful, but the idea is that, perhaps we may want to start many tasks at the same time, but starting this many tasks at the same time would cause system instability, so individual tasks are required to sleep a bit before they start working, to ease out the workload spike.
This might interact with #1.
The text was updated successfully, but these errors were encountered: