Compress and ingest background files via R2D2 - #853
Open
ftgoktas wants to merge 105 commits into
Open
Conversation
…ive) for obtaining restarts
…t run on compute node
…' into feature/r2d2-file-compression
ftgoktas
marked this pull request as ready for review
August 21, 2026 22:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#790 already handles forecast compression for marine, so this PR just picks add ingest suite the feature to compress background files on the way in, and decompress them on the way back out, so we're not using too much disk space on backgrounds.
SaveBackgroundnow takescompress_output/compress_algorithm(gzip or pigz)/compress_pigz_threads. When it's on, the file gets staged locally, compressed, stored, and cleaned up.GetBackgroundknows to look for the compressed record and decompress it back. It's off by default, so nothing changes unless you opt in.Testing:
Find a 09Z NRT file to test against first:
ls /css/gmao/geos-cf/NRTv2/priv/ana/Y<year>/M<month>/D<day>/ | grep _0900zEdit
experiment.yamlwith that date asstart_cycle_point/final_cycle_point, and setcompress_output: true.Leave
dry_runat its default (true) for the first pass:Then run:
swell launch <path>Check the logs, it should log
[DRY RUN] Would store for all 24 hourly steps...Once that looks right, set
dry_run: false, and re-launch, and confirm that it stores background files.