Repository navigation
Todo
Milestone
Description
On a machine with no existing cluster, ax local start takes 3–5 minutes before the first task can run. A second run against the same cluster is fast because substrate.Bootstrap takes its alreadyHealthy fast path, so the cost is all in first-time setup. That is a lot of waiting for a first impression, and for make test-local-install in CI.
What a fresh start does
These steps run one after another, and most of them block on a readiness wait:
- Create the Kind cluster and wait for nodes to be Ready (
internal/install/cluster/kind.go,--timeout=120s). - Download kubectl if needed (
executil.EnsureKubectl). - Bootstrap Agent Substrate (
internal/install/substrate/bootstrap.go):- Create namespaces, apply the CRDs, and wait for them to be Established.
- Create the CA pools, apply podcertificate-controller, and wait for its rollout.
- Apply the gVisor SandboxConfig.
- Deploy the bundled PostgreSQL and wait for
postgres-0to be Ready, then initialize the schema and roles. - Create the ate-system PKI pools, ConfigMaps and Secrets.
- Apply the control-plane bundle and wait for each component's pods to be Ready.
- Create the default gVisor WorkerPool and wait for it.
- Deploy AX (
internal/install/axdeploy): Postgres and ax-server, waiting for their rollouts (3 minute timeout each).
Each pod in steps 3 and 4 also has to pull its image into the Kind node on first use, unless the image is preloaded.
What we don't know yet
We have no per-step timing, so we don't know whether the time goes to image pulls, to readiness waits that could overlap, to the WorkerPool coming up, or to the polling intervals of the waits themselves.
Proposed next steps
- Print or trace how long each step takes during
ax local start(the CLI already hasax --trace), and record a breakdown on a fresh macOS and Linux machine and in thelocal-installCI job. - Depending on what that shows:
- Preload or pull images in parallel up front (
kind loador a pull-ahead DaemonSet) instead of letting each rollout pull its own. - Apply the independent manifests together and wait for them at the end, instead of applying and waiting one step at a time. For example, PostgreSQL, the podcertificate-controller, and AX's own Postgres don't depend on each other.
- Shorten the polling intervals of the readiness waits.
- Preload or pull images in parallel up front (
- Show progress during long waits so the command doesn't look hung (see ax local start hangs #648).
Metadata
Metadata
Labels
No labels
Activity
docs(ate-local): time Kind ax local vs ate-local and propose local.Ba…
Jefftree commentedon Nov 25, 2026
Timed a fresh
ax local startat651fd23(Linux,v0.4.0-rc.2server image, Kind node image already cached) and checked the last 5mainLocal install CI runs (e.g. job 139475931659). Cold start took 109.8s locally (4.9s warm) and 102.4 - 142.1s in CI.Answering the four unknowns from the logs and kubelet events:
Timestamped ax local start output (109.83s)
Kubelet Pulled, NodeReady, PVC, and FailedMount events