deploy(dev): serve a cellular region 100/2 for the M11.3 probe
Region 100/1 holds lineage history and cannot host the cellular profile, so dev provisions a fresh cellular-v1 genesis at region 2 and serves it with --profile cellular and its --life-route catalog. Region 1's stores are left untouched; it is no longer served. The base Deployment and provision Job take REGION_PROFILE, REGION_LIFE_ROUTES, REGION_OPENING and REGION_OPENING_ARGS. Their defaults keep stage on the lineage profile with the development opening. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,24 +59,37 @@ spec:
|
||||
# M10 QUIC dev sessions are loopback by default. Only the enabled
|
||||
# dev-session-route component (ADR-0087) may bind the pod interface.
|
||||
m10=()
|
||||
grant=()
|
||||
if [ -n "$REGION_SESSION" ]; then
|
||||
m10=(--m10-listen "$REGION_SESSION_LISTEN" --m10-cert /run/session/server.pem
|
||||
--m10-key /run/session/server.key --m10-issuer /run/session/issuer.pub
|
||||
--m10-environment "$REGION_SESSION" --session-window "$REGION_SESSION_WINDOW"
|
||||
--m10-max-grant-lifetime "$REGION_M10_MAX_GRANT_LIFETIME")
|
||||
--m10-environment "$REGION_SESSION" --session-window "$REGION_SESSION_WINDOW")
|
||||
grant=(--m10-max-grant-lifetime "$REGION_M10_MAX_GRANT_LIFETIME")
|
||||
fi
|
||||
exec /usr/local/bin/evo-server --profile lineage "${retained[@]}" "${inputs[@]}" \
|
||||
# Lineage keeps its 20 s drain and overlay grant ceiling. The cellular
|
||||
# profile (M11.3) fixes its own 10 s drain and 300 s grant ceiling and
|
||||
# needs the world's --life-route catalog, one entry per region.
|
||||
profile=(--profile lineage "${grant[@]}" --drain-ms 20000)
|
||||
if [ "$REGION_PROFILE" = cellular ]; then
|
||||
profile=(--profile cellular)
|
||||
for route in $REGION_LIFE_ROUTES; do profile+=(--life-route "$route"); done
|
||||
fi
|
||||
exec /usr/local/bin/evo-server "${profile[@]}" "${retained[@]}" "${inputs[@]}" \
|
||||
"${m10[@]}" \
|
||||
--world "$REGION_WORLD" --region "$REGION_ID" --frame "$REGION_FRAME" \
|
||||
--pg-service /run/postgres/pg_service.conf --pg-passfile /run/postgres/pgpass \
|
||||
--objects /objects --objects-reserve-mib "$REGION_RESERVE_MIB" \
|
||||
--build "$REGION_BUILD" --lease-profile default \
|
||||
--flush-ms 1000 --drain-ms 20000 --ops-listen 0.0.0.0:9100
|
||||
--flush-ms 1000 --ops-listen 0.0.0.0:9100
|
||||
env:
|
||||
- {name: REGION_WORLD, value: set-by-overlay}
|
||||
- {name: REGION_ID, value: set-by-overlay}
|
||||
- {name: REGION_FRAME, value: "9"}
|
||||
- {name: REGION_BUILD, value: set-by-overlay}
|
||||
# lineage, or cellular (M11.3, needs a cellular-v1 genesis and REGION_LIFE_ROUTES:
|
||||
# space-separated REGION=HOST:PORT=TLS_NAME, one per region including this one).
|
||||
- {name: REGION_PROFILE, value: lineage}
|
||||
- {name: REGION_LIFE_ROUTES, value: ""}
|
||||
# Earlier builds whose commits this region may still hold, space-separated.
|
||||
- {name: REGION_RETAINED, value: ""}
|
||||
# Drill-only overrides; Git keeps no synthetic load and the 1024 MiB reserve.
|
||||
|
||||
Reference in New Issue
Block a user