[MXS-1883] Turn server maintenance bit into separate variable Created: 2018-05-24  Updated: 2018-06-06  Resolved: 2018-06-06

Status: Closed
Project: MariaDB MaxScale
Component/s: mariadbmon
Affects Version/s: None
Fix Version/s: 2.3.0

Type: Task Priority: Major
Reporter: Johan Wikman Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: 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.



 Comments   
Comment by Esa Korhonen [ 2018-06-06 ]

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.

Generated at Thu Feb 08 04:10:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.