Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
25.08.0
-
None
-
MXS-SPRINT-221, MXS-SPRINT-222, MXS-SPRINT-223, MXS-SPRINT-224, MXS-SPRINT-225, MXS-SPRINT-226
Description
Currently the servers to be monitored by Galera Monitor must be explicitly listed. That is quite unnecessary as all needed information can be obtained by probing the servers. Basically the only thing the monitor needs to know is the address of one server; after that it can find the rest. If a new server is added to the cluster, the monitor could notice that and act appropriately.
If a service then is configured with the cluster argument pointing to the monitor, it would be very simple to get the system up and running. All that needs to be provided to the monitor is the address of one server and the monitor would figure out the rest.
Implementation notes:
This feature is implemented as a manual command (discover-replicas), explained in Galera Monitor documentation. Automatic version can be added later. The command itself does not add the new servers to any services, as it would be unclear which services the servers should be added to. The new servers will be taken into use by services that use the cluster=MonitorName setting.
From MXS-5336:
Adding a feature where the galeramon also monitors galera membership.
this shoulds be decently easy to perform by monitoring the wsrep_incoming_adresses, additionnaly change in membership can be spotted by monitoring wsrep_conf_idideal features would be :
1. auto create the cortesponding server object upon successful connection (assuming same specs as other cluster member baring the ip/fqdn
it could look like :
auto-discovery=yes|no (default:no)2. add the new node to the monitor
it could look like :
auto-monitor=yes|no (default:no)3. upon option activation, try and add the new node a corresponding service(s)
it could look like
auto-add-to-service=<SERVICE-NAME1>[,<SERVICE-NAME2>,...]
Attachments
Issue Links
- is duplicated by
-
MXS-5336 galera monitor node autodiscovery
-
- Closed
-
I copied over the description of
MXS-5336. A note about the third point: using cluster=Monitor-Name automatically takes new servers into use in existing versions.