Following recent server update in France, I would like to propose having a Maintenance Mode when deploying any change on a production server.
I know that future releases should go smoothly but… we never know And it would prevent users using it during any sys admin activity and then ending up with weird bug cases that we don’t know how it has happened.
How I see it working:
- When a maintenance is planned, each instance super admin notify manualy its users a week or a couple of days earlier that the maintenance will take place at a particular time.
- At that particular time, the super admin can switch the platform to Maintenance Mode. Ideally the switch would be available in main configuration page, with an ON/OFF toggle.
- Once the Maintenance Mode is on, each logged user is signed out and each action targeting a production URL of that instance is redirected to a page like openfoodnetworkinstance.org/maintenance . Some examples that I like:
Just a simple message with fun picture on a major retailer in France (I know it’s for 404 error but you get the idea^^). The message says “Don’t panic our team is on it”:
Message + email notif when its back up:
4. During maintenance mode, super admins should still be able to login (IP restrictions ?..) in order to proceed to safety tests
5. When test are all green, super admins decides to switch the Maintenance Mode back OFF.
Cherry on the cake: alongside having to email our users to inform about maintenance mode, we could have also a banner on the platform telling them that the maintenance will occur and when (maybe only on admin side).