@@ -544,14 +544,14 @@ AddServerAsVoter adds a server as a voter to the cluster.
544
544
<Tabs.Tab>
545
545
` ` ` sh
546
546
curl -X POST -H "Content-Type: application/json" --data \
547
- '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[<id>, <raft-consensus-addr>, <version>],"id":1}' \
547
+ '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[<raft-server- id>, <raft-consensus-addr>, <raft-config- version>],"id":1}' \
548
548
http://127.0.0.1:8547
549
549
` ` `
550
550
</Tabs.Tab>
551
551
552
552
<Tabs.Tab>
553
553
` ` ` sh
554
- cast rpc conductor_addServerAsVoter -- rpc-url http://127.0.0.1:8547 <id> <raft-consensus-addr> <version>
554
+ cast rpc conductor_addServerAsVoter <raft-server-id> <raft-consensus-addr> <raft-config-version> -- rpc-url http://127.0.0.1:8547
555
555
` ` `
556
556
</Tabs.Tab>
557
557
</Tabs>
@@ -569,14 +569,14 @@ The non-voter will not participate in the leader election.
569
569
<Tabs.Tab>
570
570
` ` ` sh
571
571
curl -X POST -H "Content-Type: application/json" --data \
572
- '{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[],"id":1}' \
572
+ '{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[<raft-server-id>, <raft-consensus-addr>, <raft-config-version> ],"id":1}' \
573
573
http://127.0.0.1:8547
574
574
` ` `
575
575
</Tabs.Tab>
576
576
577
577
<Tabs.Tab>
578
578
` ` ` sh
579
- cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:8547
579
+ cast rpc conductor_addServerAsNonvoter <raft-server-id> <raft-consensus-addr> <raft-config-version> --rpc-url http://127.0.0.1:8547
580
580
` ` `
581
581
</Tabs.Tab>
582
582
</Tabs>
@@ -593,14 +593,14 @@ RemoveServer removes a server from the cluster.
593
593
<Tabs.Tab>
594
594
` ` ` sh
595
595
curl -X POST -H "Content-Type: application/json" --data \
596
- '{"jsonrpc":"2.0","method":"conductor_removeServer","params":[],"id":1}' \
596
+ '{"jsonrpc":"2.0","method":"conductor_removeServer","params":[<raft-server-id>, <raft-config-version> ],"id":1}' \
597
597
http://127.0.0.1:8547
598
598
` ` `
599
599
</Tabs.Tab>
600
600
601
601
<Tabs.Tab>
602
602
` ` ` sh
603
- cast rpc conductor_removeServer --rpc-url http://127.0.0.1:8547
603
+ cast rpc conductor_removeServer <raft-server-id> <raft-config-version> --rpc-url http://127.0.0.1:8547
604
604
` ` `
605
605
</Tabs.Tab>
606
606
</Tabs>
@@ -611,7 +611,7 @@ RemoveServer removes a server from the cluster.
611
611
API related to consensus.
612
612
</Callout>
613
613
614
- TransferLeader transfers leadership to another server.
614
+ TransferLeader transfers leadership to another server (resigns) .
615
615
616
616
<Tabs items={['curl', 'cast']}>
617
617
<Tabs.Tab>
@@ -641,14 +641,14 @@ TransferLeaderToServer transfers leadership to a specific server.
641
641
<Tabs.Tab>
642
642
` ` ` sh
643
643
curl -X POST -H "Content-Type: application/json" --data \
644
- '{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[],"id":1}' \
644
+ '{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[<raft-server-id>, <raft-consensus-addr>, <raft-config-version> ],"id":1}' \
645
645
http://127.0.0.1:8547
646
646
` ` `
647
647
</Tabs.Tab>
648
648
649
649
<Tabs.Tab>
650
650
` ` ` sh
651
- cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:8547
651
+ cast rpc conductor_transferLeaderToServer <raft-server-id> <raft-consensus-addr> <raft-config-version> --rpc-url http://127.0.0.1:8547
652
652
` ` `
653
653
</Tabs.Tab>
654
654
</Tabs>
@@ -704,7 +704,7 @@ Active returns true if the op-conductor is active (not paused or stopped).
704
704
</Callout>
705
705
706
706
CommitUnsafePayload commits an unsafe payload (latest head) to the consensus
707
- layer.
707
+ layer. TODO - usage examples that include required params are needed
708
708
709
709
<Tabs items={['curl', 'cast']}>
710
710
<Tabs.Tab>
0 commit comments