This repository was archived by the owner on Jul 16, 2021. It is now read-only.
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
Configurable storage driver for maintenance mode (artisan up/down) #1944
Open
Description
Currently the maintenance mode works by writing a file, with some json contents, to the storage folder. This works great for apps deployed on a single server. When an app is scaled horizontally tough, it is a bit harder to put the application down. We'd have to run the down and up command on every server in the cluster, which isn't ideal. Especially in cases where we need to put the app in maintenance mode as soon as possible.
What if we made the storage method for the down command configurable. For instance larger Laravel deployments could use Redis to store the maintenance state. So when you run artisan down, the complete cluster is in maintenance mode.
Metadata
Metadata
Assignees
Labels
No labels