name | data type | constraints | description |
---|---|---|---|
name | string | service name | |
type | ClusterTopology | cluster type | |
composite | boolean | required boolean | true if it is a composite cluster |
multimaster | boolean | required boolean | true if it is a multimaster cluster |
policy | ClusterPolicyManagerMode | cluster policy | |
coordinators | array of string | list of coordinator names | |
services | array of Service | service list | |
datasources | array of Datasource | datasource list only for simple clusters without multiple services | |
routers | array of Router | connector list |
Example
{ "name" : "global", "type" : "clustered_master_slave", "composite" : true, "multimaster" : true, "policy" : "AUTOMATIC", "coordinators" : [ "db1", "db4" ], "services" : [ { "name" : "west", "type" : "clustered_master_slave", "role" : "MASTER", "state" : "ONLINE", "policy" : "AUTOMATIC", "coordinator" : "db1", "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "WARN", "alertMessage" : "...", "datasources" : [ { "name" : "db1", "role" : "master", "state" : "ONLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "CRITICAL", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { }, "replicator" : { }, "dataserver" : { }, "connections" : { } }, { "name" : "db2", "role" : "slave", "state" : "OFFLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "SHUNNED", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { }, "replicator" : { }, "dataserver" : { }, "connections" : { } } ], "error" : true, "errorText" : "..." }, { "name" : "east", "type" : "clustered_master_slave", "role" : "SLAVE", "state" : "OFFLINE", "policy" : "MAINTENANCE", "coordinator" : "db4", "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "DIMINISHED", "alertMessage" : "...", "datasources" : [ { "name" : "db2", "role" : "slave", "state" : "OFFLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "OK", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { }, "replicator" : { }, "dataserver" : { }, "connections" : { } }, { "name" : "db2", "role" : "slave", "state" : "OFFLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "OK", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { }, "replicator" : { }, "dataserver" : { }, "connections" : { } } ], "error" : true, "errorText" : "..." } ], "datasources" : [ { "name" : "db1", "role" : "master", "state" : "ONLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "CRITICAL", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { "state" : "ONLINE" }, "replicator" : { "role" : "MASTER", "state" : "ONLINE", "seqno" : 12345, "minStoredSeqno" : 12345, "maxStoredSeqno" : 12345, "appliedLatency" : 1.0, "relativeLatency" : 1.981, "appliedLastEventId" : "mysql-bin.000153:0000000000000873;-1", "pipelineSource" : "thls://db1:2112/", "version" : "Tungsten Clustering 7.0.0 build 7" }, "dataserver" : { "state" : "ONLINE" }, "connections" : { "active" : 12345, "created" : 12345 } }, { "name" : "db2", "role" : "slave", "state" : "OFFLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "WARN", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { "state" : "OFFLINE" }, "replicator" : { "role" : "SLAVE", "state" : "OFFLINE", "seqno" : 12345, "minStoredSeqno" : 12345, "maxStoredSeqno" : 12345, "appliedLatency" : 1.0, "relativeLatency" : 1.981, "appliedLastEventId" : "mysql-bin.000153:0000000000000873;-1", "pipelineSource" : "/var/lib/mysql", "version" : "Tungsten Clustering 7.0.0 build 7" }, "dataserver" : { "state" : "OFFLINE" }, "connections" : { "active" : 12345, "created" : 12345 } } ], "routers" : [ { "name" : "db1", "connections" : { "active" : 12345, "created" : 12345 } }, { "name" : "db2", "connections" : { "active" : 12345, "created" : 12345 } } ] }