Z
Zirnay Documentation v2.4.1
System One Intelligence • AI Infrastructure for Decisions
Launch Playground ↗ Interactive API Explorer Strands Decider ↗
DOCS / MODEL LIFECYCLE / Dual-Cloud Checkpointing & Hot-Swap

Dual-Cloud Checkpointing & Hot-Swap

S3 & GCS object persistence, cryptographic SHA-256 integrity, zero-downtime POSIX mmap hot-swaps, and instant rollbacks.

⏱ 5 min read • Zirnay v2.4.1 • Updated October 2026

Dual-Cloud Object Persistence & Zero-Downtime Hot Swaps

Model checkpoints in Zirnay are immutable binary artifacts stored across Amazon S3 and Google Cloud Storage, indexed in PostgreSQL, and verified by SHA-256 cryptographic hashes.

POSIX Memory-Mapping Architecture (mmap)

Traditional model deployment requires seconds of cold-start delay to allocate heap memory and load tensors. Zirnay worker daemons utilize POSIX mmap to map model weights directly from the Linux OS page cache:

[Cloud S3 / GCS Object] ──(Stream & Verify SHA256)──► [Local NVMe Disk]
                                                                │
                                                                ▼ (mmap POSIX)
                                               [Linux Page Cache RAM (Warm)]
                                                                │
[Incoming Decision Request] ───────────────────────────► [Zero-Copy Inference (<1.8ms)]

Dedicated Organization Storage Buckets & Strict Access Policy

To guarantee complete multi-tenant physical, cryptographic, and IAM isolation with zero cross-tenant intermingling, every organization is provisioned with a dedicated cloud storage bucket:

  • Google Cloud Storage (GCS): gs://zirnay-checkpoints-{orgid}-acme-financial/{teamSlug}/{model_slug}/chk_{id}.bin
  • AWS S3: s3://zirnay-checkpoints-{orgid}-acme-financial/{teamSlug}/{model_slug}/chk_{id}.bin
Isolation Dimension Shared Bucket Anti-Pattern (Prefix Only) Zirnay Dedicated Bucket Pattern (Enforced)
IAM Blast Radius High. Single bucket IAM grant exposes all tenants' weights. Zero. IAM bindings scoped exclusively to that organization's bucket.
Encryption (CMEK) Shared Google/AWS managed key across all corporate tenants. Dedicated Cloud KMS key per org. Org-1 cannot decrypt Org-2 data.
Compliance Boundary Fails SOC 2 Type II, HIPAA BAA, FedRAMP, and PCI-DSS data segregation. Satisfies strict physical & logical multi-tenant audit standards.
Audit Logging Cross-tenant metadata, request rates, and model sizes co-mingled. Dedicated Data Access audit trails piped directly to tenant SIEM.
Quota & Rate Limits Noisy neighbor batch training can throttle peer organizations. Independent bucket QPS and bandwidth limits per organization.

🛡️ Multi-Tenant Storage Isolation Guarantees

  • Bucket-Level IAM Boundary: Org-1's Service Accounts and Workload Identity tokens are granted read/write permissions exclusively to zirnay-checkpoints-{org1_id}-{org1_name}. Any request to Org-2's bucket is denied by Cloud IAM at the cloud perimeter.
  • Customer-Managed Encryption Keys (CMEK): Each organization's bucket is encrypted with a dedicated Cloud KMS key ring. Org-1's cryptographic key cannot decrypt Org-2's weights.
  • Uniform Bucket-Level Access (UBLA): Object ACL inheritance is locked down; all access is mediated strictly via verified tenant IAM roles.
  • VPC Service Controls: GCS bucket perimeters prevent exfiltration outside the tenant's VPC network.
  • Application Runtime Enforcement: The Decision Runtime explicitly checks tenant ID against bucket name, preventing cross-tenant hydration even in the event of an upstream configuration error.
GCP IAM Policy Binding • Per-Tenant Bucket Perimeter
{
  "bindings": [
    {
      "role": "roles/storage.objectAdmin",
      "members": [
        "serviceAccount:zirnay-worker-acme@zirnay-prod.iam.gserviceaccount.com"
      ],
      "condition": {
        "title": "Strict Tenant Bucket Isolation",
        "description": "Restricts worker access strictly to Acme Financial Services dedicated bucket",
        "expression": "resource.name.startsWith('projects/_/buckets/zirnay-checkpoints-11111111-acme-financial')"
      }
    }
  ]
}

Instant Rollback API

Activate or rollback any previously trained checkpoint in zero downtime:

cURL • Activate Checkpoint
curl -X POST http://localhost:8000/v1/teams/fraud-ops/models/laya-card-auth/checkpoints/chk_89f02c77/activate \
  -H "Authorization: Bearer $ZIRNAY_JWT_TOKEN"