[FEAT MERGE] 日志流副本运维命令

This commit is contained in:
zhangzhenyuyu
2024-08-12 10:05:52 +00:00
committed by ob-robot
parent 1a0f638cdf
commit 267e780787
74 changed files with 7531 additions and 402 deletions

View File

@ -24165,3 +24165,865 @@ question_mask_size: 0
}
]
}
************** Case 204 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 205 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 206 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{ },
{ }
]
}
]
}
************** Case 207 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{ },
{ },
{ }
]
}
]
}
************** Case 208 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 209 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 210 ***************
alter system remove replica ls=100 server='100.88.107.212:5000';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{ },
{ }
]
}
]
}
************** Case 211 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 212 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 213 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{ },
{ }
]
}
]
}
************** Case 214 ***************
alter system modify ls=100 paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_PAXOS_REPLICA_NUM",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 215 ***************
alter system modify ls=100 paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_PAXOS_REPLICA_NUM",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 216 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001' tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 217 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{ }
]
}
]
}
************** Case 218 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{ },
{ }
]
}
]
}
************** Case 219 ***************
alter system cancel replica task task_id = 'xxx' tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_CANCEL_LS_REPLICA_TASK",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":3,
"str_val":"xxx"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 220 ***************
alter system cancel replica task task_id = 'xxx';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_CANCEL_LS_REPLICA_TASK",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":3,
"str_val":"xxx"
},
{ }
]
}
]
}