[root@ip-21-105-20-139 ~]# maxctrl show maxscale ┌──────────────┬───────────────────────────────────────────────────────┐ │ Version │ 2.4.11 │ ├──────────────┼───────────────────────────────────────────────────────┤ │ Commit │ 6abdb60b5809f4e393e910f42e3481dfa4765f02 │ ├──────────────┼───────────────────────────────────────────────────────┤ │ Started At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────┼───────────────────────────────────────────────────────┤ │ Activated At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────┼───────────────────────────────────────────────────────┤ │ Uptime │ 273623 │ ├──────────────┼───────────────────────────────────────────────────────┤ │ Parameters │ { │ │ │ "admin_auth": true, │ │ │ "admin_enabled": true, │ │ │ "admin_host": "127.0.0.1", │ │ │ "admin_log_auth_failures": true, │ │ │ "admin_pam_readonly_service": "", │ │ │ "admin_pam_readwrite_service": "", │ │ │ "admin_port": 8989, │ │ │ "admin_ssl_ca_cert": "", │ │ │ "admin_ssl_cert": "", │ │ │ "admin_ssl_key": "", │ │ │ "auth_connect_timeout": 3, │ │ │ "auth_read_timeout": 1, │ │ │ "auth_write_timeout": 2, │ │ │ "cachedir": "/datavolume/maxscale/cache", │ │ │ "connector_plugindir": "/usr/lib64/mysql/plugin", │ │ │ "datadir": "/datavolume/maxscale/data", │ │ │ "dump_last_statements": "never", │ │ │ "execdir": "/usr/bin", │ │ │ "language": "/var/lib/maxscale", │ │ │ "libdir": "/usr/lib64/maxscale", │ │ │ "load_persisted_configs": true, │ │ │ "local_address": null, │ │ │ "logdir": "/datavolume/maxscale/log", │ │ │ "max_auth_errors_until_block": 10, │ │ │ "module_configdir": "/etc/maxscale.modules.d", │ │ │ "passive": false, │ │ │ "persistdir": "/var/lib/maxscale/maxscale.cnf.d", │ │ │ "piddir": "/var/run/maxscale", │ │ │ "query_classifier": "", │ │ │ "query_classifier_args": null, │ │ │ "query_classifier_cache_size": 4987051008, │ │ │ "query_retries": 1, │ │ │ "query_retry_timeout": 5, │ │ │ "retain_last_statements": 0, │ │ │ "session_trace": 0, │ │ │ "skip_permission_checks": false, │ │ │ "sql_mode": "default", │ │ │ "substitute_variables": false, │ │ │ "threads": 4, │ │ │ "thread_stack_size": 8388608, │ │ │ "users_refresh_time": 30, │ │ │ "writeq_high_water": 32000000, │ │ │ "writeq_low_water": 512000 │ │ │ } │ └──────────────┴───────────────────────────────────────────────────────┘ [root@ip-21-105-20-139 ~]# maxctrl show services ┌─────────────────────┬────────────────────────────────────────────┐ │ Service │ CLI │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router │ cli │ ├─────────────────────┼────────────────────────────────────────────┤ │ State │ Started │ ├─────────────────────┼────────────────────────────────────────────┤ │ Started At │ Sun Oct 4 07:45:20 2020 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Current Connections │ 0 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Total Connections │ 3753 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Servers │ │ ├─────────────────────┼────────────────────────────────────────────┤ │ Filters │ │ ├─────────────────────┼────────────────────────────────────────────┤ │ Parameters │ { │ │ │ "router_options": null, │ │ │ "user": null, │ │ │ "password": null, │ │ │ "enable_root_user": false, │ │ │ "max_retry_interval": 3600, │ │ │ "max_connections": 0, │ │ │ "connection_timeout": 0, │ │ │ "net_write_timeout": 0, │ │ │ "auth_all_servers": false, │ │ │ "strip_db_esc": true, │ │ │ "localhost_match_wildcard_host": true, │ │ │ "version_string": null, │ │ │ "weightby": null, │ │ │ "log_auth_warnings": true, │ │ │ "retry_on_failure": true, │ │ │ "session_track_trx_state": false, │ │ │ "retain_last_statements": -1, │ │ │ "session_trace": false, │ │ │ "cluster": null │ │ │ } │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router Diagnostics │ │ └─────────────────────┴────────────────────────────────────────────┘ ┌─────────────────────┬────────────────────────────────────────────┐ │ Service │ tblw │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router │ readconnroute │ ├─────────────────────┼────────────────────────────────────────────┤ │ State │ Started │ ├─────────────────────┼────────────────────────────────────────────┤ │ Started At │ Sun Oct 4 07:45:20 2020 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Current Connections │ 337 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Total Connections │ 95895 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Servers │ tblw01 │ │ │ tblw02 │ │ │ tblw03 │ │ │ tblw04 │ │ │ tblw05 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Filters │ MaxRows │ ├─────────────────────┼────────────────────────────────────────────┤ │ Parameters │ { │ │ │ "router_options": "synced", │ │ │ "user": "wjmaxscale", │ │ │ "password": "*****", │ │ │ "enable_root_user": true, │ │ │ "max_retry_interval": 3600, │ │ │ "max_connections": 0, │ │ │ "connection_timeout": 0, │ │ │ "net_write_timeout": 0, │ │ │ "auth_all_servers": false, │ │ │ "strip_db_esc": true, │ │ │ "localhost_match_wildcard_host": true, │ │ │ "version_string": null, │ │ │ "weightby": null, │ │ │ "log_auth_warnings": true, │ │ │ "retry_on_failure": true, │ │ │ "session_track_trx_state": false, │ │ │ "retain_last_statements": -1, │ │ │ "session_trace": false, │ │ │ "cluster": null │ │ │ } │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router Diagnostics │ { │ │ │ "connections": 95895, │ │ │ "current_connections": 337, │ │ │ "queries": 115922887 │ │ │ } │ └─────────────────────┴────────────────────────────────────────────┘ ┌─────────────────────┬────────────────────────────────────────────┐ │ Service │ MaxInfo │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router │ maxinfo │ ├─────────────────────┼────────────────────────────────────────────┤ │ State │ Started │ ├─────────────────────┼────────────────────────────────────────────┤ │ Started At │ Sun Oct 4 07:45:20 2020 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Current Connections │ 0 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Total Connections │ 91215 │ ├─────────────────────┼────────────────────────────────────────────┤ │ Servers │ │ ├─────────────────────┼────────────────────────────────────────────┤ │ Filters │ │ ├─────────────────────┼────────────────────────────────────────────┤ │ Parameters │ { │ │ │ "router_options": null, │ │ │ "user": "wjmonitor", │ │ │ "password": "*****", │ │ │ "enable_root_user": false, │ │ │ "max_retry_interval": 3600, │ │ │ "max_connections": 0, │ │ │ "connection_timeout": 0, │ │ │ "net_write_timeout": 0, │ │ │ "auth_all_servers": false, │ │ │ "strip_db_esc": true, │ │ │ "localhost_match_wildcard_host": true, │ │ │ "version_string": null, │ │ │ "weightby": null, │ │ │ "log_auth_warnings": true, │ │ │ "retry_on_failure": true, │ │ │ "session_track_trx_state": false, │ │ │ "retain_last_statements": -1, │ │ │ "session_trace": false, │ │ │ "cluster": null │ │ │ } │ ├─────────────────────┼────────────────────────────────────────────┤ │ Router Diagnostics │ │ └─────────────────────┴────────────────────────────────────────────┘ [root@ip-21-105-20-139 ~]# maxctrl show monitors ┌─────────────────────┬─────────────────────────────────────────────────────────────┐ │ Monitor │ mon_tblw │ ├─────────────────────┼─────────────────────────────────────────────────────────────┤ │ State │ Running │ ├─────────────────────┼─────────────────────────────────────────────────────────────┤ │ Servers │ tblw01 │ │ │ tblw02 │ │ │ tblw03 │ │ │ tblw04 │ │ │ tblw05 │ ├─────────────────────┼─────────────────────────────────────────────────────────────┤ │ Parameters │ { │ │ │ "user": "wjmaxscale", │ │ │ "password": "*****", │ │ │ "monitor_interval": 10000, │ │ │ "backend_connect_timeout": 600, │ │ │ "backend_read_timeout": 10, │ │ │ "backend_write_timeout": 10, │ │ │ "backend_connect_attempts": 1, │ │ │ "journal_max_age": 28800, │ │ │ "disk_space_threshold": null, │ │ │ "disk_space_check_interval": 0, │ │ │ "script": null, │ │ │ "script_timeout": 90, │ │ │ "events": "all", │ │ │ "disable_master_failback": false, │ │ │ "available_when_donor": false, │ │ │ "disable_master_role_setting": false, │ │ │ "root_node_as_master": false, │ │ │ "use_priority": true, │ │ │ "set_donor_nodes": false │ │ │ } │ ├─────────────────────┼─────────────────────────────────────────────────────────────┤ │ Monitor Diagnostics │ { │ │ │ "disable_master_failback": false, │ │ │ "disable_master_role_setting": false, │ │ │ "root_node_as_master": false, │ │ │ "use_priority": true, │ │ │ "set_donor_nodes": false, │ │ │ "cluster_uuid": "d93a23ad-abc6-11ea-be71-867029f4fcf4", │ │ │ "cluster_size": 5, │ │ │ "server_info": [ │ │ │ { │ │ │ "name": "tblw01", │ │ │ "gtid_current_pos": "0-131-12030308", │ │ │ "gtid_binlog_pos": "0-133-326118754", │ │ │ "read_only": false, │ │ │ "server_id": 132, │ │ │ "master_id": 0 │ │ │ }, │ │ │ { │ │ │ "name": "tblw02", │ │ │ "gtid_current_pos": "0-133-354052245", │ │ │ "gtid_binlog_pos": "0-133-354052245", │ │ │ "read_only": false, │ │ │ "server_id": 133, │ │ │ "master_id": 0 │ │ │ }, │ │ │ { │ │ │ "name": "tblw03", │ │ │ "gtid_current_pos": "0-131-12030308", │ │ │ "gtid_binlog_pos": "0-133-354047826", │ │ │ "read_only": false, │ │ │ "server_id": 134, │ │ │ "master_id": 0 │ │ │ }, │ │ │ { │ │ │ "name": "tblw04", │ │ │ "gtid_current_pos": "0-131-12030308", │ │ │ "gtid_binlog_pos": "0-133-354047143", │ │ │ "read_only": false, │ │ │ "server_id": 135, │ │ │ "master_id": 0 │ │ │ }, │ │ │ { │ │ │ "name": "tblw05", │ │ │ "gtid_current_pos": "0-131-12030308", │ │ │ "gtid_binlog_pos": "0-133-326235612", │ │ │ "read_only": false, │ │ │ "server_id": 136, │ │ │ "master_id": 0 │ │ │ } │ │ │ ] │ │ │ } │ └─────────────────────┴─────────────────────────────────────────────────────────────┘ [root@ip-21-105-20-139 ~]# maxctrl show servers ┌──────────────────┬───────────────────────────────────────────┐ │ Server │ tblw01 │ ├──────────────────┼───────────────────────────────────────────┤ │ Address │ 21.105.20.132 │ ├──────────────────┼───────────────────────────────────────────┤ │ Port │ 33306 │ ├──────────────────┼───────────────────────────────────────────┤ │ State │ Master, Synced, Running │ ├──────────────────┼───────────────────────────────────────────┤ │ Version │ 10.4.14-MariaDB-log │ ├──────────────────┼───────────────────────────────────────────┤ │ Last Event │ new_master │ ├──────────────────┼───────────────────────────────────────────┤ │ Triggered At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────────┼───────────────────────────────────────────┤ │ Services │ tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Monitors │ mon_tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Master ID │ -1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Node ID │ 0 │ ├──────────────────┼───────────────────────────────────────────┤ │ Slave Server IDs │ │ ├──────────────────┼───────────────────────────────────────────┤ │ Statistics │ { │ │ │ "connections": 67, │ │ │ "total_connections": 12570, │ │ │ "persistent_connections": 43, │ │ │ "active_operations": 0, │ │ │ "routed_packets": 24375285, │ │ │ "adaptive_avg_select_time": "0ns" │ │ │ } │ ├──────────────────┼───────────────────────────────────────────┤ │ Parameters │ { │ │ │ "address": "21.105.20.132", │ │ │ "socket": null, │ │ │ "protocol": "MySQLBackend", │ │ │ "port": 33306, │ │ │ "extra_port": 0, │ │ │ "authenticator": null, │ │ │ "monitoruser": null, │ │ │ "monitorpw": null, │ │ │ "persistpoolmax": 1000, │ │ │ "persistmaxtime": 500, │ │ │ "proxy_protocol": false, │ │ │ "ssl": "false", │ │ │ "ssl_cert": null, │ │ │ "ssl_key": null, │ │ │ "ssl_ca_cert": null, │ │ │ "ssl_version": "MAX", │ │ │ "ssl_cert_verify_depth": 9, │ │ │ "ssl_verify_peer_certificate": false, │ │ │ "ssl_cipher": null, │ │ │ "disk_space_threshold": null, │ │ │ "rank": "primary", │ │ │ "priority": "1", │ │ │ "serv_weight": "2" │ │ │ } │ └──────────────────┴───────────────────────────────────────────┘ ┌──────────────────┬───────────────────────────────────────────┐ │ Server │ tblw02 │ ├──────────────────┼───────────────────────────────────────────┤ │ Address │ 21.105.20.133 │ ├──────────────────┼───────────────────────────────────────────┤ │ Port │ 33306 │ ├──────────────────┼───────────────────────────────────────────┤ │ State │ Slave, Synced, Running │ ├──────────────────┼───────────────────────────────────────────┤ │ Version │ 10.4.14-MariaDB-log │ ├──────────────────┼───────────────────────────────────────────┤ │ Last Event │ new_slave │ ├──────────────────┼───────────────────────────────────────────┤ │ Triggered At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────────┼───────────────────────────────────────────┤ │ Services │ tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Monitors │ mon_tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Master ID │ -1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Node ID │ 1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Slave Server IDs │ │ ├──────────────────┼───────────────────────────────────────────┤ │ Statistics │ { │ │ │ "connections": 66, │ │ │ "total_connections": 12144, │ │ │ "persistent_connections": 44, │ │ │ "active_operations": 0, │ │ │ "routed_packets": 23547746, │ │ │ "adaptive_avg_select_time": "0ns" │ │ │ } │ ├──────────────────┼───────────────────────────────────────────┤ │ Parameters │ { │ │ │ "address": "21.105.20.133", │ │ │ "socket": null, │ │ │ "protocol": "MySQLBackend", │ │ │ "port": 33306, │ │ │ "extra_port": 0, │ │ │ "authenticator": null, │ │ │ "monitoruser": null, │ │ │ "monitorpw": null, │ │ │ "persistpoolmax": 1000, │ │ │ "persistmaxtime": 500, │ │ │ "proxy_protocol": false, │ │ │ "ssl": "false", │ │ │ "ssl_cert": null, │ │ │ "ssl_key": null, │ │ │ "ssl_ca_cert": null, │ │ │ "ssl_version": "MAX", │ │ │ "ssl_cert_verify_depth": 9, │ │ │ "ssl_verify_peer_certificate": false, │ │ │ "ssl_cipher": null, │ │ │ "disk_space_threshold": null, │ │ │ "rank": "primary", │ │ │ "priority": "2", │ │ │ "serv_weight": "4" │ │ │ } │ └──────────────────┴───────────────────────────────────────────┘ ┌──────────────────┬───────────────────────────────────────────┐ │ Server │ tblw03 │ ├──────────────────┼───────────────────────────────────────────┤ │ Address │ 21.105.20.134 │ ├──────────────────┼───────────────────────────────────────────┤ │ Port │ 33306 │ ├──────────────────┼───────────────────────────────────────────┤ │ State │ Slave, Synced, Running │ ├──────────────────┼───────────────────────────────────────────┤ │ Version │ 10.4.14-MariaDB-log │ ├──────────────────┼───────────────────────────────────────────┤ │ Last Event │ new_slave │ ├──────────────────┼───────────────────────────────────────────┤ │ Triggered At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────────┼───────────────────────────────────────────┤ │ Services │ tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Monitors │ mon_tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Master ID │ -1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Node ID │ 3 │ ├──────────────────┼───────────────────────────────────────────┤ │ Slave Server IDs │ │ ├──────────────────┼───────────────────────────────────────────┤ │ Statistics │ { │ │ │ "connections": 67, │ │ │ "total_connections": 12346, │ │ │ "persistent_connections": 35, │ │ │ "active_operations": 0, │ │ │ "routed_packets": 24302241, │ │ │ "adaptive_avg_select_time": "0ns" │ │ │ } │ ├──────────────────┼───────────────────────────────────────────┤ │ Parameters │ { │ │ │ "address": "21.105.20.134", │ │ │ "socket": null, │ │ │ "protocol": "MySQLBackend", │ │ │ "port": 33306, │ │ │ "extra_port": 0, │ │ │ "authenticator": null, │ │ │ "monitoruser": null, │ │ │ "monitorpw": null, │ │ │ "persistpoolmax": 1000, │ │ │ "persistmaxtime": 500, │ │ │ "proxy_protocol": false, │ │ │ "ssl": "false", │ │ │ "ssl_cert": null, │ │ │ "ssl_key": null, │ │ │ "ssl_ca_cert": null, │ │ │ "ssl_version": "MAX", │ │ │ "ssl_cert_verify_depth": 9, │ │ │ "ssl_verify_peer_certificate": false, │ │ │ "ssl_cipher": null, │ │ │ "disk_space_threshold": null, │ │ │ "rank": "primary", │ │ │ "priority": "2", │ │ │ "serv_weight": "4" │ │ │ } │ └──────────────────┴───────────────────────────────────────────┘ ┌──────────────────┬───────────────────────────────────────────┐ │ Server │ tblw04 │ ├──────────────────┼───────────────────────────────────────────┤ │ Address │ 21.105.20.135 │ ├──────────────────┼───────────────────────────────────────────┤ │ Port │ 33306 │ ├──────────────────┼───────────────────────────────────────────┤ │ State │ Slave, Synced, Running │ ├──────────────────┼───────────────────────────────────────────┤ │ Version │ 10.4.14-MariaDB-log │ ├──────────────────┼───────────────────────────────────────────┤ │ Last Event │ new_slave │ ├──────────────────┼───────────────────────────────────────────┤ │ Triggered At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────────┼───────────────────────────────────────────┤ │ Services │ tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Monitors │ mon_tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Master ID │ -1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Node ID │ 2 │ ├──────────────────┼───────────────────────────────────────────┤ │ Slave Server IDs │ │ ├──────────────────┼───────────────────────────────────────────┤ │ Statistics │ { │ │ │ "connections": 66, │ │ │ "total_connections": 11883, │ │ │ "persistent_connections": 27, │ │ │ "active_operations": 0, │ │ │ "routed_packets": 22770847, │ │ │ "adaptive_avg_select_time": "0ns" │ │ │ } │ ├──────────────────┼───────────────────────────────────────────┤ │ Parameters │ { │ │ │ "address": "21.105.20.135", │ │ │ "socket": null, │ │ │ "protocol": "MySQLBackend", │ │ │ "port": 33306, │ │ │ "extra_port": 0, │ │ │ "authenticator": null, │ │ │ "monitoruser": null, │ │ │ "monitorpw": null, │ │ │ "persistpoolmax": 1000, │ │ │ "persistmaxtime": 500, │ │ │ "proxy_protocol": false, │ │ │ "ssl": "false", │ │ │ "ssl_cert": null, │ │ │ "ssl_key": null, │ │ │ "ssl_ca_cert": null, │ │ │ "ssl_version": "MAX", │ │ │ "ssl_cert_verify_depth": 9, │ │ │ "ssl_verify_peer_certificate": false, │ │ │ "ssl_cipher": null, │ │ │ "disk_space_threshold": null, │ │ │ "rank": "primary", │ │ │ "priority": "2", │ │ │ "serv_weight": "4" │ │ │ } │ └──────────────────┴───────────────────────────────────────────┘ ┌──────────────────┬───────────────────────────────────────────┐ │ Server │ tblw05 │ ├──────────────────┼───────────────────────────────────────────┤ │ Address │ 21.105.20.136 │ ├──────────────────┼───────────────────────────────────────────┤ │ Port │ 33306 │ ├──────────────────┼───────────────────────────────────────────┤ │ State │ Slave, Synced, Running │ ├──────────────────┼───────────────────────────────────────────┤ │ Version │ 10.4.14-MariaDB-log │ ├──────────────────┼───────────────────────────────────────────┤ │ Last Event │ new_slave │ ├──────────────────┼───────────────────────────────────────────┤ │ Triggered At │ Sat, 03 Oct 2020 22:45:20 GMT │ ├──────────────────┼───────────────────────────────────────────┤ │ Services │ tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Monitors │ mon_tblw │ ├──────────────────┼───────────────────────────────────────────┤ │ Master ID │ -1 │ ├──────────────────┼───────────────────────────────────────────┤ │ Node ID │ 4 │ ├──────────────────┼───────────────────────────────────────────┤ │ Slave Server IDs │ │ ├──────────────────┼───────────────────────────────────────────┤ │ Statistics │ { │ │ │ "connections": 66, │ │ │ "total_connections": 11674, │ │ │ "persistent_connections": 32, │ │ │ "active_operations": 0, │ │ │ "routed_packets": 20974027, │ │ │ "adaptive_avg_select_time": "0ns" │ │ │ } │ ├──────────────────┼───────────────────────────────────────────┤ │ Parameters │ { │ │ │ "address": "21.105.20.136", │ │ │ "socket": null, │ │ │ "protocol": "MySQLBackend", │ │ │ "port": 33306, │ │ │ "extra_port": 0, │ │ │ "authenticator": null, │ │ │ "monitoruser": null, │ │ │ "monitorpw": null, │ │ │ "persistpoolmax": 1000, │ │ │ "persistmaxtime": 500, │ │ │ "proxy_protocol": false, │ │ │ "ssl": "false", │ │ │ "ssl_cert": null, │ │ │ "ssl_key": null, │ │ │ "ssl_ca_cert": null, │ │ │ "ssl_version": "MAX", │ │ │ "ssl_cert_verify_depth": 9, │ │ │ "ssl_verify_peer_certificate": false, │ │ │ "ssl_cipher": null, │ │ │ "disk_space_threshold": null, │ │ │ "rank": "primary", │ │ │ "priority": "2", │ │ │ "serv_weight": "4" │ │ │ } │ └──────────────────┴───────────────────────────────────────────┘