MaxScale Configuration Settings
Browse the comprehensive list of MariaDB MaxScale configuration parameters. This reference details valid values, default settings, and dynamic capabilities for servers, services, and monitors.
General
Filter
Type: filter
Mandatory: Yes
Dynamic: No
Description: The module parameter specifies the name of the filter module that is included in the routing chain.
Global Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables the logging of incoming REST API requests for auditing and monitoring purposes.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
GET,PUT,POST,PATCH,DELETE,HEAD,OPTIONS,CONNECT,TRACEDefault: No exclusions
Description: Provides a list of HTTP methods to be excluded from REST API audit logging, separated by commas.
Type: string
Mandatory: No
Dynamic: Yes
Default:
/var/log/maxscale/admin_audit.csvDescription: Defines the location of the REST API audit logs.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Allows HTTP Basic authentication for the REST API.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Enables or disables the MaxScale admin interface.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Enables or disables the graphical user interface (GUI) for the admin interface.
Type: string
Mandatory: No
Dynamic: No
Default:
"127.0.0.1"Description: Provides the network interface address that the REST API is listening to.
Type: enum
Mandatory: No
Dynamic: No
Values:
auto,HS256,HS384,HS512,RS256,RS384,RS512,PS256,PS384,PS512,ES256,ES384,ES512,ED25519,ED448Default:
autoDescription: Specifies the algorithm for signing JSON Web Tokens (JWTs) for the REST API.
Type: string
Mandatory: No
Dynamic: No
Default:
maxscaleDescription: Specifies the issuer ("iss") claim in the REST API-generated JSON Web Tokens.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Identifies the encryption key that is used to sign JSON Web Tokens.
Type: duration
Mandatory: No
Dynamic: No
Default:
24hDescription: Specifies the maximum duration of JWTs issued by the REST API.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Enables logging of authentication failures for the admin interface.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the client ID for OpenID Connect (OIDC) login authentication requests.
Type: password
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the client secret used for OIDC authentication requests.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Defines additional parameters that should be included in authorization requests for OIDC.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
auto,implicit,codeDefault:
autoDescription: Describes the OIDC authentication flow used for SSO.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Disables TLS certificate validation while retrieving OIDC certificates.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the OIDC provider's URL, which is needed to validate JWT.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Defines the PAM service that is used to verify read-only REST API users.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the PAM service used for authentication REST API users with read and write access.
Type: number
Mandatory: No
Dynamic: No
Default:
8989Description: Defines the port at which the REST API waits for incoming connections.
Type: string
Mandatory: No
Dynamic: No
Default:
%Description: Hosts can perform any REST API operation with read and write access.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Manages whether the GUI are accessible only over secure HTTPS.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Path to the CA sertificate for outgoing HTTPS requests.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Provides the path of the TLS public certificate in PEM format used by the REST API.
Type: string
Mandatory: No
Dynamic: No
Description: Defines additional TLS cipher configuration for the REST API.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Indicates the location of the TLS private key in PEM format that the admin interface uses.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Provides the passphrase needed to decrypt the admin interface's TLS private key.
Type: enum_mask
Mandatory: No
Dynamic: No
Values:
MAX,TLSv1.0,TLSv1.1,TLSv1.2,TLSv1.3,TLSv10,TLSv11,TLSv12,TLSv13Default:
MAXDescription: Specifies the allowed TLS protocol versions for the REST API.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Delegate the validation of tokens to an external server.
allow_duplicate_servers
Type: boolean
Default: false
Description: Allows multiple server definitions to use the same IP address and port combination.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Sets the connection timeout for retrieving user authentication data from backend servers.
Type: string list
Values:
allor list of auto tunable parameters, separated by,Default: No
Mandatory: No
Dynamic: No
Description: Allows automatic tuning of specified configuration parameters based on backend server values.
Type: monitor
Mandatory: No
Dynamic: Yes
Default: None
Description: Monitor name used for configuration synchronization
Type: string
Mandatory: No
Dynamic: No
Default:
mysqlDescription: Identifies the database that contains the
maxscale_configtable, which is used to synchronize configurations.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
5sDescription: Specifies how often MaxScale synchronizes configuration changes with the cluster.
Type: password
Mandatory: No
Dynamic: Yes
Default: None
Description:
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Timeout for config sync SQL operations.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Username used for configuration sync database access across MaxScale instances.
Type: path
Mandatory: No
Dynamic: No
Default: OS Dependent
Description: Specifies the ditrectory that contains MaxScale's MariaDB Connector-C authentication plugins.
Type: boolean
Default: false
Dynamic: No
Description: Specifies whether a core dump file is generated in the event that MaxScale crashes.
cors_allow_origin
Type: string
Default: N/A
Description: Enables CORS and sets the
Access-Control-Allow-Originheader to the specified value.
Type: path
Mandatory: No
Dynamic: No
Default:
/var/lib/maxscaleDescription: Specifies the location of MaxScale's data files directory.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Defines debug options equivalent to the
--debugcommand line argument.
disable_fcrdns
Type: boolean
Default: false
Description: Disables Forward-Confirmed Reverse DNS (fcRDNS) lookups for client connections.
disable_module_unloading
Type: boolean
Default: false
Description: Disables the unloading of modules at exit. This provides more accurate Valgrind leak reports when memory is allocated within shared libraries.
disable_statement_logging
Type: boolean
Default: true
Description: Disables the logging of SQL statements sent by MaxScale to backend servers.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
on_close,on_error,neverDefault:
neverDescription: Manages when MaxScale logs the last statements executed by a client session.
dump_network_traffic
Type: boolean
Default: false
Description: Dumps all raw network traffic to the log as
infolevel messages.
enable_cors
Type: boolean
Default: false
Description: Enables Cross-Origin Resource Sharing (CORS) support for the MaxScale REST API.
enable_module_unloading
Type: boolean
Default: true
Description: Re-enables module unloading at exit (overrides
disable-module-unloading)
enable_statement_logging
Type: boolean
Default: false
Description: Enables logging of all SQL statements sent by MaxScale monitors and authenticators to the backend servers.
exception_frequency
Type: integer
Default: true
Description: Defines the frequency of generated API exceptions.
gdb_stacktrace
Type: boolean
Default: true
Description: When enabled, MaxScale attempts to use GDB to generate detailed stack traces during a crash. Can be disabled with
gdb-stacktrace=false.
Type: integer
Default: 128
Dynamic: Yes
Description: Sets the number of entries in the reverse DNS lookup cache for client hostnames.
Type: enum
Dynamic: Yes
Values:
none,file,kmip,vaultDefault:
noneDescription: Defines the encrytion key manager that MaxScale uses.
Type: path
Mandatory: No
Dynamic: No
Default: OS Dependent
Description: Specifies the directory that MaxScale uses to locate modules.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Loads saved runtime changes at startup.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Defines what specific local interface to use when connecting to servers.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Includes function names to logged messages.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Log debug messages when enabled.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Log detailed info messages when enabled.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Log notice level messages when enabled.
Mandatory: No
Dynamic: Yes
Default:
10, 1000ms, 10000msDescription: Manages how frequently repeated errors or warnings are logged.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Log warning when a client with SUPER privilege connects.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Enable service-level warning logging.
Type: path
Mandatory: No
Dynamic: No
Default:
/var/log/maxscaleDescription: Defines the directory where log files are stored.
Type: number
Mandatory: No
Dynamic: Yes
Default:
10Description: Maximum number of authentication failures before temprarily blocking a host.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Enables logging of messages to the MaxScale log file.
Type: path
Mandatory: No
Dynamic: No
Default:
/etc/maxscale.modules.d/Description: Directory for module-specific configuration files.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Adds millisecond precision to logfile timestamps.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Deprecated - use cooperative monitoring instead.
Type: boolean
Default: true
Dynamic: No
Description: Save runtime configuration changes to disk.
Type: path
Mandatory: No
Dynamic: No
Default:
/var/lib/maxscale/maxscale.cnf.d/Description: Directory where runtime configuration changes are stored.
Type: path
Mandatory: No
Dynamic: No
Default:
/run/maxscaleDescription: Specifies the directory containing the MaxScale process ID (PID) file.
Type: size
Mandatory: No
Dynamic: Yes
Default: System Dependent
Description: Sets the maximum size of the query classifier cache.
Type: number
Mandatory: No
Dynamic: No
Default:
1Description: Deprecated and ignored.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Deprecated and ignored.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
0sDescription: Defines the interval for monitoring and rebalancing worker thread load. A value of
0disables this function.
Type: number
Mandatory: No
Dynamic: Yes
Default:
20Description: Load difference percentage that triggers thread rebalancing.
Type: number
Mandatory: No
Dynamic: Yes
Default:
10Description: Manages how many seconds of load to consider for rebalancing.
redirect_output_to_file
Type: boolean
Default: false
Description: Redirects
stdoutandstderrto the specified file path.
Type: boolean
Default: false
Dynamic: No
Description: Requires SSL for all listeners, servers, and the REST API.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Specifies how many statements MaxScale can store per session.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Location of the .secrets file for password encryption.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Defines how many log entries are stored in the session trace log.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a refular expression pattern used to filter session trace logs.
Type: path
Mandatory: No
Dynamic: No
Default:
/usr/share/maxscaleDescription: Defines the directory where static data assests are loaded.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Disables reverse DNS lookups of client IP addresses.
Type: enum
Mandatory: No
Dynamic: No
Values:
default,oracleDefault:
defaultDescription: Defines which SQL language mode the query classifier should expect.
sql_batch_size
Type: size
Default: 10MiB
Description: Sets the maximum batch size for REST API SQL statement processing.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Allows use of environment variables within MaxScale configuration files.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Writes log messages to the system journal via the system logging interface.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables sending metrics to OpenTelemetry Collector.
Type: stringlist
Default: empty
Dynamic: Yes
Mandatory: No
Description: Global attributes to send with every metric.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Path to trusted CA certificate (PEM) used for validating TLS connections in telemetry.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the file path to the TLS public certificate in PEM format for telemetry.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Disable TLS certificate validation for telemetry.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: TLS private key for encrypted telemetry.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
60sDescription: Defines the minimum interval between sending metrics to the telemetry collector.
Type: string
Mandatory: No
Dynamic: No
Default:
http://localhost:4318/v1/metricsDescription: Defines the OpenTelemetry endpoint where MaxScale pushes metrics.
Type: number or
autoMandatory: No
Dynamic: No
Default:
autoDescription: Manages the number of worker threads for routing client traffic.
Type: positive integer
Default: 256
Dynamic: No
Description: Hard limit for the number of worker threads.
Type: path
Mandatory: No
Dynamic: No
Description: Directory for low-overhead trace log files.
Type: size
Mandatory: No
Dynamic: Yes
Description: Amount of log data to keep in trace files.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
0sDescription: Defines the interval for automatically refreshing user accounts from backend servers.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
30sDescription: Maximum frequency for refreshing user accounts from backend servers after authentication failures.
Type: size
Mandatory: No
Dynamic: Yes
Default:
65536Description: High water mark for network write buffer throttling.
Type: size
Mandatory: No
Dynamic: Yes
Default:
1024Description: Low water mark to disable network write throttling.
Service
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Manages whether authentication data is loaded from one server or aggregated from all servers.
Type: monitor
Mandatory: No
Dynamic: Yes
Default: None
Description: Monitor that defines servers for this service.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
300sAuto tune: Yes
Description: Send pings to keep idle backend connections alive.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Disable session command history entirely.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Controls whether the root user is allowed to connect through MaxScale to backend servers.
Type: filter list
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a list of filters applied to client requests before routing to backend servers.
Type: boolean
Mandatory No
Dynamic: Yes
Default:
falseDescription: Send keepalive pings to any backends even when client is idle.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
-1sDescription: Time idle before pooling backend connections.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Log authentication failures and warnings.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enable service-level debug logging.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enable service-level info logging.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enable service-level notice logging.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enable service-level warning logging.
Type: number
Mandatory: No
Dynamic: Yes
Default: 0 in MaxScale, 15 in MaxScale Trial.
Minimum: 0 in MaxScale, 1 in MaxScale Trial.
Maximum: Unlimited in MaxScale, 15 in MaxScale Trial.
Description: Maximum number of simultaneous connections allowed to this service.
Type: number
Mandatory: No
Dynamic: Yes
Default:
50Description: Maximum session commands to store for replay.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
60sDescription: Maximum wait time for backend connection.
Type: durations
Mandatory No
Dynamic: Yes
Default:
0sDescription: Disconnects connection if data buffered longer than this duration.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the password the service uses to retrieve user accounts from backends.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Prune old session commands when limit exceeded the configured value.
Type: number
Mandatory: No
Dynamic: Yes
Default:
-1Description: Defines the number of statements MaxScale stores per session.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Role to activate after connecting to a server.
Type: router
Mandatory: Yes
Dynamic: No
Description: Defines the router module that a service uses to direct client connections to backend servers.
Type: server list
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the backend servers associated with the service.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Improves accuracy by enabling backend-based transaction state tracking.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Remove escape characters from database names when loading users grants from a backend server.
Type: target list
Mandatory: No
Dynamic: Yes
Default: None
Description: Nested services or servers for multi-level routing.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Username for retrieving user account information from backends.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the path to a JSON file containing additional user accounts for client authentication.
Type: enum
Mandatory: No
Dynamic: No
Values:
add_when_load_ok,file_only_alwaysDefault:
add_when_load_okDescription: Specifies when the user accounts file is read instead of or alongside server data.
Type: string
Mandatory: No
Dynamic: No
Default: None
Description: Custom version string sent in MySQL handshake.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
28800s(>= MaxScale 24.02.5, 25.01.2),0s(<= MaxScale 24.02.4, 25.01.1)Auto tune: Yes
Description: Specifies the idle timeout for client sessions before termination.
Settings for File-based Key Manager
Type: path
Mandatory: Yes
Dynamic: Yes
Description: Path to file containing encryption keys.
Settings for HashiCorp Vault Key Manager
Type: path
Default:
""Dynamic: Yes
Description: Defines the CA certificate used for validating Vault server connections.
Type: string
Default:
localhostDynamic: Yes
Description: Specifies the hostname of the Vault server.
Type: string
Default:
secretDynamic: Yes
Description: Provides the Key-Value mount path in Vault where secrets are stored.
Type: integer
Default:
8200Dynamic: Yes
Description: Defines the port on which the Vault server listens.
Type: duration
Default: 30s
Dynamic: Yes
Description: Sets the timeout for requests and connections to the Vault server.
Type: boolean
Default: true
Dynamic: Yes
Description: Manages whether encrypted (HTTPS) or unencrypted (HTTP) connections are used when communicating with the Vault server.
Type: password
Mandatory: Yes
Dynamic: Yes
Description: Provides the authentication token to access the Vault server.
Settings for KMIP Key Manager
Type: path
Default:
""Dynamic: Yes
Description: CA ceritficate for KMIP server.
Type: path
Mandatory: Yes
Dynamic: Yes
Description: Client certificate for KMIP authentication.
Type: string
Mandatory: Yes
Dynamic: Yes
Type: path
Mandatory: Yes
Dynamic: Yes
Description: Specifies the client private key used for connecting to the KMIP server.
Type: integer
Mandatory: Yes
Dynamic: Yes
Description: Defines the port on which the KMIP server listens.
Settings for TLS/SSL Encryption
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables SSL encryption for connections when set to true.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the CA certificate used to validate the peer’s certificate.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Deprecated - use ssl_ca instead.
Type: number
Mandatory: No
Dynamic: Yes
Default:
9Description: Specifies the maximum depth of the CA chain during verification.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Provides the list of TLS ciphers to use for SSL connections.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the CRL file used to validate revoked SSL certificates.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the path to the SSL/TLS private key that is used for secure connections.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Defines the passphrase used to decrypt the SSL/TLS private key.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Verifies the peer's SSL/TLS certificate against a trusted CA.
Type: boolean
Mandatory No
Dynamic: Yes
Default:
falseDescription: Verifies the peer's hostname or IP address using its SSL/TLS certificate.
Type: enum_mask
Mandatory: No
Dynamic: No
Values:
MAX,TLSv1.0,TLSv1.1,TLSv1.2,TLSv1.3,TLSv10,TLSv11,TLSv12,TLSv13Default:
MAXDescription: Lists the TLS protocol versions that are allowed for SSL/TLS connections.
reference
Settings
Type: string
Mandatory: No
Dynamic: No
Default:
"::"Description: Indicates the hostname or address that the listener binds to when a connection is made.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the authenticator module used for client authentication.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Provides additional configuration settings for the authenticator module.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies a file containing SQL statements executed on backend connections after authentication.
Type: stringlist
Default:
character_set_client=auto,character_set_connection=auto,character_set_results=auto,max_allowed_packet=auto,system_time_zone=auto,time_zone=auto,tx_isolation=auto,maxscale=autoDynamic: Yes
Mandatory: No
Description: Provides the metadata that is given to clients upon connection as a list of key-value pairs separated by commas.
Type: number
Mandatory: Yes, if
socketis not provided.Dynamic: No
Default:
0Description: Specifies the port on which the listener accepts connections.
Type: protocol
Mandatory: No
Dynamic: No
Default:
mariadbDescription: Defines the protocol module that clients and MaxScale use to communicate.
Type: URL
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the database URL that clients are sent to following authentication.
Type: service
Mandatory: Yes
Dynamic: No
Description: Identifies the service that the listener is connected to.
Type: string
Mandatory: Yes, if
portis not provided.Dynamic: No
Default:
""Description: Defines the Unix domain socket that the listener uses to receive inbound connections.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
default,oracleDefault:
defaultDescription: Specifies the listener's SQL mode, overriding the global
sql_modesetting if it is set.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Provides optional backend credentials for MariaDB protocol connections, as well as a JSON file that specifies user and group mappings.
Settings
Type: string
Mandatory: Yes, if
socketis not provided.Dynamic: Yes
Default:
""Description: Specifies the hostname or IP address of the backend server to which MaxScale connects.
Type: Custom
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines disk usage threshold that triggers warnings or actions when exceeded.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Specifies an alternative port that MaxScale uses for administrative connections to the backend server.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
down,up,read,writeDefault:
downDescription: Provides the initial status of the server when it starts or its reconfigured.
Type: string list
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a comma-separated list of user-defined labels assigned to the server.
Type: number
Mandatory: No
Dynamic: Yes
Default: 0 in MaxScale, 15 in MaxScale Trial.
Minimum: 0 in MaxScale, 1 in MaxScale Trial.
Maximum: Unlimited in MaxScale, 15 in MaxScale Trial.
Description: Provides the maximum number of routing connections to the server.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the password that is needed to authenticate server-specific monitoring.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the username used for authentication in server‑specific monitoring.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
0sDescription: Shows how long a connection can stay in the persistent pool before being discarded.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Defines the server connection pool's maximum size.
Type: number
Mandatory: No
Dynamic: Yes
Default:
3306Description: Identifies the port that connections are accepted by the backend server.
Type: number
Mandatory: No
Dynamic: Yes
Default: 0
Description: Sets the server's priority for selecting the main node.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: An alternate hostname or IP address is used for internal communications.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Allows the original client IP address and port to be forwarded to backend servers using PROXY protocol headers.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
primary,secondaryDefault:
primaryDescription: Specifies the server's priority when making routing decisions.
Type: string
Default: None
Dynamic: Yes
Description: Defines custom options added to replication commands for server.
Type: string
Mandatory: Yes, if
addressis not provided.Dynamic: Yes
Default:
""Description: Specifies the Unix domain socket route that is used to establish a connection with the backend server.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether service credentials are used for backend authentication before switching to the client user.
reference/maxscale-authenticators
Settings
Type: path
Mandatory: No
Dynamic: No
Default: Kerberos Default
Description: Specifies the location of the GSSAPI authentication-related Kerberos keytab file.
Type: string
Mandatory: No
Dynamic: No
Default:
mariadb/localhost.localdomainDescription: Defines the service principal name used in GSSAPI authentication.
Settings
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Allows tracking of password hash mismatches during authentication.
Settings
Type: enumeration
Mandatory: No
Dynamic: No
Values:
none,mariadbDefault:
noneDescription: Manages the mapping of PAM-authenticated users to backend authentication.
Type: path
Mandatory: No
Dynamic: No
Default: None
Description: Specifies a JSON file containing passwords for PAM-mapped users.
Type: enumeration
Mandatory: No
Dynamic: No
Values:
password,password_2FA,suidDefault:
passwordDescription: Defines the PAM authentication mode for client login.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Enables cleartext password authentication between the client and MaxScale when using PAM.
reference/maxscale-filters
Settings
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Excludes events, which match the specified regular expression.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Includes only events that match the given regular expression.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the replacement pattern that replication events use to rewrite statements.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Describes the pattern that is used to match statements in replication events for rewriting.
Settings
Type: enum
Mandatory: No
Dynamic: No
Values:
never,read_only_transactions,all_transactionsDefault:
all_transactionsDescription: Manages how the cache is used and updated during transactions.
Type: enum
Mandatory: No
Dynamic: No
Values:
shared,thread_specificDefault:
thread_specificDescription: Determines whether cached data remains thread-specific or shared across threads.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Controls whether the cache is cleared when modifying statements are not parsed correctly.
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Uses a bitmask value to control the cache's debug logging level.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Manages whether the cache is enabled or disabled at startup.
Type: duration
Mandatory: No
Dynamic: No
Default:
0s(no limit)Description: Specifies how long cached data can last before being deleted and reloaded.
Type: enum
Mandatory: No
Dynamic: No
Values:
never,currentDefault:
neverDescription: Manages how cached data is invalidated when changes occur.
Type: count
Mandatory: No
Dynamic: No
Default:
0(no limit)Description: Specifies the maximum amount of data that cache can store.
Type: count
Mandatory: No
Dynamic: No
Default:
0(no limit)Description: Defines the maximum number of rows in a result set that can be cached.
Type: size
Mandatory: No
Dynamic: No
Default:
0(no limit)Description: Specifies the maximum result set size that can be cached.
Type: size
Mandatory: No
Dynamic: No
Default:
0(no limit)Description: Defines the maximum total size of the cache.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""(no rules)Description: Specifies the file path containing caching rules.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
assume_cacheable,verify_cacheableDefault:
assume_cacheableDescription: Controls whether SELECT statements are considered to be cacheable or validated before caching.
Type: duration
Mandatory: No
Dynamic: No
Default:
0s(no limit)Description: Determines how long cached data is used before being refreshed from the backend.
Type: string
Mandatory: No
Dynamic: No
Default:
storage_inmemoryDescription: Defines the storage module used by the cache.
Type: string
Mandatory: No
Dynamic: No
Default:
Description: Deprecated. Previously used to pass configuration options to the storage module.
Type: duration
Mandatory: No
Dynamic: No
Default:
5sDescription: Specifies the timeout for processes involving external storage backends.
Type: enum
Mandatory: No
Dynamic: No
Values:
mixed,isolatedDefault:
mixedDescription: Manages whether cached data is stored separately for each user or shared between users.
storage_memcached
Type: size
Mandatory: No
Dynamic: No
Default: 1Mi
Description: Defines the maximum size of a value that can be stored in the cache.
Type: The Memcached server address specified as
host[:port]Mandatory: Yes
Dynamic: No
Description: Specifies the Memcached server address. The default port is 11211 is used when no port is provided.
storage_redis
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Password used for authentication.
Type: The Redis server address specified as
host[:port]Mandatory: Yes
Dynamic: No
Description: Defines the Redis server address. The default port is 6379 is used when no port is provided.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Enable SSL when connectign to the Redis server.
Type: Path to existing readable file.
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the CA certificate used to verify the Redis server certificate.
Type: Path to existing readable file.
Mandatory: No
Dynamic: No
Default:
""Description: Defines the SSL client certificate used when connecting to the Redis server.
Type: Path to existing readable file.
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the private key for the SSL client that is used to connect to the Redis server.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Username used for authentication.
Settings
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the comment injected before statements.
Settings
Type: count
Mandatory: No
Dynamic: Yes
Default:
0Description: Defines the number of statements that are sent to the primary following a data-modifying statement.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Manages whether write activity from a single connection affects routing behavior for all connections.
Type: regex
Mandatory: No
Dynamic: No
Default:
""Description: Defines a pattern for queries that should be ignored.
Type: regex
Mandatory: No
Dynamic: No
Default:
""Description: Specifies a pattern for statements that cause re-routing of statements.
Type: enum
Mandatory: No
Dynamic: No
Values:
ignorecase,case,extendedDefault:
ignorecaseDescription: Defines regular expression options used with match and ignore.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
60sDescription: Determines the time range during which statements are directed to the primary following a data-modifying statement.
Settings
Type: string
Mandatory: No
Dynamic: Yes
Default:
s3.amazonaws.comDescription: Specifies the S3 object storage host.
Type: string
Mandatory: No
Dynamic: Yes
Description: Defines the S3 access key used for authentication.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: TLS certificate verification is disabled for object storage when enabled.
Type: integer
Mandatory: No
Dynamic: Yes
Default: 0
Description: Defines the port used to connect to the S3 object storage.
Type: integer
Mandatory: No
Dynamic: Yes
Default: 0
Values: 0, 1, 2
Description: Specifies the protocol version used to communicate with object storage.
Type: string
Mandatory: No
Dynamic: Yes
Default:
us-east-1Description: Defines the S3 region that contains the data.
Type: string
Mandatory: No
Dynamic: Yes
Description: Describes the S3 secret key that is used for verification.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables unencrypted HTTP communication with the object storage when set to true.
Settings
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether masking rules are applied to subqueries.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Controls whether masking rules are applied to the UNION queries.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether user variables are applied to user variables.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
ignore,abortDefault:
abortDescription: Controls how payloads larger than 16MB are managed by the masking filter.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether queries using functions on masked columns are rejected.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Determines whether statements that cannot be fully parsed are rejected.
Type: path
Mandatory: Yes
Dynamic: Yes
Description: Determines the path to the file containing masking rules.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages if functions' string parameters are managed as fields for masking.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
never,alwaysDefault:
neverDescription: Controls whether a column with an unsupported type is matched by a masking rule and whether a warning is logged.
Settings
Type: number
Mandatory: No
Dynamic: Yes
Default:
0Description: Manages the level of debug logging for the MaxRows filter.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
empty,error,okDefault:
emptyDescription: Regulates the response that is sent to the client when the limitations defined by the results are exceeded.
Type: number
Mandatory: No
Dynamic: Yes
Default: (no limit)
Description: Specifies the maximum number of rows allowed in a result set returned to the client.
Type: size
Mandatory: No
Dynamic: Yes
Default:
64KiDescription: Restricts the size of a resultset that can be returned to the client; larger resultsets are replaced with an empty result.
Settings
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a numbered regex pattern to match SQL queries and apply a corresponding routing target when the pattern is matched.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
ignorecase,case,extendedDefault:
ignorecaseDescription: Describes the collection and matching process for the matchXY regular expressions (e.g., case sensitivity or extended syntax).
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limits the filter to client connections from particular IP addresses or patterns; the regex rules will only be applied to sessions that match.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines the routing hint used to direct queries that match the corresponding matchXY pattern to specific server or roles.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limit the filters to sessions authenticated with a specific username; the routing hints and regex rules will only be applied to matching users.
Settings
Type: bool
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Defines whether a new routing hint is added to existing ones or replaces them when applied to matching queries.
Type: string
Mandatory: No
Dynamic: Yes
Default:
millisecondsDescription: Defines the time unit used for logging durations.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a regex pattern to exclude queries from matching and filtering.
Type: string
Mandatory: Yes
Dynamic: No
Description: Specifies the base filename for session log files with unique session identifiers appended to create individual output files.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Manages whether log files are immediately flushed to disk after each write operation.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
service,session,date,user,reply_time,total_reply_time,query,default_db,num_rows,reply_size,transaction,transaction_time,num_warnings,error_msgDefault:
date, user, queryDescription: Specifies the fields, such as query details, user, timing, and execution metadata, that are present in each log entry.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
session,unified,stdoutDefault:
sessionDescription: Defines the logging output type, such as per-session files, a unified log file, or standard output.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a regex pattern for queries ti include and process by the filter.
Type: string
Mandatory: No
Dynamic: Yes
Default:
" "Description: Specifies the string that is used to substitute newline characters in logged queries so that the log output is consistent and readable.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
case,ignorecase,extendedDefault:
caseDescription: Defines the regex matching behavior (case sensitivity and extended syntax) for filter queries.
Type: string
Mandatory: No
Dynamic: Yes
Default:
","Description: Specifies the string used to separate fields within each log entry.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Limits logging to sessions that originate from specific client source addresses.
Type: regex
Mandatory: No
Dynamic: Yes
Description: Defines a regex pattern for excluding requests from specified client IP addresses or hosts from logging.
Type: regex
Mandatory: No
Dynamic: Yes
Description: Defines a regex pattern to include only queries from specific client IP addresses or hosts from logging.
Type: bool
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Log queries in canonical format,replacing user-defined constants with placeholders to ensure consistent and secure output.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Limits logging to sessions initiated by a specific username.
Type: regex
Mandatory: No
Dynamic: Yes
Description: Defines a regex pattern that prevent requests from specific users from being logged.
Type: regex
Mandatory: No
Dynamic: Yes
Description: Specifies a regex pattern to include queries only from specific users for logging.
Settings
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Identifies a file where all queries, matched and unmatched, are logged, mainly for diagnostic purposes.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Allows runtime logging of matched and unmatched queries with replacements at the info level for diagnostic purposes.
Type: regex
Mandatory: Yes
Dynamic: Yes
Description: Defines the regex pattern in SQL statements that filter should identify and replace.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
ignorecase,case,extendedDefault:
ignorecaseDescription: Determines how the match regex pattern is compiled, including case sensitivity and extended syntax.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the string that will replace SQL query parts that
matchthe specific pattern.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Restricts the match-and-replace filter to client connections originating from a specified address.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limits the match-and-replace filter to sessions initiated by a specific username.
Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Defines whether template matching is case-sensitive by default.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Allows logging of query replacements at the NOTICE level for monitoring and debugging.
Type: string
Mandatory: No
Dynamic: Yes
Default: Native
Values:
Native,ECMAScript,Posix,EPosix,Awk,Grep,EGrepDescription: Overrides the template's default regex grammar, allowing it to be used with alternative regex engines such as
ECMAScriptorPosix.
Type: string
Mandatory: Yes
Dynamic: Yes
Default: No default value
Description: Specifies the file path to the template used by the filter.
Settings per template in the template file
Type: boolean
Default: From maxscale.cnf
Description: Overrides the global template configuration to specify whether pattern matching is case-sensitive.
Type: boolean
Default: false
Description: Identifies whether to use subsequent templates on a query once the previous template has been matched and replaced.
Type: boolean
Default: true
Description: Specifies whether whitespace differences between the template and SQL inout should be ignored during matching.
Type: string
Values:
Native,ECMAScript,Posix,EPosix,Awk,Grep,EGrepDefault: From maxscale.cnf
Description: Defines the default tes such as
Native,ECMAScript, andPOSIX.
Type: boolean
Default: false
Description: Simulates replacements without affecting queries and logs any possible changes to the NOTICE level.
Settings
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a regex pattern to exclude queries from processing or matching.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a regex pattern to include only queries that match it for processing or filtering.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
ignorecase,case,extendedDefault:
ignorecaseDescription: Determines how regular expressions are parsed, including case sensitivity and extended syntax.
Type: service
Mandatory: No
Dynamic: Yes
Default: none
Description: Specifies the service for which queries are replicated; deprecated in favor of the target parameter.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limits query replication to sessions that start from a specific client IP address.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Allows synchronous routing, ensuring queries are executed on both the main and branch targets before continuing; branch failures close the client connection.
Type: target
Mandatory: No
Dynamic: Yes
Default: none
Description: Specifies the branch target, which is the service or server where queries will be replicated.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Restricts query replication to sessions initiated by a specific username.
Settings
Type: duration
Mandatory: No
Dynamic: Yes
Default: 2s
Description: Specifies the time interval used to decide when continuous throttling begins and finishes.
Type: number
Mandatory: Yes
Dynamic: Yes
Description: Sets the maximum number of requests per second allowed for a session during the specific sample period.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 250ms
Description: Defines the time interval during which queries per second (QPS) are mesaured for throttling purposes.
Type: duration
Mandatory: Yes
Dynamic: Yes
Description: Specifies how long a session can be throttled before being disconnected by MaxScale.
Settings
Type: number
Mandatory: No
Dynamic: Yes
Default:
10Description: Sets the number of SQL statements to store and include in the report.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a regex pattern that prevents the filter from logging specific queries.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the base name for session log files, followed by the session ID to generate unique output files.
Type: regex
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines a regex pattern that only logs requests that match it, while ignoring others.
Type: enum
Mandatory: No
Dynamic: No
Values:
ignorecase,case,extendedDefault:
caseDescription: Determines how the
matchandexlcuderegex patterns are handled, including case sensitivity and extended syntax.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limits logging to sessions that start from a specific client IP address.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Limits logging to sessions initiated by a specific username.
Settings
Type: path
Default: /var/lib/maxscale/wcar/
Mandatory: No
Dynamic: No
Description: Specifies the directory in which session capture subdirectories are kept for each filter.
Type: duration
Default: 0s
Maximum: Unlimited in MaxScale, 5min in MaxScale Lite.
Mandatory: No
Dynamic: No
Description: Determines how long a session capture can run; a value of
0indicates an infinite duration.
Type: size
Default: 0
Maximum: Unlimited in MaxScale, 10MB in MaxScale Lite.
Mandatory: No
Dynamic: No
Description: Specifies the maximum session capture size in bytes; a value of 0 indicates no size restriction.
Type: boolean
Default: false
Mandatory: No
Dynamic: No
Description: Determines whether session capture starts automatically when MaxScale starts.
reference/maxscale-monitors
Settings
Type: number
Mandatory: No
Dynamic: Yes
Default:
1Description: Specifies the maximum number of times MaxScale attempts to connect to a backend during each monitoring cycle.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
3sDescription: Sets the maximum amount of time allowed to connect to a backend server; deprecated in favor of backend timeout.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
3sDescription: Specifies the timeout for reading query resuts from a backend server. Deprecated and ignored since MaxScale 25.08.0.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
3sDescription: Deprecated and ignored since MaxScale 25.10.0.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
0sDescription: Sets the minimum interval between disk space checks; a value of
0disables automatic checks.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Defines the disk usage limit (per path) that creates alerts. It can be set globally in the monitor or individually per server if disk configurations differ.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
master_down,master_up,slave_down,slave_up,server_down,server_up,lost_master,lost_slave,new_master,new_slaveDefault: All events
Description: Specifies which server events cause a script to execute; if not provided, it defaults to all events.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
28800sDescription: Sets the maximum age of journal files; older files are deleted when the monitor starts.
Type: string
Mandatory: Yes
Dynamic: No
Description: Specifies which monitor module will be used, such as
mariadbmonororgaleramon.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
2sDescription: Determines how often the monitor checks and updates the status of servers; shorter intervals result in more frequent checks.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Defines the password for the user defined in the user parameter; overrides older
passwdsettings.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies custom SQL commands to be executed on a primary (Master) server when it achieves Master status or when the monitor starts, allowing for role-based configuration changes.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies custom SQL commands to run on a replica (Slave) server when they get Slave status or when the monitor starts, allowing role-based configuration changes.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a user role to activate when the monitor connects to a server, providing privilege separation between monitoring and service operations.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a command to execute when the server status changes, with the help of placeholders (such as
$INITIATOR,$EVENT, and$MASTERLIST) that MaxScale replaces with relevant server information; script output is reported based on message prefixes.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
90sDescription: Sets a maximum period of time a script can execute; if this limit exceeds the allowed duration, the script is issued
SIGTERM, followed bySIGKILLif it does not stop.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Provides a comma-separated list of servers that the monitor will track and manage.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the monitor's username for connecting to backend servers; if defined, this overrides the server's
monitoruser.
Settings
Type: boolean
Default: false
Dynamic: Yes
Description: Allows Galera nodes to continue performing normal operations while acting as donors during non-blocking SST methods, preventing them from losing synchronized or read/write state.
Type: boolean
Default: false
Dynamic: Yes
Description: Prevents MaxScale from restoring the original node to primary status after a failover; the new primary retains the role while running.
Type: boolean
Default: false
Dynamic: Yes
Description: Disables automatic primary and replica role assignment in a Galera cluster; when enabled, only the Synced status is assigned.
Type: boolean
Default: false
Dynamic: Yes
Description: Ensures that only the Galera node with
wsrep_local_index = 0can be chosen as the primary for writes, enabling many MaxScale instances to use the same primary node.
Type: boolean
Default: false
Dynamic: Yes
Description: Controls whether the
wsrep_sst_donorglobal variable is set on each replica node, listing eligible donor nodes for SST in a sorted order based on priority orwsrep_local_index.
Type: boolean
Default: false
Dynamic: Yes
Description: Allows the monitor to automatically select the writing node and manage controlled node replacements in a Galera cluster while keeping server priorities into account.
Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: When enabled, the monitor assumes that the server hostnames and ports in the configuration match those provided by the servers, resulting in accurate topology identification and support for cluster actions such as failover and switching.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
none,majority_of_all,majority_of_runningDefault:
noneDescription: Controls how a monitor achieves exclusive locks in multi-MaxScale configurations; decides whether a monitor becomes primary based on the majority of all servers, only running servers, or none at all.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Automatically sets
read_onlyon any writable servers that are not the primary and are not under maintenance, ensuring that non-primary servers remain read-only.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Automatically sets
read_onlyflag on writable replica servers, allowing only privileged users to write; the primary server is unaffected.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Ensures that the primary server is always writable by automatically disabling read-only mode during monitoring.
Type: number
Mandatory: No
Dynamic: Yes
Default:
5Description: Specifies how many consecutive monitor cycles a primary must fail before being considered down and requiring failover or primary reselection.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: When disk space is low, non-primary servers are automatically put into maintenance mode, which stops them from being used for sessions or failover unless they are manually removed.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
none,connecting_slave,connected_slave,running_slave,primary_monitor_master,disk_space_okDefault:
primary_monitor_master, disk_space_okDescription: Specifies additional requirements for a server to be considered primary, such as the availability of connected or running replicas, sufficient disk space, or agreement with supporting monitors.
Type: number
Mandatory: No
Dynamic: Yes
Default:
-1Description: Sets a replication lag threshold (in seconds) that executes the monitor script when exceeded (
rlag_above) or returned below (rlag_below); negative values disable this feature.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
none,linked_master,running_master,writable_master,primary_monitor_masterDefault:
noneDescription: Specifies additional requirements for a server to be identified as a Slave, such as being connected to a running or writable primary; several conditions can be coupled using an
enummask.
Settings for Backup operations
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Provides the backup storage server's hostname or IP address. The server does not have to run MariaDB or be monitored by MaxScale. MaxScale connects via SSH, and the storage must have enough disk space to accommodate all backups.
Type: path
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the path to the backup storage host where backups will be saved. The SSH user specified in
ssh_usermust have full read and write access to this directory.
Type: number
Mandatory: No
Dynamic: Yes
Default:
1Description: Defines the number of parallel threads to use while running
mariadb-backup. This value is used as the--parallel=<val>formariadb-backup --backup. Increasing this value can accelerate backups on systems with multiple CPUs and fast I/O.
Type: string
Mandatory: No
Dynamic: Yes
Default:
1GDescription: Specifies how much memory
mariadb-backupshould use during the--preparephase. This value is specified with the--use-memory=<val>. Setting it to an empty string disables the option and allowsmariadb-backupto utilize the internal default. Increasing RAM can accelerate backup preparation, especially for large datasets.
Type: number
Mandatory: No
Dynamic: Yes
Default:
4444Description: Specifies the TCP port on which the source server will listen for the rebuild (SST) connection during a state transfer. This port must be open (not blocked by firewalls) and free (not in use by another process). If another process uses the port when the rebuild begins, MaxScale will attempt to terminate it to free up the port.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether MaxScale verifies the SSH host key when connecting to a backend server. When set to
true, MaxScale requires that the backend server’s host key is already present in theknown_hostsfile of the user running MaxScale. This ensures the authenticity of the server during SSH connections.
Type: path
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the SSH private key file used by MaxScale to authenticate when connecting to backend servers.
Type: number
Mandatory: No
Dynamic: Yes
Default:
22Description: Uses port for SSH connections when executing remote commands on backend servers.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Specifies the maximum duration allowed for SSH commands during a rebuild before timing out.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the SSH username for logging in to backend servers to execute commands.
Settings for Cluster manipulation operations
Type: enum
Mandatory: No
Dynamic: Yes
Values:
true,on,yes,1,false,off,no,0,safeDefault:
falseDescription: Enables or disables automated primary failover, which allows MaxScale to select a new primary if the current one fails.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Allows automatic redirection of servers to duplicate from the current primary, resulting in a 1-primary-N-replicas architecture.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a SQL file to execute when a server is downgraded; equivalent to
promotion_sql_file.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Promotes a 1-primary-N-replicas cluster configuration, automatically reconnecting servers and deleting unnecessary replication sources to maintain a simple topology.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
90sDescription: Sets the maximum time allowed for a failover operation before it is terminated and automatic failover is disabled.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Manages whether the monitor tracks and updates scheduled events on servers during offers, demotions, and rejoins.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Specifies the duration MaxScale waits before considering a primary server as failed.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies a file of SQL statements to execute on a server during promotion to primary.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enables SSL encryption for replication by configuring generated replication commands to use secure connections.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the password used by the replication user for authentication.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
Description: Specifies the username used for replication authentication when configuring replica connections.
Type: string
Mandatory: No
Dynamic: Yes
Default: None
[switchover_on_low_disk_space\*\*](../reference/maxscale-monitors/mariadb-monitor.md#switchover_on_low_disk_space**)
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Lists the servers that are excluded from being promoted to primary during failover or automatic selection.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
90sDescription: Defines the maximum time allowed for switchover and rejoin operations before timing out.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Enables verification of primary server failure using replica status before triggering automatic failover.
Settings for Primary server write test
Type: enum
Default:
logValues:
log,failoverDynamic: Yes
Description: Defines the action to consider when the primary fails a write text, either logging the failure or triggering a failover.
Type: duration
Dynamic: Yes
Default: 0s
Description: Sets the interval after which a write test is performed on the primary if no changes are detected.
Type: string
Dynamic: Yes
Default:
mxs.maxscale_write_testDescription: Specifies the fully qualified table used by the monitor to perform primary server write tests.
reference/maxscale-protocols
Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Manages whether the replication protocol is permitted through this listener.
Settings
Type: string
Mandatory: No
Default:
"NoSQL"Description: Specifies the database that stores NoSQL account information for authentication.
Type: string
Mandatory: No
Default:
""Description: Specifies the encryption key ID used to encrypt NoSQL account information in the database.
Type: string
Mandatory: No
Default:
""Description: Specifies the password for the NoSQL authentication user.
Type: boolean
Mandatory: No
Default:
falseDescription: Determines whether clients are required to authenticate before accessing the service.
Type: boolean
Mandatory: No
Default:
falseDescription: Controls whether NoSQL account information is stored in a shared or private manner.
Type: string
Mandatory: Yes, if
authentication_sharedis true.Description: Specifies the user used to access and manage shared NoSQL account information.
Type: boolean
Mandatory: No
Default:
falseDescription: Enables or disables NoSQL protocol–level authorization for user management commands.
Type: boolean
Mandatory: No
Default:
trueDescription: Controls whether databases are automatically created when required.
Type: boolean
Mandatory: No
Default:
trueDescription: Controls whether tables are automatically created within existing databases when required.
Type: duration
Mandatory: No
Default:
60sDescription: Sets the maximum idle time before an inactive cursor is automatically closed.
Type: enum_mask
Mandatory: No
Values:
none,in,out,backDefault:
noneDescription: Manages which protocol events are logged, including incoming commands, backend SQL, and client responses.
Type: string
Mandatory: No
Default:
"%"Description: Specifies the host portion of the MariaDB user account created via the NoSQL protocol.
Type: count
Mandatory: No
Range:
[35, 2048]*Default:
35Description: Sets the length of the
idcolumn for automatically created tables.
Type: string
Mandatory: No
Default: ''
Description: Specifies the internal cache to use, currently supporting only the
cachefilter.
Type: boolean
Mandatory: No
Default:
falseDescription: Determines whether unsupported or unknown client commands are logged for debugging.
Type: enum
Mandatory: No
Values:
return_error,return_emptyDefault:
return_errorDescription: Defines how the system responds to unrecognized client commands, either with an error or an empty result.
Type: enum
Mandatory: No
Values:
atomic,defaultDefault:
defaultDescription: Controls whether multi-document inserts are performed completely or individually based on the
orderedsetting.
Type: string
Mandatory: No
Default:
""Description: Specifies the password used for backend connections when the MongoDB client is unauthenticated.
Type: string
Mandatory: No
Default:
""Description: Specifies the username used for backend connections when the MongoDB client is unauthenticated.
reference/maxscale-rest-api
Resource Operations
[Create a filter](../reference/maxscale-rest-api/maxscale-filter-resource.md#Create a filter)
Type of the object, must be
filtersdata.attributes.moduleThe filter module to use
Resource Operations
[Create a new listener](../reference/maxscale-rest-api/maxscale-listener-resource.md#Create a new listener)
Type of the object, must be
listenersdata.attributes.parameters.portORdata.attributes.parameters.socketThe TCP port or UNIX Domain Socket the listener listens on. Only one of the fields can be defined.
data.relationships.services.dataThe service relationships data, must define a JSON object with an
idvalue that defines the service to use and atypevalue set toservices.
Resource Operations
[Create a monitor](../reference/maxscale-rest-api/maxscale-monitor-resource.md#Create a monitor)
Type of the object, must be
monitorsdata.attributes.moduleThe monitor module to use
data.attributes.parameters.userThe
userto usedata.attributes.parameters.passwordThe password to use
Resource Operations
[Create a server](../reference/maxscale-rest-api/maxscale-server-resource.md#Create a server)
Type of the object, must be
serversdata.attributes.parameters.addressORdata.attributes.parameters.socketdata.attributes.parameters.portThe
portto use. Needs to be defined if theaddressfield is defined.
Resource Operations
[Create a service](../reference/maxscale-rest-api/maxscale-service-resource.md#Create a service)
Type of the object, must be
servicesdata.attributes.routerThe router module to use
data.attributes.parameters.userThe
userto usedata.attributes.parameters.passwordThe
passwordto use
reference/maxscale-routers
Settings
Type: string
Mandatory: Yes
Default: No
Dynamic: No
Description: Specifies the directory where files are archived when
expiration_modeis set toarchive.
Type: enum
Mandatory: No
Dynamic: No
Values:
none,zstandardDefault:
noneDescription: Defines the compression algorithm to use for archived files.
Type: path
Mandatory: No
Dynamic: No
Default:
/var/lib/maxscale/binlogsDescription: Shows the directory where binary log files are stored.
Type: boolean
Mandatory: No
Dynamic: No
Default: false
Description: When enabled, only DDL events (CREATE, ALTER, DROP) are logged, excluding data changes.
Type: enum
Mandatory: No
Dynamic: No
Values:
AES_CBC,AES_CTR,AES_GCMDefault:
AES_GCMDescription: Defines the AES encryption mode used for securing data, such as GCM, CBC, or CTR.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the encryption key ID used to encrypt binary logs, requiring a configured key manager.
Type: enum
Dynamic: No
Values:
purge,archiveDefault:
purgeDescription: Indicates whether expired logs are automatically deleted or archived.
Type: duration
Mandatory: No
Dynamic: No
Default:
0sDescription: Sets the duration after which binary log files expire and are eligible for purge or archiving.
Type: number
Mandatory: No
Dynamic: No
Default:
2Description: Determines the minimum number of binary log files to keep during automatic purging.
Type: duration
Mandatory: No
Dynamic: No
Default:
10sDescription: Sets the network connection and read timeout for the primary server connection.
Type: count
Mandatory: No
Dynamic: No
Default:
2Description: Specifies the minimum number of binary log files to keep up uncompressed.
Type: boolean
Mandatory: No
Default: false
Dynamic: Yes
Description: Enables semi-synchronous replication from a MariaDB server by sending acknowledgements for received events.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Selects a primary server for replication automatically from a list of servers that are monitored and have Master status.
Type: count
Mandatory: No
Dynamic: No
Default:
1234Description: Mentions the server ID used by MaxScale for replication and serving binary logs to replicas.
Settings
Type: enum
Mandatory: No
Dynamic: Yes
Values:
none,other, `both'Default:
bothDescription: Determines whether queries are EXPLAINed on the main server, other servers, or both.
Type: non-negative integer
Mandatory: No
Dynamic: Yes
Default: 2
Description: Sets the maximum number of times a canonical statement is EXPLAINed throughout the explain period.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 15m
Description: Defines the time window over which the
explain_entrieslimit applies for EXPLAIN operations.
Type: server
Mandatory: Yes
Dynamic: No
Description: Specifes the primary server from which query results are returned to the client.
Type: non-negative integer
Mandatory: No
Dynamic: Yes
Default: 10
Description: Sets the maximum allowed request la on replica servers before SELECTs are skipped to connect with the primary server.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
close,ignoreDefault:
ignoreDescription: Determines whether errors from replica servers close the session or are are ignored.
Type: count
Mandatory: No
Dynamic: Yes
Min: 1
Max: 100
Default: 99
Description: Defines the percentile of samples used to calculate histogram width and bin count.
Type: duration
Mandatory: No
Dynamic: No
Default: 15m
Description: Specifies the time window over which queries per second (QPS) are calculated and logged.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
always,on_discrepancy,neverDefault:
on_discrepancyDescription: Defines when results from main and other executions are logged: always, on discrepancy, or never.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
trueDescription: Controls whether replication on other is reset and restarted after a read-write Diff session completes.
Type: non-negative integer
Mandatory: No
Dynamic: Yes
Default: 5
Description: Sets how many of the fastest statements are kept in memory for summary reporting.
Type: non-negative integer
Mandatory: No
Dynamic: Yes
Default: 5
Description: Sets how many of the slowest statements are kept in memory for summary reporting.
Type: count
Mandatory: No
Dynamic: Yes
Min: 100
Default: 1000
Description: Defines the number of samples collected to determine histrogram bin edges and counts.
Type: service
Mandatory: Yes
Dynamic: No
Description: Defines the service that Diff will operate on.
Settings
Type: enum
Mandatory: No
Dynamic: No
Values:
read_only,read_writeDefault:
read_onlyDescription: Determines whether the Exasolrouter appears as read-only or read-write to other MaxScale components.
Type: string
Mandatory: Yes
Dynamic: No
Description: Specifies the Exasol ODBC connection string used to connect to the database.
Type: String
Mandatory: No
Dynamic: No
Values:
auto,activate-only,custom:<path>,disabledDefault:
autoDescription: Defines how the Exasol preprocesser script is managed: auto-installed, activate-only, custom path, or disabled.
Type: String
Mandatory: No
Dynamic: No
Default: "UTIL.maria_preprocessor"
Description: Specifies the name of a custom Exasol preprocessor script when using a custom preprocessor path.
Settings
Type: string
Mandatory: Yes
Dynamic: No
Description: Specifies the list of Kafka brokers in
host:portformat for connecting to the cluster.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Enables coperative replication, allowing multiple MaxScale instances to replicate from the same cluster while ensuring each event is processed only once.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Enables idempotent Kafka producer mode to reduce duplicate message delivery and preserve message order.
Type: regex
Mandatory: No
Dynamic: Yes
Default:
""Description: Excludes tables matching a specified pattern from being sent to Kafka.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the initial GTID position for replication; supports
newestandoldestspecial values.
Type: enum
Mandatory: No
Dynamic: No
Values:
PLAIN,SCRAM-SHA-256,SCRAM-SHA-512Default:
PLAINDescription: Specifies the SASL authentication mechanism for connecting to Kafka, such as
PLAINorSCRAM-SHAvariants.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the password used for SASL authentication with Kafka.
Type: string
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the username used for SASL authentication with Kafka.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Enables SSL encryption for Kafka connections.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the path to the CA certificate file for SSL Kafka connections.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the path to the client SSL certificate file for Kafka connections.
Type: path
Mandatory: No
Dynamic: No
Default:
""Description: Specifies the path to the client SSL private key for Kafka connections.
Type: regex
Mandatory: No
Dynamic: Yes
Default:
""Description: Includes only tables whose combined database and table names match the specified pattern for Kafka replication.
Type: boolean
Mandatory: No
Dynamic: No
Default:
trueDescription: Determines whether to read the latest GTID from Kafka on startup to resume replication.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Controls whether table schema change events are sent as JSON objects into the Kafka stream.
Type: number
Mandatory: No
Dynamic: No
Default:
1234Description: Specifies the server ID used when connecting to the primary for replication.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
10sDescription: Defines the timeout for establishing and reading from the replication stream connection.
Type: string
Mandatory: Yes
Dynamic: No
Description: Specifies the Kafka topic where replicated events are published.
Settings
Type: count
Mandatory: No
Dynamic: Yes
Default:
100Description: Defines the maximum number of records to buffer before committing a batch of imported data.
Type: string
Mandatory: Yes
Dynamic: Yes
Description: Specifies the comma-separated list of Kafka broker addresses used to establish connections.
Type: string
Default:
InnoDBMandatory: No
Dynamic: Yes
Description: Specifies the storage engine used when creating tables for imported Kafka data.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
PLAIN,SCRAM-SHA-256,SCRAM-SHA-512Default:
PLAINDescription: Specifies the SASL authentication mechanism used for Kafka connections.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the SASL password for Kafka authentication, requiring a corresponding username.
Type: string
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the SASL username for Kafka authentication, requiring a corresponding password.
Type: boolean
Mandatory: No
Dynamic: Yes
Default:
falseDescription: Enables or disables SSL encryption for Kafka connections.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the CA certificate file used to verify Kafka SSL connections, or defaults to the system CA.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Defines the SSL certificate file for Kafka connections, requiring a corresponding private key.
Type: path
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies the SSL private key file for Kafka connections, requiring a corresponding certificate.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
topic,keyDefault:
topicDescription: Defines whether the Kafka topic or message key is used to determine the target table for data insertion.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
5000msDescription: Sets the timeout for network communication with both Kafka and MariaDB.
Type: stringlist
Mandatory: Yes
Dynamic: Yes
Description: Specifies the comma-separated list of topics to subscribe to.
Settings
Type: enum
Mandatory: Yes
Dynamic: Yes
Values:
log,file,kafkaDescription: Specifies the destination where metrics are exported, such as log, file, or Kafka.
Type: string
Default: No default value
Mandatory: No
Dynamic: Yes
Description: Specifies the file path where metrics are written when the file exporter is enabled.
Type: string
Default: No default value
Mandatory: No
Dynamic: Yes
Description: Specifies the list of Kafka brokers used to send metrics when the Kafka exporter is enabled.
Type: string
Default: No default value
Mandatory: No
Dynamic: Yes
Description: Specifies the Kafka topic used to publish metrics when the Kafka exporter is enabled.
Type: target
Mandatory: Yes
Dynamic: Yes
Description: Defines the primary target server whose results are returned to the client and whose availability is required for the session.
Type: enum
Default:
ignoreMandatory: No
Dynamic: Yes
Values:
ignore,closeDescription: Defines how backend connection failures are handled, either by ignoring them or closing the client connection.
Type: enum
Default:
alwaysMandatory: No
Dynamic: Yes
Values:
always,on_conflictDescription: Determines when query results are reported to the client, either always or only on conflicts.
Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Determines whether read queries are routed to the primary server when selecting servers.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 0s
Description: Sets the maximum allowed replication lag for a server to be used for routing.
Type: enum_mask
Mandatory: No
Dynamic: Yes
Values:
master,slave,synced,runningDefault:
runningDescription: Specifies which server roles are eligible for connections when establishing new router sessions.
Settings
Type: enum
Mandatory: No
Dynamic: Yes
Values:
none,local,global,fast,fast_global,universal,fast_universalDefault:
noneDescription: Controls causal read behavior to ensure reads reflect prior writes despite replication lag.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 10s
Description: Defines how long to wait for replica synchronization when using causal reads before timing out.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables retrying failed queries for a limited time before returning an error if no server becomes available.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 10s
Description: Specifies how long to wait before returning an error to the client when delayed retries are enabled.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables on-demand creation of backend connections instead of opening all connections at session start.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Determines whether the primary server can be used to handle read queries alongside replicas.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
fail_instantly,fail_on_write,error_on_writeDefault:
fail_on_write(MaxScale 23.08:fail_instantly)Description: Defines how the router handles primary server failure and client behavior during write operations.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true (>= MaxScale 24.02), false(<= MaxScale 23.08)
Description: Controls whether a session can reconnect to a new primary server if the current one becomes unavailable.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 0s
Description: Sets the maximum allowed replication lag for replicas to be eligible for routing read queries.
Type: integer
Mandatory: No
Dynamic: Yes
Min: 0
Max: 255
Default: 255
Description: Limits the maximum number of replica connections a session can use simultaneously.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Determines whether failed autocommit read queries are retried on another replica.
Type: integer
Mandatory: No
Dynamic: Yes
Default: 255
Description: Specifies the initial number of replica connections a session creates for routing read queries.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
least_current_operations,adaptive_routing,least_behind_master,least_router_connections,least_global_connectionsDefault:
least_current_operationsDescription: Defines the criteria used to select replica servers for routing read queries and balancing load.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Ensures that all queries after a multi-statement query are routed to the primary to maintain session consistency.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Ensures that queries following a stored procedure call are routed to the primary to maintain consistency.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true (>= MaxScale 24.02), false (<= MaxScale 23.08)
Description: Controls whether temporary tables block reconnections, ensuring they are not lost during primary node failovers.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
none,soft,hardDefault:
noneDescription: Defines how transactions are synchronized across replicas, with options for no synchronization, soft (non-blocking), or hard (blocking) synchronization.
Type: integer
Mandatory: No
Dynamic: Yes
Min: 1
Max: 255
Default: 1
Description: Specifies the minimum number of backend servers required to understand a transaction before it is considered committed.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 0s
Description: Sets the maximum allowed transaction synchronization latency in soft mode before triggering synchronization.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 10s
Description: Sets the maximum time a transaction waits for synchronization before returning or closing the connection.
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Enables replay of interrupted transactions, automatically retrying them on a replacement server if the current one fails.
Type: integer
Mandatory: No
Dynamic: Yes
Default: 5
Description: Determines the maximum number of times a transaction will be retried during replay before failing.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
full,result_only,no_insert_idDefault:
fullDescription: Specifies the method for calculating transaction checksums to verify replayed transactions;
fullensures complete consistency.
Type: size
Mandatory: No
Dynamic: Yes
Default: 1 MiB
Description: Sets the maximum transaction size (in bytes) that can be replayed; larger transactions are not replayed.
transaction_replay_retry_on_deadlock
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Automatically retries transactions that encounter a deadlock until they succeed or a checksum error occurs.
transaction_replay_retry_on_mismatch
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Retries transactions that fail due to checksum mismatches during replay, subject to the set limits.
transaction_replay_safe_commit
Type: boolean
Mandatory: No
Dynamic: Yes
Default: true
Description: Prevents replaying transactions that are about to commit to avoid duplicates; enabled by default.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 30s (>= MaxScale 24.02), 0s (<= MaxScale 23.08)
Description: Sets the maximum duration for attempting transaction replay; set to
0to disable.
Type: enum
Mandatory: No
Dynamic: Yes
Values:
master,allDefault:
allDescription: Controls which nodes handle SELECT statements using SQL user variables; defaults to all nodes.
Settings
Type: boolean
Mandatory: No
Dynamic: Yes
Default: false
Description: Disables the detection of duplicate tables on shards while it is enabled.
Type: stringlist
Mandatory: No
Dynamic: Yes
Default:
""Description: Specifies a list of full table names to ignore when checking for duplicate tables.
Type: regex
Mandatory: No
Dynamic: No
Default:
""Description: Defines a PCRE2 regular expression to ignore specific tables when checking for duplicate databases.
Type: duration
Mandatory: No
Dynamic: Yes
Default: 150s
Description: Specifies how long stale database map entries can be used by new connections while an update is in progress.
Type: boolean
Mandatory: No
Dynamic: No
Default:
falseDescription: Allows the database map to be refreshed when a
USE...query fails during a session.
Type: duration
Mandatory: No
Dynamic: Yes
Default:
300sDescription: Sets the minimum interval between database map refreshes to maintain cluster metadata up to date.
Settings
Type: target
Mandatory: Yes
Dynamic: No
Description: Identifies the primary target cluster to which all write operations are directed.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

