Merge lp:~stub/launchpad/feed-end-at into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 17514 |
Proposed branch: | lp:~stub/launchpad/feed-end-at |
Merge into: | lp:launchpad |
Diff against target: |
35 lines (+13/-1) 1 file modified
cronscripts/librarian-feed-swift.py (+13/-1) |
To merge this branch: | bzr merge lp:~stub/launchpad/feed-end-at |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+259378@code.launchpad.net |
Commit message
[stub, r=wgrant][noqa] Add an option to librarian-
Description of the change
Add an option to librarian-
The goal is to ensure that we have at least two copies of Librarian data in two different systems (disk & swift, or swift & offsite backup). By running two jobs in sequence, the first moving all disk files into Swift older than $cutoff, and the second copying all disk files into Swift younger than $cutoff, we create a window where data exists both on disk and in Swift. Our other systems can ensure that the data is mirrored from Swift to offsite during that window.
The alternative approach would be a single run, and providing a new option to not remove files younger than $cutoff. This would be better, but less of a quick and easy fix.