Member Since 1 Year Ago
1,080 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
@neilstee ah ok I found
'use' => 'default',
horizon.php. I think this is how Horizon know which Redis connection to use
Thank you very much for the very detailed reply!
I have actually done all the steps that you mentioned. But still I observed that I can still see jobs submitted to redis_b on my horizon which is supposed to be monitoring redis_a only.
Actually I realize that my question can be summarised by:
How do we set which queue connection, Horizon should monitor? Is it always the default queue connection only?
Started a new Conversation [LARAVEL HORIZON] How To Specify Which Queue Connection Laravel Horizon Uses
I have 2 Redis connections (
Redis A and
Redis B) on my Laravel application.
My Laravel application (consists of multiple servers/queue workers, lets call it
Application X) submit jobs to
Redis A queue and process the jobs in its workers.
Application X uses horizon to monitor the queue and trigger the workers.
Application X also submit jobs to
Redis B, but the one processing the jobs submitted to
Redis B is a different Laravel application (let's call it Application Y).
Application Y also has a Horizon enabled and it also has multiple servers to act as queue workers.
Application Y only have 1 Redis connection to
Redis B (no connection to
My questions is:
When setting up Horizon on server A, I have 2 "driver" defined in under "redis" connection on
database.php for Redis A and Redis B. On
queue.php, I have also defined 2 connections with "driver" as "Redis". How does Horizon in Application X knows which queue connection to use? Is it simply taking the default queue connection (which is taking value from
env('QUEUE_CONNECTION', 'sync')) Or is it simply monitoring all Redis-based queues defined in queue.php? I noticed that I can still see jobs that I submitted to Redis B in Pending jobs of horizon of Application X.
Started a new Conversation [LARAVEL HORIZON] Gracefully Shutting Down Horizon On A Multi Server Setup
We have a multi-server setup where each server is running
php artisan horizon through Supervisord (with autorestart configured)
In this setup when I run
php artisan horizon:terminate, does it gracefully shutdown all Horizon processes in all servers, or is it only terminating horizon on the server from where I ran the command?