apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.55k stars 1.32k forks source link

Storing arbitrary metadata in a backup for use in other tooling #1793

Open brownleej opened 5 years ago

brownleej commented 5 years ago

There are some operations on backups that require a connection to the cluster the backup is for. One example of this is expiring data by timestamp. If someone is building tooling that is going to operate on lots of backups for lots of different clusters, they need a way to determine which cluster is using which backup. Right now the only metadata we have to make this kind of determination is the backup name. This may not be enough information for someone whose system has a multi-level hierarchy that they use to manage clusters. As an alternative, could we provide a mechanism to provide arbitrary metadata when starting a backup and surfacing that metadata through the backup describe command?

satherton commented 5 years ago

One possible form this could take: