bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 32쪽
h SafeDB (`--rollup-rpc`), and
`op-dispute-mon` takes a rollup RPC of its own. Redundant nodes behind a
generic load balancer are the wrong shape for any of them. Two nodes can be
at the same head, but nothing holds them there, and a service whose
consecutive requests round-robin between them reads that divergence as
blocks appearing and disappearing: reorgs that never happened. The
challenger is the least tolerant consumer and needs one trusted endpoint
that fails over deliberately rather than per request. See
[the launch guide's section on a consistent view](/use-cases/launch-a-chain-with-fault-proofs-and-ha-sequencing#give-every-service-a-consistent-view-of-l1).
### The keys and the decisions
* **The keys.** The batcher and proposer addresses need their private keys
online somewhere for the system to work, and if those addresses are
compromised, the system can be exploited. They are not the only privileged
addresses your chain has. The Proxy Admins can upgrade most of the system
contracts on L1 and L2, the System Config Owner can change the values in
the `SystemConfig` contract, the Guardian can pause withdrawal logic and
disable dispute game types from executing withdrawals, and the permissioned
Challenger role is a distinct address from the `op-challenger` service.
Which addresses hold which role, and how each key is held, whether through
an HSM or a cloud key management system, are decisions the chain operator
makes. See
[Key management](/chain-operators/guides/management/key-management) and
[Privileged roles in OP Stack chains](/op-stack/protocol/privileged-roles#privileged-roles-in-op-stack-chains)
for what every role can do and what a compromise of it means.
* **The path to permissionless proofs.** Chains deployed with `op-deployer`
start with the permissioned dispute game, in which the proposer and
challenger are specific addresses holding privileged roles. Moving to
permissionless fault proofs is a switch your team schedules after launch.
See
[the launch guide's permissionless-proofs step](/use-cases/launch-a-chain-with-fault-proofs-and-ha-sequencing#step-7-schedule-the-switch-to-permissionless-proofs).
### The work that recurs
* **The protocol upgrade cadence.** The OP Stack is being continuously
improved and it's your responsibility to keep it up to date. Network
upgrades, deprecations, security patches, and operational changes arrive as
time-bound action items in [Network Notices](/notices), with the permanent
record of each hardfork in the
[hardfork registry](/op-stack/protocol/network-upgrades), which records
activation times, the governing spec, and minimum component versions.
Tracking each notice, moving your components to the versions it names, and
executing the change on your chain recurs for as long as the chain runs.
* **The standing work.** Running current production releases, keeping the
deployment artifacts, staggering upgrade rollouts across your
infrastructure, isolating the sequencer, and writing your own runbooks are
continuous tasks rather than launch-day ones. Monitoring only helps if
someone is on the other end of it. Metrics endpoints on your key
components, and runbooks to execute when something is not behaving as
expected, are the documented practice; the alerting path, the people
reachable through it, and the incident response itself are yours to build
and staff. See
[Chain operator best practices](/chain-operators/guides/management/best-practices).
<CardGroup>
<Card title="Deploy a chain, component by component" icon="rocket" href="/chain-operators/tutorials/create-l2-rollup">
The full deployment tutorial: contracts, genesis, sequencer, batcher,
proposer, and challenger on a testnet.
</Card>
<Card title="Take a chain to production" icon="shield-check" href="/use-cases/launch-a-chain-with-fault-proofs-and-ha-sequencing">
The launch guide: fault proofs from day one and a sequencer topology with no
single point of failure, through failover drills.
</Card>
<Card title="Staff the defense" icon="gavel" href="/use-cases/run-a-fault-proof-challenger">
Bond budgeting, prestate selection, the infrastructure the challenger
depends on, and how to confirm it is defending your chain.
</Card>
<Card title="Run it day to day" icon="wrench" href="/chain-operators/guides/management/best-practices">
Release selection, deployment artifacts, staggered rollouts, sequencer
isolation, and runbooks.
</Card>
</CardGroup>
## Run it with engineering support
Your team still runs the chain. The difference is who sits behind the decisions
above and behind the incidents when they happen: OP Labs engineering does,
alongside your operators. Everything linked in the previous section stays the
reference for what your team is running, because it is the same system.
One capability on this path is not something your team has to stand up itself:
OP Labs can optionally run a backup sequencer for your chain, alongside the
sequencer cluster your team operates. It is opt-in rather than part of the path
by default, and whether to take it is your team's decision.
## Have it operated for you
OP Enterprise runs the chain and your team consumes it. The pages above still
describe what is running on your behalf, which is why they are worth reading on
this path too: the properties you are buying are the ones those pages document.
## What OP Enterprise is
OP Enterprise is Optimism's managed offering. It covers fully managed and
supported self-managed options, backed by an uptime SLA, priority incident
response, direct engineering support, and managed public RPC.
The
[OP Enterprise](https://optimism.io/op-enterprise?utm_source=docs\&utm_medium=docs\&utm_campaign=op-enterprise)
page states what each option includes and is the source of truth for its terms.
This page does not restate them.
## Where to go from here
Whichever point on the spectrum you choose, the
[chain operator quickstart](/chain-operators/quickstart) and the pages it leads
to describe the same chain. Start there if you have not deployed one yet.
# Chain operator quickstart
Source: https://docs.optimism.io/chain-operators/quickstart
Launch a scalable and customizable Layer 2 Rollup blockchain with Ethereum-grade security - powered by Optimism.
Launch your own OP Stack chain: an open-source, modular, Ethereum Layer 2 rollup.
This page orients you on the key components and the sequence of steps, then hands you off to the [full deployment tutorial](/chain-operators/tutorials/create-l2-rollup).
There are two ways to have an OP Stack chain: run it yourself, which is what this page and the tutorial behind it cover, or have it run for you.
[Choose how to run your chain](/chain-operators/launch-paths) sets out the spectrum between them and what your team owns at each point on it.
## Components
Before you deploy, it is important to understand the key components and how they come together to create your blockchain.
* **L1 Smart contracts**: A set of smart contracts to be deployed on Ethereum to bridge between the L1 and L2 domains and manage aspects of the rollup.
* **Sequencer**: A single privileged node that accepts and derives user transactions on the network to construct the blockchain.
* **Batcher**: A sequencer service that publishes L2 transactions onto Ethereum.
Using Ethereum as a data availability layer, the OP Stack inherits Ethereum's security properties by allowing any node to derive the state of the L2 blockchain from L1.
* **Proposer**: A service responsible for publishing the L2 state root to Ethereum which enables user withdrawals of assets.
* **Challenger**: The challenger enforces network security by disputing invalid state roots that have been posted to Ethereum.
## Deployment
The following section will walk you through the sequence of steps a chain operator will follow to begin sequencing a chain.
<Steps>
<Step title="Smart contract deployment">
Using a CLI tool called [op-deployer](/chain-operators/tools/op-deployer/overview) you will configure your chain and then deploy the smart contracts on Ethereum.
</Step>
<Step title="Chain genesis creation">
After deploying the L1 smart contracts, you will use [op-deployer](/chain-operators/tools/op-deployer/overview) to generate two files necessary to run nodes on the L2 network:
* **Genesis file** (`genesis.json`): Initializes the execution client (`op-reth`)
* **Rollup configuration file** (`rollup.json`): Configures the consensus client (`op-node`)
These files contain all the essential information your services need to interact with Ethereum and the system contracts you deployed.
</Step>
<Step title="Start sequencing">
To begin sequencing transactions and building blocks, you will then run an **execution client** and **consensus client** that come together as your **sequencer node**.
</Step>
<Step title="Begin batching transactions">
Next you will run `op-batcher` which will publish user transactions on Ethereum.
</Step>
<Step title="Start proposing state roots">
Then you will run `op-proposer` to publish the L2 state root on Ethereum to enable withdrawals back to Ethereum.
</Step>
<Step title="Protect your chain">
Finally you will run `op-challenger` to monitor and dispute any invalid L2 state roots that have been posted.
</Step>
</Steps>
<Card title="Start the deployment tutorial" icon="rocket" href="/chain-operators/tutorials/create-l2-rollup">
Deploy a complete OP Stack testnet, component by component, with a working automated example alongside.
</Card>
## Next Steps
Take a look at some of the [chain operator best practices](/chain-operators/guides/management/best-practices) to get an idea of some of the things you'll need to keep in mind.
<Info>
**Running this in production**
<OpEnterpriseCalloutBody />
</Info>
# Batcher configuration reference
Source: https://docs.optimism.io/chain-operators/reference/batcher-configuration
Reference for all op-batcher configuration options, covering CLI flags, environment variables, and default values.
This page catalogues every configuration option for the op-batcher, the service
that posts L2 sequencer data to L1 to make it available for verifiers.
<ConfigReferencePreamble />
For guidance on choosing values — the batcher policy, cost tuning, multi-blob
transactions, and sequencer throttling — see the
[batcher configuration guide](/chain-operators/guides/configuration/batcher).
## Flags
Generated from [`op-batcher/v1.16.11`](https://github.com/ethereum-optimism/optimism/releases/tag/op-batcher%2Fv1.16.11)
flag definitions. 87 flags: 3 required, 84 optional.
### Required flags
| Flag | Description | Environment variable |
| - | - | - |
| `--l1-eth-rpc` | HTTP provider URL for L1 | `OP_BATCHER_L1_ETH_RPC` |
| `--l2-eth-rpc` | HTTP provider URL for L2 execution engine. A comma-separated list enables the active L2 endpoint provider. Such a list needs to match the number of rollup-rpcs provided. | `OP_BATCHER_L2_ETH_RPC` |
| `--rollup-rpc` | HTTP provider URL for Rollup node. A comma-separated list enables the active L2 endpoint provider. Such a list needs to match the number of l2-eth-rpcs provided. | `OP_BATCHER_ROLLUP_RPC` |
### Optional flags
| Flag | Description | Default | Environment variable |
| - | - | - | - |
| `--active-sequencer-check-duration` | The duration between checks to determine the active sequencer endpoint. | `5s` | `OP_BATCHER_ACTIVE_SEQUENCER_CHECK_DURATION` |
| `--altda.da-server` | HTTP address of a DA Server | — | `OP_BATCHER_ALTDA_DA_SERVER` |
| `--altda.da-service` | Use DA service type where commitments are generated by Alt-DA server | `false` | `OP_BATCHER_ALTDA_DA_SERVICE` |
| `--altda.enabled` | Enable Alt-DA mode Alt-DA Mode is a Beta feature of the MIT licensed OP Stack. While it has received initial review from core contributors, it is still undergoing testing, and may have bugs or other issues. | `false` | `OP_BATCHER_ALTDA_ENABLED` |
| `--altda.get-timeout` | Timeout for get requests. 0 means no timeout. | `0s` | `OP_BATCHER_ALTDA_GET_TIMEOUT` |
| `--altda.max-concurrent-da-requests` | Maximum number of concurrent requests to the DA server | `1` | `OP_BATCHER_ALTDA_MAX_CONCURRENT_DA_REQUESTS` |
| `--altda.put-timeout` | Timeout for put requests. 0 means no timeout. | `0s` | `OP_BATCHER_ALTDA_PUT_TIMEOUT` |
| `--altda.verify-on-read` | Verify input data matches the commitments from the DA storage service | `true` | `OP_BATCHER_ALTDA_VERIFY_ON_READ` |
| `--approx-compr-ratio` | The approximate compression ratio (\<= 1.0). Only relevant for ratio compressor. | `0.6` | `OP_BATCHER_APPROX_COMPR_RATIO` |
| `--batch-type` | The batch type. 0 for SingularBatch and 1 for SpanBatch. | `singular` | `OP_BATCHER_BATCH_TYPE` |
| `--check-recent-txs-depth` | Indicates how many blocks back the batcher should look during startup for a recent batch tx on L1. This can speed up waiting for node sync. It should be set to the verifier confirmation depth of the sequencer (e.g. 4). | `0` | `OP_BATCHER_CHECK_RECENT_TXS_DEPTH` |
| `--compression-algo` | The compression algorithm to use. Valid options: zlib, brotli, brotli-9, brotli-10, brotli-11 | `zlib` | `OP_BATCHER_COMPRESSION_ALGO` |
| `--compressor` | The type of compressor. Valid options: none, ratio, shadow | `"shadow"` | `OP_BATCHER_COMPRESSOR` |
| `--data-availability-type` | The data availability type to use for submitting batches to the L1. Valid options: calldata, blobs, auto | `calldata` | `OP_BATCHER_DATA_AVAILABILITY_TYPE` |
| `--fee-limit-multiplier` | The multiplier applied to fee suggestions to put a hard limit on fee increases | `5` | `OP_BATCHER_TXMGR_FEE_LIMIT_MULTIPLIER` |
| `--hd-path` | The HD path used to derive the sequencer wallet from the mnemonic. The mnemonic flag must also be set. | — | `OP_BATCHER_HD_PATH` |
| `--log.color` | Color the log output if in terminal mode | `false` | `OP_BATCHER_LOG_COLOR` |
| `--log.format` | Format the log output. Supported formats: text, terminal, logfmt, logfmtms, json, jsonms | `text` | `OP_BATCHER_LOG_FORMAT` |
| `--log.level` | The lowest log level that will be output | `INFO` | `OP_BATCHER_LOG_LEVEL` |
| `--log.pid` | Show pid in the log | `false` | `OP_BATCHER_LOG_PID` |
| `--max-blocks-per-span-batch` | Maximum number of blocks to add to a span batch. Default is 0 - no maximum. | `0` | `OP_BATCHER_MAX_BLOCKS_PER_SPAN_BATCH` |
| `--max-channel-duration` | The maximum duration of L1-blocks to keep a channel open. 0 to disable. | `0` | `OP_BATCHER_MAX_CHANNEL_DURATION` |
| `--max-l1-tx-size-bytes` | The maximum size of a batch tx submitted to L1. Ignored for blobs, where max blob size will be used. | `120000` | `OP_BATCHER_MAX_L1_TX_SIZE_BYTES` |
| `--max-pending-tx` | The maximum number of pending transactions. 0 for no limit. | `1` | `OP_BATCHER_MAX_PENDING_TX` |
| `--metrics.addr` | Metrics listening address | `"0.0.0.0"` | `OP_BATCHER_METRICS_ADDR` |
| `--metrics.enabled` | Enable the metrics server | `false` | `OP_BATCHER_METRICS_ENABLED` |
| `--metrics.port` | Metrics listening port | `7300` | `OP_BATCHER_METRICS_PORT` |
| `--mnemonic` | The mnemonic used to derive the wallets for either the service | — | `OP_BATCHER_MNEMONIC` |
| `--network-timeout` | Timeout for all network operations | `10s` | `OP_BATCHER_NETWORK_TIMEOUT` |
| `--num-confirmations` | Number of confirmations which we will wait after sending a transaction | `10` | `OP_BATCHER_NUM_CONFIRMATIONS` |
| `--poll-interval` | How frequently to poll L2 for new blocks | `6s` | `OP_BATCHER_POLL_INTERVAL` |
| `--pprof.addr` | pprof listening address | `"0.0.0.0"` | `OP_BATCHER_PPROF_ADDR` |
| `--pprof.enabled` | Enable the pprof server | `false` | `OP_BATCHER_PPROF_ENABLED` |
| `--pprof.path` | pprof file path. If it is a directory, the path is \{dir}/\{profileType}.prof | — | `OP_BATCHER_PPROF_PATH` |
| `--pprof.port` | pprof listening port | `6060` | `OP_BATCHER_PPROF_PORT` |
| `--pprof.type` | pprof profile type. One of cpu, heap, goroutine, threadcreate, block, mutex, allocs | — | `OP_BATCHER_PPROF_TYPE` |
| `--private-key` | The private key to use with the service. Must not be used with mnemonic. | — | `OP_BATCHER_PRIVATE_KEY` |
| `--resubmission-timeout` | Duration we will wait before resubmitting a transaction to L1 | `48s` | `OP_BATCHER_RESUBMISSION_TIMEOUT` |
| `--rpc.addr` | rpc listening address | `"0.0.0.0"` | `OP_BATCHER_RPC_ADDR` |
| `--rpc.enable-admin` | Enable the admin API | `false` | `OP_BATCHER_RPC_ENABLE_ADMIN` |
| `--rpc.port` | rpc listening port | `8545` | `OP_BATCHER_RPC_PORT` |
| `--safe-abort-nonce-too-low-count` | Number of ErrNonceTooLow observations required to give up on a tx at a particular nonce without receiving confirmation | `3` | `OP_BATCHER_SAFE_ABORT_NONCE_TOO_LOW_COUNT` |
| `--sequencer-hd-path` | DEPRECATED: The HD path used to derive the sequencer wallet from the mnemonic. The mnemonic flag must also be set. | — | `OP_BATCHER_SEQUENCER_HD_PATH` |
| `--signer.address` | Address the signer is signing requests for | — | `OP_BATCHER_SIGNER_ADDRESS` |
| `--signer.endpoint` | Signer endpoint the client will connect to | — | `OP_BATCHER_SIGNER_ENDPOINT` |
| `--signer.header` | Headers to pass to the remote signer. Format `key=value`. Value can contain any character allowed in a HTTP header. When using env vars, split with commas. When using flags one key value pair per flag. | — | `OP_BATCHER_SIGNER_HEADER` |
| `--signer.tls.ca` | tls ca cert path | `"tls/ca.crt"` | `OP_BATCHER_SIGNER_TLS_CA` |
| `--signer.tls.cert` | tls cert path | `"tls/tls.crt"` | `OP_BATCHER_SIGNER_TLS_CERT` |
| `--signer.tls.enabled` | Enable or disable TLS client authentication for the signer | `true` | `OP_BATCHER_SIGNER_TLS_ENABLED` |
| `--signer.tls.key` | tls key | `"tls/tls.key"` | `OP_BATCHER_SIGNER_TLS_KEY` |
| `--stopped` | Initialize the batcher in a stopped state. The batcher can be started using the admin\_startBatcher RPC | `false` | `OP_BATCHER_STOPPED` |
| `--sub-safety-margin` | The batcher tx submission safety margin (in #L1-blocks) to subtract from a channel's timeout and sequencing window, to guarantee safe inclusion of a channel on L1. | `10` | `OP_BATCHER_SUB_SAFETY_MARGIN` |
| `--target-num-frames` | The target number of frames to create per channel. Controls number of blobs per blob tx, if using Blob DA. | `1` | `OP_BATCHER_TARGET_NUM_FRAMES` |
| `--throttle.additional-endpoints` | Comma-separated list of endpoints to distribute throttling configuration to (in addition to the L2 endpoints specified with --l2-eth-rpc). | — | `OP_BATCHER_THROTTLE_ADDITIONAL_ENDPOINTS` |
| `--throttle.block-size-lower-limit` | The limit on the DA size of blocks when we are at maximum throttle intensity (linear and quadratic controllers only). 0 means no limits will ever be applied, so consider 1 the smallest effective limit. | `2000` | `OP_BATCHER_THROTTLE_BLOCK_SIZE_LOWER_LIMIT` |
| `--throttle.block-size-upper-limit` | The limit on the DA size of blocks when we are at 0 throttle intensity (applied when throttling is inactive) | `130000` | `OP_BATCHER_THROTTLE_BLOCK_SIZE_UPPER_LIMIT` |
| `--throttle.controller-type` | Type of throttle controller to use: 'step', 'linear', 'quadratic' (default) or 'pid' (EXPERIMENTAL - use with caution) | `"quadratic"` | `OP_BATCHER_THROTTLE_CONTROLLER_TYPE` |
| `--throttle.pid-integral-max` | EXPERIMENTAL: PID controller maximum integral windup. Only relevant if --throttle-controller-type is set to 'pid' | `1000` | `OP_BATCHER_THROTTLE_PID_INTEGRAL_MAX` |
| `--throttle.pid-kd` | EXPERIMENTAL: PID controller derivative gain. Only relevant if --throttle-controller-type is set to 'pid' | `0.05` | `OP_BATCHER_THROTTLE_PID_KD` |
| `--throttle.pid-ki` | EXPERIMENTAL: PID controller integral gain. Only relevant if --throttle-controller-type is set to 'pid' | `0.01` | `OP_BATCHER_THROTTLE_PID_KI` |
| `--throttle.pid-kp` | EXPERIMENTAL: PID controller proportional gain. Only relevant if --throttle-controller-type is set 프로젝트로 돌아가기