[MXS-2314] Allow Services to be Populated by Monitor Created: 2019-02-04  Updated: 2019-02-13  Resolved: 2019-02-11

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 2.4.0

Type: New Feature Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-2173 Introduce Cluster Concept Closed
Epic Link: Clustrix Integration
Sprint: MXS-SPRINT-75

 Description   

Currently the servers have to be separately defined for both the service and the monitor.

[Monitor1]
type=monitor
...
servers=Server1,Server2,Server3
 
[Service1]
type=service
...
servers=Server1,Server2,Server3

Since the set of servers is typically the same, this is both tedious and error-prone. By allowing a service to refer to a monitor, the servers of the service do not explicitly be listed but are defined by the monitor.

[Monitor1]
type=monitor
...
servers=Server1,Server2,Server3
 
[Service1]
type=service
...
monitor=Monitor1

This also makes it possible to allow the monitor to dynamically define the servers at runtime.


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