> For the complete documentation index, see [llms.txt](https://docs.zetrix.com/zetrix-l2-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zetrix.com/zetrix-l2-documentation/reliability-and-security/scaling-strategy.md). Agents can also search and read this documentation through its [MCP server](https://docs.zetrix.com/zetrix-l2-documentation/~gitbook/mcp).

# Scaling Strategy

## Current Deployment

See [Deployment Architecture (Current Testnet)](https://docs.zetrix.com/zetrix-l2-documentation/network-and-deployment/deployment-architecture.md#deployment-architecture-current-testnet): shared infra, 5 Besu QBFT nodes, 3 sequencers, 5 committee bundles (Z2 Node + Z2 Validator) sharing **one** Z2 Reexecutor, and 1 Main Validator (Proposer) with its own reexecutor.

## Expected Bottlenecks

| Bottleneck                      | Cause                                                                                                                                                              | Mitigation                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| RPC throughput                  | Public read/write load                                                                                                                                             | Add RPC nodes behind NLB; caching                                                  |
| Node state I/O                  | State DB growth                                                                                                                                                    | NVMe; pruning; vertical scale                                                      |
| Sequencer batching              | Single active batch poster                                                                                                                                         | Vertical scale; batch tuning                                                       |
| L1 posting cost/latency         | Assertion/batch cadence                                                                                                                                            | Batch sizing; compression                                                          |
| **Shared committee Reexecutor** | All five committee validators verify every assertion with **one** reexecutor, so it sets the soft-confirmation pace and is a single point of failure for that path | Vertical scale (CPU/NVMe); warm standby with fast failover; monitor replay latency |
| Watcher / Proposer re-execution | Each Watcher and the Main Validator replay every batch with their own reexecutor                                                                                   | Scale each reexecutor vertically; add more independent Watchers                    |
| Explorer/Monitoring             | Query/scrape volume                                                                                                                                                | Read replicas; federation                                                          |

> \[!NOTE] If the shared committee Reexecutor is slow or down, **soft confirmations** slow down or pause until it recovers. L1 final confirmation is unaffected — it still happens after the challenge window, protected by the Watchers.

## Horizontal Scaling

* Stateless RPC nodes, Watchers (each with its own Reexecutor), Explorer API/UI, Relayer workers.
* Committee members are added as whole **bundles** (Z2 Node + Z2 Validator); more members increase decentralization but also signature and coordination overhead (mitigated by aggregation).

## Vertical Scaling

* Consensus nodes, Sequencers, Proposer, and the **shared committee Reexecutor** benefit from more CPU/RAM/NVMe.

## Future Improvements

* Data-availability optimizations and compression.
* Proposer/Sequencer HA with automated failover.
* HA / automatic failover for the shared committee Reexecutor.
* Sharded indexing for Explorer.
* Incentivized external Watcher network.

```mermaid
flowchart LR
    LB[NLB] --> RPC1[RPC Node] & RPC2[RPC Node] & RPCn[RPC Node ...]
    subgraph Committee[Committee verification - scale up]
        SRE[Shared Reexecutor] --- B1[Bundle 1] & B5[... Bundle 5]
    end
    subgraph Watchers[Independent verification - scale out]
        W1[Watcher + own Reexecutor] & W2[Watcher + own Reexecutor] & Wn[...]
    end
```

***

[← Monitoring](https://docs.zetrix.com/zetrix-l2-documentation/reliability-and-security/monitoring.md) · [Index](https://docs.zetrix.com/zetrix-l2-documentation/readme.md) · [API Overview →](https://docs.zetrix.com/zetrix-l2-documentation/reference/api-overview.md)
