20 lines
715 B
Plaintext
20 lines
715 B
Plaintext
select SERVER_ID,ROLE,FORCE_SYNC,ELECTION_WEIGHT from information_schema.alisql_cluster_global;
|
|
SERVER_ID ROLE FORCE_SYNC ELECTION_WEIGHT
|
|
1 Leader No 5
|
|
2 Follower No 5
|
|
3 Follower No 5
|
|
call dbms_consensus.configure_follower("127.0.0.1:PAXOS_PORT_1", 9, 1);
|
|
call dbms_consensus.configure_follower("127.0.0.1:PAXOS_PORT_3", 1, 0);
|
|
select SERVER_ID,ROLE,FORCE_SYNC,ELECTION_WEIGHT from information_schema.alisql_cluster_global;
|
|
SERVER_ID ROLE FORCE_SYNC ELECTION_WEIGHT
|
|
1 Leader Yes 9
|
|
2 Follower No 5
|
|
3 Follower No 1
|
|
call dbms_consensus.change_leader("127.0.0.1:PAXOS_PORT_3");
|
|
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
No Role
|
|
select role from information_schema.alisql_cluster_local;
|
|
role
|
|
Leader
|