I believe this will work fine as long as they all use the same redis server.
Jan 6, 2020
5
Level 16
Scale Laravel and Horizon (horizontally)
I need to scale up a Laravel app that uses Horizon and stick it behind a load balancer. Can I simply continue to run Horizon on each app node without fear of having the same job processed multiple times?
I am using the default Horizon config that comes with L6:
'environments' => [
'production' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'simple',
'processes' => 5,
'tries' => 3,
],
],
]
Level 20
1 like
Please or to participate in this conversation.