The optional jump pod runs the full OpenStudio Server image inside the cluster so
long analysis submissions (e.g. rake execute_sequential from
openstudio-bem-to-surrogate-gem) talk to http://web directly instead of over a
kubectl port-forward tunnel that can drop. It is disabled by default; no extra
resources are created unless enabled.
scripts/upgrade.sh -f openstack/values-openstack.yaml --set jump_pod.enabled=trueRelevant values (openstudio-server/values.yaml, jump_pod.*): image (must match
the web/worker image), resources, command, and colocateWithWeb. Set
colocateWithWeb: true to pin the pod to the same node as web (required pod
affinity, so the pod stays Pending until a web pod exists); use it when cross-node
pod traffic is unreliable (see port-forward-and-jump-pod-troubleshooting.md).
scripts/submit_from_jump_pod.sh /path/to/openstudio-bem-to-surrogate-gem [rake_task]The script copies a minimal project to /mnt/openstudio/bem-to-surrogate (the NFS PVC,
so the staged repo, log, PID lock and osa_submit_manifest.jsonl survive pod eviction;
override with REMOTE_ROOT), points the config at the in-cluster URL,
installs missing gems, preflights connectivity to web, and launches the rake task
detached (with a PID lock to avoid duplicate launches). It needs kubectl; on macOS
install coreutils for gtimeout (optional).
The stock image ships an empty GEM_HOME=/opt/openstudio/gems. The submit script
installs rubyzip, openstudio-analysis and openstudio-aws there; to do it by hand,
copy scripts/install_jump_pod_gems.sh into the pod and run it. Installed gems do not
survive pod recreation; use a prebuilt image to avoid reinstalling.
- State lives on the PVC, not the
/outputsemptyDir (now capped byjump_pod.outputsSizeLimit).jump_pod.resourcessetsephemeral-storagerequests/limits so the pod fails predictably instead of being the first eviction candidate. - Re-running
submit_from_jump_pod.shafter an eviction is safe: it merges the manifest andsubmitted/into<REMOTE_ROOT>.statebefore re-staging (aborting if that save fails), refuses to restage while the rake task is still running (FORCE_RESTAGE=1overrides), deletes empty stub analyses (0 data points, not running, older thanSTUB_MIN_AGEseconds, default 900, and named<project>...Batch<N>), and moves batches the server already has intooutputs/<project>/submitted/, so only missing batches are submitted. If an empty analysis is still young or running, reconcile aborts instead of deleting it; retry later. REMOTE_ROOTmust be a subdirectory ofPVC_ROOT(default/mnt/openstudio). If several jump pods are running, setJUMP_POD_RELEASE=<helm release>.CHECK_ONLY=1 scripts/submit_from_jump_pod.sh <gem> [task]is read-only (uses the already-staged project; nothing is copied or deleted). It prints expected vs created batch counts and exits non-zero withMISSING_BATCHES: ...and/orEMPTY_ANALYSES: ...if any batch is missing or has an empty analysis.- Per-batch rescue and write-before/after manifest entries belong in the gem (
create_osa.rb) and are not handled here.