From b4278ee1bc9e0651491efca17b041eb75dde136d Mon Sep 17 00:00:00 2001 From: Dan Pulitano Date: Mon, 9 Dec 2024 14:55:35 -0500 Subject: [PATCH] Update RPC ports in op-conductor.mdx examples --- .../chain-operators/tools/op-conductor.mdx | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/pages/builders/chain-operators/tools/op-conductor.mdx b/pages/builders/chain-operators/tools/op-conductor.mdx index 8dc4b6695..506a90a36 100644 --- a/pages/builders/chain-operators/tools/op-conductor.mdx +++ b/pages/builders/chain-operators/tools/op-conductor.mdx @@ -373,13 +373,13 @@ manually started sequencer. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_overrideLeader","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_overrideLeader --rpc-url http://127.0.0.1:50050 + cast rpc conductor_overrideLeader --rpc-url http://127.0.0.1:8547 ``` @@ -393,13 +393,13 @@ manually started sequencer. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_pause","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_pause --rpc-url http://127.0.0.1:50050 + cast rpc conductor_pause --rpc-url http://127.0.0.1:8547 ``` @@ -413,13 +413,13 @@ manually started sequencer. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_resume","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_resume --rpc-url http://127.0.0.1:50050 + cast rpc conductor_resume --rpc-url http://127.0.0.1:8547 ``` @@ -433,13 +433,13 @@ Paused returns true if the op-conductor is paused. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_paused","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_paused --rpc-url http://127.0.0.1:50050 + cast rpc conductor_paused --rpc-url http://127.0.0.1:8547 ``` @@ -453,13 +453,13 @@ Stopped returns true if the op-conductor is stopped. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_stopped","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_stopped --rpc-url http://127.0.0.1:50050 + cast rpc conductor_stopped --rpc-url http://127.0.0.1:8547 ``` @@ -473,13 +473,13 @@ SequencerHealthy returns true if the sequencer is healthy. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_sequencerHealthy","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_sequencerHealthy --rpc-url http://127.0.0.1:50050 + cast rpc conductor_sequencerHealthy --rpc-url http://127.0.0.1:8547 ``` @@ -497,13 +497,13 @@ Leader returns true if the server is the leader. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_leader","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_leader --rpc-url http://127.0.0.1:50050 + cast rpc conductor_leader --rpc-url http://127.0.0.1:8547 ``` @@ -521,13 +521,13 @@ LeaderWithID returns the current leader's server info. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_leaderWithID","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_leaderWithID --rpc-url http://127.0.0.1:50050 + cast rpc conductor_leaderWithID --rpc-url http://127.0.0.1:8547 ``` @@ -535,7 +535,7 @@ LeaderWithID returns the current leader's server info. #### conductor_addServerAsVoter - API related to consensus. The address parameter is the raft consensus address, not the RPC address. + API related to consensus. AddServerAsVoter adds a server as a voter to the cluster. @@ -544,14 +544,14 @@ AddServerAsVoter adds a server as a voter to the cluster. ```sh curl -X POST -H "Content-Type: application/json" --data \ - '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[, , ],"id":1}' \ - http://127.0.0.1:50050 + '{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[, , ],"id":1}' \ + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:50050 + cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:8547 ``` @@ -570,13 +570,13 @@ The non-voter will not participate in the leader election. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:50050 + cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:8547 ``` @@ -594,13 +594,13 @@ RemoveServer removes a server from the cluster. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_removeServer","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_removeServer --rpc-url http://127.0.0.1:50050 + cast rpc conductor_removeServer --rpc-url http://127.0.0.1:8547 ``` @@ -618,13 +618,13 @@ TransferLeader transfers leadership to another server. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_transferLeader","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_transferLeader --rpc-url http://127.0.0.1:50050 + cast rpc conductor_transferLeader --rpc-url http://127.0.0.1:8547 ``` @@ -642,13 +642,13 @@ TransferLeaderToServer transfers leadership to a specific server. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:50050 + cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:8547 ``` @@ -662,13 +662,13 @@ ClusterMembership returns the current cluster membership configuration. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_clusterMembership","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_clusterMembership --rpc-url http://127.0.0.1:50050 + cast rpc conductor_clusterMembership --rpc-url http://127.0.0.1:8547 ``` @@ -686,13 +686,13 @@ Active returns true if the op-conductor is active (not paused or stopped). ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_active","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_active --rpc-url http://127.0.0.1:50050 + cast rpc conductor_active --rpc-url http://127.0.0.1:8547 ``` @@ -711,13 +711,13 @@ layer. ```sh curl -X POST -H "Content-Type: application/json" --data \ '{"jsonrpc":"2.0","method":"conductor_commitUnsafePayload","params":[],"id":1}' \ - http://127.0.0.1:50050 + http://127.0.0.1:8547 ``` ```sh - cast rpc conductor_commitUnsafePayload --rpc-url http://127.0.0.1:50050 + cast rpc conductor_commitUnsafePayload --rpc-url http://127.0.0.1:8547 ```