Documentation
¶
Index ¶
Constants ¶
View Source
const EnvVarPrefix = "OP_CONDUCTOR"
Variables ¶
View Source
var ( ConsensusAddr = &cli.StringFlag{ Name: "consensus.addr", Usage: "Address (excluding port) to listen for consensus connections.", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "CONSENSUS_ADDR"), Value: "127.0.0.1", } ConsensusPort = &cli.IntFlag{ Name: "consensus.port", Usage: "Port to listen for consensus connections. May be 0 to let the system select a port.", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "CONSENSUS_PORT"), Value: 50050, } AdvertisedFullAddr = &cli.StringFlag{ Name: "consensus.advertised", Usage: "Full address (host and port) for other peers to contact the consensus server. Optional: if left empty, the local address is advertised.", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "CONSENSUS_ADVERTISED"), Value: "", } RaftBootstrap = &cli.BoolFlag{ Name: "raft.bootstrap", Usage: "If this node should bootstrap a new raft cluster", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_BOOTSTRAP"), Value: false, } RaftServerID = &cli.StringFlag{ Name: "raft.server.id", Usage: "Unique ID for this server used by raft consensus", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_SERVER_ID"), } RaftStorageDir = &cli.StringFlag{ Name: "raft.storage.dir", Usage: "Directory to store raft data", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_STORAGE_DIR"), } RaftSnapshotInterval = &cli.DurationFlag{ Name: "raft.snapshot-interval", Usage: "The interval to check if a snapshot should be taken.", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_SNAPSHOT_INTERVAL"), Value: 120 * time.Second, } RaftSnapshotThreshold = &cli.Uint64Flag{ Name: "raft.snapshot-threshold", Usage: "Number of logs to trigger a snapshot", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_SNAPSHOT_THRESHOLD"), Value: 8192, } RaftTrailingLogs = &cli.Uint64Flag{ Name: "raft.trailing-logs", Usage: "Number of logs to keep after a snapshot", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_TRAILING_LOGS"), Value: 10240, } RaftHeartbeatTimeout = &cli.DurationFlag{ Name: "raft.heartbeat-timeout", Usage: "Heartbeat interval timeout", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_HEARTBEAT_TIMEOUT"), Value: 1000 * time.Millisecond, } RaftLeaderLeaseTimeout = &cli.DurationFlag{ Name: "raft.lease-timeout", Usage: "Leader lease timeout", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RAFT_LEASE_TIMEOUT"), Value: 500 * time.Millisecond, } NodeRPC = &cli.StringFlag{ Name: "node.rpc", Usage: "HTTP provider URL for op-node", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "NODE_RPC"), } ExecutionRPC = &cli.StringFlag{ Name: "execution.rpc", Usage: "HTTP provider URL for execution layer", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "EXECUTION_RPC"), } HealthCheckInterval = &cli.Uint64Flag{ Name: "healthcheck.interval", Usage: "Interval between health checks", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_INTERVAL"), } HealthCheckUnsafeInterval = &cli.Uint64Flag{ Name: "healthcheck.unsafe-interval", Usage: "Interval allowed between unsafe head and now measured in seconds", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_UNSAFE_INTERVAL"), } HealthCheckSafeEnabled = &cli.BoolFlag{ Name: "healthcheck.safe-enabled", Usage: "Whether to enable safe head progression checks", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_SAFE_ENABLED"), Value: false, } HealthCheckSafeInterval = &cli.Uint64Flag{ Name: "healthcheck.safe-interval", Usage: "Interval between safe head progression measured in seconds", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_SAFE_INTERVAL"), Value: 1200, } HealthCheckMinPeerCount = &cli.Uint64Flag{ Name: "healthcheck.min-peer-count", Usage: "Minimum number of peers required to be considered healthy", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "HEALTHCHECK_MIN_PEER_COUNT"), } Paused = &cli.BoolFlag{ Name: "paused", Usage: "Whether the conductor is paused", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "PAUSED"), Value: false, } RPCEnableProxy = &cli.BoolFlag{ Name: "rpc.enable-proxy", Usage: "Enable the RPC proxy to underlying sequencer services", EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RPC_ENABLE_PROXY"), Value: true, } )
View Source
var Flags []cli.Flag
Functions ¶
func CheckRequired ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.