When does cloud reclamation/garbage collection run on the AltaVault
Applies to
At what intervals cloud reclamation/garbage collection run on the AltaVault
Answer
- In AltaVault, cloud reclamation runs when the candidate slab set size reaches five percent of total slabs in the system, or the number of files deleted reaches five percent of total number of files on the AltaVault:
- When a user deletes a file, the
gc.removed_oids
counter will increment. This counter divided by the total number of files stored on the AltaVault is displayed asgc.current_removed_oids_pct,
and GC will run if it reaches five percent (0.05). - When a user deletes a file, the slabs referenced by it are added to the
candidate_slabs
list. This counter divided by the total number of slabs on the local cache is displayed asgc.current_candidate_slabs_pct,
and GC will run if it reaches five percent (0.05). - These thresholds and counters are recorded in
stats_megastore
andcollect_stats/rfsctl-a.log
.
- When a user deletes a file, the
gc.current_candidate_slabs_pct: 1.40311
gc.current_removed_oids_pct: 2.0117647
- If you require additional Cloud reclamation checks then you can run the follwoing commands:
enable
Configure terminal
rfsctl exec "-c gc.complete_check"
- You can also schedule a daily GC for example at 10:00 by following:
enable
Configure terminal
job 1 command 1 "rfsctl exec '-c complete_check'"
job 1 date-time 10:00:00
job 1 recurring 86400
job 1 enable
Additional Information
N/A