drain server
This page is part of MariaDB's Documentation.
The parent of this page is: MaxCtrl Commands for MariaDB MaxScale
Topics on this page:
Overview
In 24.02, 23.08, 23.02:
Not present
In 22.08, 6, 2.5, 2.4:
Removes the given server module from the connection pool.
See also: MaxCtrl Commands for MariaDB MaxScale 24.02, in 23.08, in 23.02, in 22.08, in 6, in 2.5, and in 2.4
USAGE
maxctrl drain server <server>
The following local options are accepted:
Option | Description |
---|---|
Timeout for the drain operation in seconds. If exceeded, the server is added back to all services without putting it into maintenance mode. [number] [default: 90] |
The following global options are also accepted:
Option | Description |
---|---|
MaxCtrl configuration file [string] [default: "~/.maxctrl.cnf"] | |
Show help [boolean] | |
List of MaxScale hosts. The hosts must be in HOST:PORT format and each value must be separated by a comma. [string] [default: "127.0.0.1:8989"] | |
Password for the user. To input the password manually, use -p '' or --password='' [string] [default: "mariadb"] | |
Silence all output. Ignored while in interactive mode. [boolean] [default: false] | |
Enable HTTPS requests [boolean] [default: false] | |
Disable configuration synchronization for this command [boolean] [default: false] | |
Request timeout in plain milliseconds, e.g., '-t 1000', or as duration with suffix [h|m|s|ms], e.g., '-t 10s' [string] [default: "10000"] | |
Path to TLS CA certificate [string] | |
Path to TLS public certificate [string] | |
Path to TLS private key [string] | |
Password for the TLS private key [string] | |
Whether to verify server TLS certificates [boolean] [default: true] | |
Print tab separated output [boolean] [default: false] | |
Username to use [string] [default: "admin"] | |
Show version number [boolean] |
CHANGE HISTORY
Release Series | History |
---|---|
24.02 |
|
23.08 |
|
23.02 |
|
22.08 |
|
6 |
|
2.5 |
|
2.4 |
|
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.