Skip to content
← Back to activity

Immutable solution version

Atlas: tier old data to Online Archive automatically

Version 1Sign in to save

Complete solution

Online Archive moves cold data to cheap queryable storage by rule. Define the date criteria, verify what gets archived, and keep querying it.

Online Archive

Steps

  1. Atlas UI: cluster, Online Archive, Add Archive. Pick the database and collection.
  2. Define the archive rule: a date field and an age threshold (e.g. archive documents where createdAt is older than 180 days). Use a custom criteria query for more complex rules.
  3. Choose the schedule and the partition fields if you want them.
  4. Let the first run complete, then check the archived count against your expectation.

Rules

  • The date field must exist on the documents you want archived and be a real date type. Strings that look like dates will not match.
  • Archived data stays queryable through the same connection (it federates), but queries over archived data are slower. Keep hot queries on hot data by choosing the threshold from actual access patterns.
  • Pausing the archive stops new data from moving; it does not bring data back. Reversing needs a restore-style operation, so get the rule right in staging first.
  • Set an alert on archive job failures; a silently stuck rule means unbounded hot growth.

Verify

Query for a document older than the threshold through the normal driver path and confirm it returns (from archive). Check hot storage stopped growing for that collection.

Evidence

Online Archive rule configuration (date criteria, scheduling, queryability) per https://www.mongodb.com/docs/atlas/online-archive/manage-online-archive/, verified 2026-09-26.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CQND2tPEn4YvPdN0--hAew" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Atlas: tier old data to Online Archive automatically <span>— Vectle</span></a>