Configuration options
It is configured via its flags / environment variables—consensus.addr (CONSENSUS_ADDR)
- Usage: Address to listen for consensus connections
- Default Value: 127.0.0.1
- Required: yes
—consensus.advertised (CONSENSUS_ADVERTISED)
- Usage: Address to advertise for consensus connections
- Default Value: 127.0.0.1
- Required: yes
—consensus.port (CONSENSUS_PORT)
- Usage: Port to listen for consensus connections
- Default Value: 50050
- Required: yes
—raft.bootstrap (RAFT_BOOTSTRAP)
For bootstrapping a new cluster. This should only be used on the sequencer
that is currently active and can only be started once with this flag,
otherwise the flag has to be removed or the raft log must be deleted before
re-bootstrapping the cluster.
- Usage: If this node should bootstrap a new raft cluster
- Default Value: false
- Required: no
—raft.server.id (RAFT_SERVER_ID)
- Usage: Unique ID for this server used by raft consensus
- Default Value: None specified
- Required: yes
—raft.storage.dir (RAFT_STORAGE_DIR)
- Usage: Directory to store raft data
- Default Value: None specified
- Required: yes
—node.rpc (NODE_RPC)
- Usage: HTTP provider URL for op-node
- Default Value: None specified
- Required: yes
—execution.rpc (EXECUTION_RPC)
- Usage: HTTP provider URL for execution layer
- Default Value: None specified
- Required: yes
—healthcheck.interval (HEALTHCHECK_INTERVAL)
- Usage: Interval between health checks
- Default Value: None specified
- Required: yes
—healthcheck.unsafe-interval (HEALTHCHECK_UNSAFE_INTERVAL)
- Usage: Interval allowed between unsafe head and now measured in seconds
- Default Value: None specified
- Required: yes
—healthcheck.safe-enabled (HEALTHCHECK_SAFE_ENABLED)
- Usage: Whether to enable safe head progression checks
- Default Value: false
- Required: no
—healthcheck.safe-interval (HEALTHCHECK_SAFE_INTERVAL)
- Usage: Interval between safe head progression measured in seconds
- Default Value: 1200
- Required: no
—healthcheck.min-peer-count (HEALTHCHECK_MIN_PEER_COUNT)
- Usage: Minimum number of peers required to be considered healthy
- Default Value: None specified
- Required: yes
—paused (PAUSED)
There is no configuration state, so if you unpause via RPC and then restart,
it will start paused again.
- Usage: Whether the conductor is paused
- Default Value: false
- Required: no
—rpc.enable-proxy (RPC_ENABLE_PROXY)
- Usage: Enable the RPC proxy to underlying sequencer services
- Default Value: true
- Required: no
RPCs
Conductor exposes admin RPCs on theconductor namespace.
conductor_overrideLeader
OverrideLeader is used to override the leader status, this is only used to
return true for Leader() & LeaderWithID() calls. It does not impact the
actual raft consensus leadership status. It is supposed to be used when the
cluster is unhealthy and the node is the only one up, to allow batcher to
be able to connect to the node so that it could download blocks from the
manually started sequencer.
- curl
- cast
conductor_pause
Pause pauses op-conductor.
- curl
- cast
conductor_resume
Resume resumes op-conductor.
- curl
- cast
conductor_paused
Paused returns true if the op-conductor is paused.- curl
- cast
conductor_stopped
Stopped returns true if the op-conductor is stopped.- curl
- cast
conductor_sequencerHealthy
SequencerHealthy returns true if the sequencer is healthy.- curl
- cast
conductor_leader
API related to consensus.
- curl
- cast
conductor_leaderWithID
API related to consensus.
- curl
- cast
conductor_addServerAsVoter
API related to consensus.
- curl
- cast
conductor_addServerAsNonvoter
API related to consensus.
- curl
- cast
conductor_removeServer
API related to consensus.
- curl
- cast
conductor_transferLeader
API related to consensus.
- curl
- cast
conductor_transferLeaderToServer
API related to consensus.
- curl
- cast
conductor_clusterMembership
ClusterMembership returns the current cluster membership configuration.- curl
- cast
conductor_active
API called by
op-node.- curl
- cast
conductor_commitUnsafePayload
API called by
op-node.- curl
- cast