Laravel Horizon
LaraKube CLI simplifies running Laravel Horizon by handling the process management and Redis requirements automatically.
🧱 What's Included​
- Redis Integration: Selecting Horizon automatically includes and configures a Redis instance in your cluster.
- Dedicated Container: LaraKube CLI scaffolds a specialized container that runs
php artisan horizon, isolated from your web traffic. - Master Process Monitoring: A built-in
readinessProbeusesphp artisan horizon:statusto ensure the queue master is healthy before signaling success.
Workflow​
Horizon is configured via your project's config/horizon.php. Since LaraKube CLI uses your local code, any changes to your worker configurations or queue names are picked up during the up process.
scaling​
In production, you can scale your Horizon workers by updating the replicas in your horizon-deployment.yaml. LaraKube CLI ensures that the master process and its workers have sufficient resources to handle your background workloads.