Skip to content

feat: archive Harbor checkpoint images on JuiceFS - #190

Draft
rcyw wants to merge 1 commit into
inclusionAI:developfrom
rcyw:dev/harbor-checkpoint-archive-20261126
Draft

rcyw wants to merge 1 commit into
inclusionAI:developfrom
rcyw:dev/harbor-checkpoint-archive-20261126

Conversation

@rcyw

@rcyw rcyw commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keep the existing Harbor managed_runtime_profile: harbor-v1 job configuration. The opt-in runner flag routes single-Dockerfile builds to the existing A/B TTL and LRU policy. The default TTL remains 24 hours and is configurable.
  • Verify the OCI image graph and Nydus bootstrap blob table before writing the checkpoint receipt on JuiceFS. The archive deduplicates by digest and retains objects while checkpoints or runtime leases reference them.
  • Keep Compose on its configured durable route. Enable the archive in Helm only when distributed filesystem checkpoint storage is configured. The worker init container verifies archive support in the actual sandboxd binary.

Dependency and sandboxd pin

Merge the sandboxd PR first. This companion stays in draft with its existing gitlink until the exact upstream merge commit is available. sandboxd #129

From an isolated checkout of this PR branch, resolve the merged commit and verify that the canonical submodule repository advertises it through main.

set -eu
test "$(gh pr view 129 --repo inclusionAI/sandboxd --json state --jq .state)" = MERGED
sandboxd_sha="$(gh pr view 129 --repo inclusionAI/sandboxd --json mergeCommit --jq .mergeCommit.oid)"
test -n "$sandboxd_sha"
git submodule update --init -- src/sandboxd
git -C src/sandboxd fetch --no-tags --no-recurse-submodules https://github.com/inclusionAI/sandboxd.git refs/heads/main
git -C src/sandboxd merge-base --is-ancestor "$sandboxd_sha" FETCH_HEAD
git -C src/sandboxd checkout --detach "$sandboxd_sha"
git add -- src/sandboxd
git diff --cached --submodule=short -- src/sandboxd

Commit the gitlink update on this PR branch. Rebuild the all-in-one image from that exact pin and rerun the isolated Harbor qualification before marking the AKernel PR ready.

Isolated qualification

  • Passed make sdk-check with the project's ADX SDK pin, 46 retention tests, make deploy-script-check, and Helm rendering with the archive disabled and enabled. The capability check accepts the new binary and rejects the previous binary.
  • Ran the paired candidates using Harbor commit 0b155897 and its locked dependencies, the AKernel source SDK at f1ef6e09, and a sandboxd binary built from c71e98de. The lab used two independent runsc workers, two Distribution Registries, a shared Nydus BuildKit, and a JuiceFS volume.
  • A real Dockerfile task with TTL 25 seconds could still read after expiry. Source Registry GC removed 5 large blobs, returned HTTP 404 for the original manifest, and freed 98,480,128 bytes of used disk space.
  • The worker started after source GC issued 17 HTTP 206 Nydus reads over authenticated HTTPS. The image file digest, writable-layer file, and live process state matched. Non-worker Registry credentials received HTTP 401.
  • Two captures reused the same verified objects. Capturing again from the cold restore succeeded with runner routing disabled, and releasing the final checkpoint and runtime removed the archive objects. The isolated resources were released.

The qualification overlays the candidate SDK source and sandboxd binary on the isolated lab image. The final consumer image build remains tied to the merged sandboxd pin.

Rollout and rollback

Deploy the private archive service and update the eligible workers before enabling AKERNEL_HARBOR_V1_TEMPORARY_IMAGES=1 on the centrally managed runner. Keep archive deletion disabled during the canary and enable it after verifying reference cleanup. Registry retention and checkpoint archive guide

Disable AKERNEL_HARBOR_V1_TEMPORARY_IMAGES on the Harbor runner so new Dockerfile builds return to the durable harbor-v1 route. Keep the same archive origin, credentials, JuiceFS data, ledger PVC, and compatible workers available for retained checkpoints and active restores. Keep the A/B Registries available while existing temporary image users and in-flight publications drain. Remove archive configuration or roll back the worker binary only after the last archive references have been released.

Route existing harbor-v1 Dockerfile builds through A/B retention when
enabled by the runner. Verify the OCI graph and Nydus blob table before
publishing a checkpoint receipt on the shared filesystem.

Expose authenticated archive reads for sandboxd and retain deduplicated
objects while checkpoints or running instances still reference them.

Signed-off-by: wayne <rcywjo@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant