Allow to migrate objects between storages #661

Closed
opened 2023-08-29 13:15:48 +00:00 by fyrchik · 1 comment
Owner

pkg/local_object_storage should allow to copy items from one storage to another. Usecase: reconfigure width+depth for blobovnicza.

A separate command (or a frostfs-node/frostfs-adm subcommand) can take 2 storage node configs and use the routine to reconfigure everything according to new parameters.
Another (may be easier and better) option is to accept type and parameters specifically for the blobstor substorage -- this will allow to (1) not touch everything else and (2) makes it more straightforward to copy from /path/a to /path/b. For each type1, type2 pair optimized migration could be available, for now we are only interested in width+depth for blobovniczas.

We may assume that there is enough space to have both old an new versions (makes idempotence easier), later can fix this.
Probably, creating new metabase for this shard is an option (or restarting with resync_metabase: true after the migration).

`pkg/local_object_storage` should allow to copy items from one storage to another. Usecase: reconfigure width+depth for blobovnicza. A separate command (or a `frostfs-node`/`frostfs-adm` subcommand) can take 2 storage node configs and use the routine to reconfigure everything according to new parameters. Another (may be easier and better) option is to accept type and parameters specifically for the blobstor substorage -- this will allow to (1) not touch everything else and (2) makes it more straightforward to copy from /path/a to /path/b. For each `type1, type2` pair optimized migration could be available, for now we are only interested in `width+depth` for blobovniczas. We may assume that there is enough space to have both old an new versions (makes idempotence easier), later can fix this. Probably, creating new metabase for this shard is an option (or restarting with `resync_metabase: true` after the migration).
fyrchik added this to the v0.37.0 milestone 2023-08-29 13:15:48 +00:00
fyrchik added the
frostfs-node
P0
triage
labels 2023-08-29 13:15:48 +00:00
dstepanov-yadro was assigned by fyrchik 2023-08-29 13:15:55 +00:00
Author
Owner

Decided to do this migration on startup if config parameters were changed.
In the initial implementation only blobovnicza configuration changes are supported.

Decided to do this migration on startup if config parameters were changed. In the initial implementation only blobovnicza configuration changes are supported.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#661
No description provided.