Horizon Suggestion Analyzer
| Analyzer ID | Category | Severity | Time To Fix |
|---|---|---|---|
horizon-suggestion | ⚡ Performance | Low | 15 minutes |
What This Checks
Recommends Laravel Horizon for better queue monitoring and management when using Redis queues.
Why It Matters
- Monitoring: Real-time queue metrics and failed job tracking
- Management: Easy queue worker management and scaling
- Developer Experience: Beautiful dashboard for queue insights
Horizon provides essential visibility into queue operations that basic queue:work doesn't offer.
How to Fix
Quick Fix (5 minutes)
bash
composer require laravel/horizon
php artisan horizon:install
php artisan migrateProper Fix (30 minutes)
Install and Configure:
bash
composer require laravel/horizon
php artisan horizon:install
php artisan migrate
# Configure
php artisan vendor:publish --tag=horizon-configStart Horizon:
bash
php artisan horizonProduction Supervisor Config:
ini
[program:horizon]
process_name=%(program_name)s
command=php /path/to/artisan horizon
autostart=true
autorestart=true
user=forge
redirect_stderr=true
stdout_logfile=/path/to/horizon.log
stopwaitsecs=3600References
Related Analyzers
- Queue Driver Configuration Analyzer - Ensures a proper queue driver configuration for optimal performance and reliability