Home / Snippets / How to Easily Increase Laravel Horizon Worker Process
How to Easily Increase Laravel Horizon Worker Process cover

How to Easily Increase Laravel Horizon Worker Process

447

2 years ago

0 comments

When running Laravel Horizon worker from the terminal "php artisan horizon" it typically will only create 1 worker/process. To easily start more worker processes you can open up a new terminal and call the "php artisan horizon" again.
php artisan horizon
Now when you have many queues, the workload will be shared amongst your worker/process.

Before: Laravel Horizon 1 Process/Worker


Laravel Horizon 1 worker/process

After: Laravel Horizon 2 Process/Worker


Now it will spawn a new process and the workload will be shared.
Laravel Horizon 2 worker/process

If you find this snippet helpful do share them with your friends, cheers.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this