[MXS-4377] Define a set of common options for MaxScale configuration sections Created: 2022-11-02  Updated: 2023-05-22  Resolved: 2023-05-22

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

Type: New Feature Priority: Minor
Reporter: Pon Suresh Pandian (Inactive) Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None
Environment:

All environments


Sprint: MXS-SPRINT-181, MXS-SPRINT-182

 Description   

Heading was: Define a set of common options for MaxScale Monitors

Hi Team,

Currently I have a number of monitors and services that all share the same config options.. Is it possible to define a set of common options. For example I define two monitors like,

[app1-monitor]
type=monitor
module=mariadbmon
servers=app1
user=maxscale_monitor
password=etcetc
monitor_interval=2000
backend_connect_timeout = 3
backend_connect_attempts = 5
 
[app2-monitor]
type=monitor
module=mariadbmon
servers=app2
user=maxscale_monitor
password=etcetc
monitor_interval=2000
backend_connect_timeout = 3
backend_connect_attempts = 5
 
Is it possible to compact this down to
 
[app1-monitor]
servers=app1
include monitor-common <--- as an example
 
[app2-monitor]
servers=app2
include monitor-common <--- as an example
 
[monitor-common] <--- or some other keyword
type=monitor
module=mariadbmon
user=maxscale_monitor
password=etcetc
monitor_interval=2000
backend_connect_timeout = 3
backend_connect_attempts = 5



 Comments   
Comment by Johan Wikman [ 2023-05-09 ]

ponsuresh.pandians Here's the documentation for the feature as it will appear: https://github.com/mariadb-corporation/MaxScale/blob/develop/Documentation/Getting-Started/Configuration-Guide.md#include-1

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