[pbs-devel] [PATCH proxmox-backup v3 0/5] add 'sync-level' to datatore tuning options
Dominik Csapak
d.csapak at proxmox.com
Thu Oct 20 09:40:53 CEST 2022
adds a sync-level option to the datastore tuning option, so that
the user can decide which level of file consitency is wanted, and
afterwards set the default to 'filesystem'
changes from v2:
* rebase on master
* fix typos in documentation
changes from v1:
* rebase on master
* reword documentation to be slightly less opinionated about which
option is better
changes from RFC:
* seperate introducing of the option and changing the default
* renaming to DatastoreFSyncLevel
* adding more and better comments + docs
* saving the whole level and not only a bool in the datastore/chunk_store
* adding a fsync on the dir handle for the 'file' case in insert_chunk
* split the change to 'replace_file' into seperate patch
the first patch is mostly unrelated, but it introduces a place where
we can document the option, and could be applied independent from
the remaining patches of this series.
the second patch only changes the use of replace_file in insert_chunk,
so that could also be applied independently.
Dominik Csapak (5):
docs: add information about chunk order option for datastores
pbs-datastore: chunk_store: use replace_file in insert_chunk
datastore: implement sync-level tuning for datastores
docs: add documentation about the 'sync-level' tuning
datastore: make 'filesystem' the default sync-level
docs/storage.rst | 59 ++++++++++++++++++++++++++++
pbs-api-types/src/datastore.rs | 37 ++++++++++++++++++
pbs-datastore/src/chunk_store.rs | 66 +++++++++++++++++++++++---------
pbs-datastore/src/datastore.rs | 39 +++++++++++++++++--
src/api2/backup/environment.rs | 2 +
src/api2/config/datastore.rs | 9 ++++-
6 files changed, 187 insertions(+), 25 deletions(-)
--
2.30.2
More information about the pbs-devel
mailing list