Skip to content

Add pruning by TTL#3

Open
hashbrowncipher wants to merge 2 commits intoformat_shift_2from
pruning
Open

Add pruning by TTL#3
hashbrowncipher wants to merge 2 commits intoformat_shift_2from
pruning

Conversation

@hashbrowncipher
Copy link
Owner

This entails pretty involved changes to the restoration code paths.

The gist is that the backup module keeps track of which labels it has created, and the pruning module gets rid of any labels which are older than config['ttl'] hours. It then treats the remaining labels as roots of a DAG, and walks the DAG finding all objects which it should preserve. Then it deletes in objects in S3 which are not in the DAG.

I found the concurrency issues between backup and pruning hard to reason about, so I decided to enforce mutual exclusion between the two processes.

This entails pretty involved changes to the restoration code paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant