Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive_tarball worker #104

Merged
merged 7 commits into from
Jun 1, 2022
Merged

archive_tarball worker #104

merged 7 commits into from
Jun 1, 2022

Conversation

douglatornell
Copy link
Member

Creates a tarball of a month's run results and
moves it to remote archival storage. Compression is not used for the tarball
because the netCDF files that compose most of it are already highly compressed.
A .index text file containing a list of the files in the tarball is also created
and moved to the remote storage.

Add config, tests, CLI, and tarball & index creation.
@douglatornell douglatornell self-assigned this May 24, 2022
@douglatornell douglatornell added enhancement New feature or request Workers labels May 24, 2022
@douglatornell douglatornell added this to the v22.1 milestone May 24, 2022
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #104 (a30f175) into main (33d11d7) will increase coverage by 0.21%.
The diff coverage is 89.42%.

@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
+ Coverage   72.99%   73.20%   +0.21%     
==========================================
  Files         122      124       +2     
  Lines       16026    16234     +208     
  Branches     1305     1319      +14     
==========================================
+ Hits        11698    11884     +186     
- Misses       4277     4299      +22     
  Partials       51       51              
Flag Coverage Δ
unittests 73.20% <89.42%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nowcast/workers/archive_tarball.py 72.15% <72.15%> (ø)
nowcast/next_workers.py 98.62% <100.00%> (+0.01%) ⬆️
tests/test_next_workers.py 99.71% <100.00%> (+<0.01%) ⬆️
tests/workers/test_archive_tarball.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33d11d7...a30f175. Read the comment docs.

@douglatornell
Copy link
Member Author

Tarball and index file creation in dcbe5c6 was successfully tested in production.

@douglatornell
Copy link
Member Author

Tarball & index creations and rsync to graham-dtn in 51f4da1 was successfully tested in production.

@douglatornell douglatornell changed the title arhcive_tarball worker archive_tarball worker May 31, 2022
@douglatornell
Copy link
Member Author

Automatic month-end launch of archive_tarball worker in 71ea18f was successfully tested in production,
though transfer rates to graham-dtn are extremely slow, so rsync is still in progress ~24 hours later 🤷‍♂️

@douglatornell douglatornell merged commit 39f4513 into main Jun 1, 2022
@douglatornell douglatornell deleted the archive-tarball branch June 1, 2022 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Workers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant