ExamplesLocal
Simple Max Mode Example
Run a three-node local path with a Max-mode ingress node and a controller-defined long flow.
This example sets up a three-node dataplane on one host. In examples/simple-max/controller-config.toml, node 1 is configured with operating_mode = "max", the route is pinned to [1, 2, 3], and a 1 GB flow is defined from node 1 to node 3.
From the repository root:
cd examples/simple-max
docker compose build
docker compose upConfirm the topology is up:
docker compose ps
docker exec postgres psql -U pgusr -d nextmini -c "SELECT COUNT(*) AS nodes_connected FROM nodes;"The expected node count is 3.
Verify the path can carry traffic end to end:
docker exec node1 ping -c 3 10.0.0.3If you want to confirm the active Max-mode setting directly from the example config:
rg -n "operating_mode|route =|flow_len" controller-config.tomlStop containers when finished:
docker compose down