spatie/laravel-dynamic-servers
Dynamically spin up and destroy servers from Laravel to handle variable queue workloads. Uses provider snapshots as templates and lets you determine server count (e.g., based on Horizon wait times) so extra workers are created automatically and removed when no longer needed.
You can set a hard limit on the amount of servers the package will create for a given server provider.
In the dynamic-servers config file you can set a maximum_servers_in_account value for each provider. By default, it is set to 20.
When we detect more that the given number of servers in your hosting server account we won't create any new servers, but we will fire the Spatie\DynamicServers\Models\Server\ServerLimitHitEvent.
If the throw_exception_when_hitting_maximum_server_limit is set to true in the config file, we'll also throw an exception.
How can I help you explore Laravel packages today?