> 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).

# Scaling Strategy

## Current Deployment

See [Deployment Architecture (Current Testnet)](/zetrix-l2-documentation/network-and-deployment/deployment-architecture.md#deployment-architecture-current-testnet): shared infra, 5 nodes, 3 sequencers, 5 validators, 1 proposer.

## 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 ordering      | Single active ordering  | Vertical scale; batch tuning      |
| L1 posting cost/latency | Assertion/batch cadence | Batch sizing; compression         |
| Reexecution CPU         | Verification load       | Horizontal Reexecutors            |
| Explorer/Monitoring     | Query/scrape volume     | Read replicas; federation         |

## Horizontal Scaling

* Stateless RPC nodes, Reexecutors, Watchers, Explorer API/UI, Relayer workers.

## Vertical Scaling

* Consensus nodes, Sequencer, Proposer benefit from more CPU/RAM/NVMe.

## Future Improvements

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

```mermaid
flowchart LR
    LB[NLB] --> RPC1[RPC Node] & RPC2[RPC Node] & RPCn[RPC Node ...]
    subgraph Verify[Horizontal verification]
        RE1[Reexecutor] & RE2[Reexecutor] & REn[...]
        W1[Watcher] & W2[Watcher]
    end
```

***

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