Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Having the maintenance bit among the actual server state bits causes an update problem as while an admin sets the server into maintenance mode, the monitor may update the bits.
The problem can be removed by adding a separate boolean variable denoting the maintenance stante to the server and removing that bit from the server status. That way, only the administrator may update the in maintenance variable and only the monitor the server status bits.
The maintenance status of a server is still saved in the status bitfield. What has changed is that the admin can no longer modify the status of a monitored server. The admin can only request maintenance on/off on a monitored server. This request is tracked separately and processed by the monitor. Because the server status can no longer be changed by the admin, the server locking during a normal monitor loop is no longer required and was removed.