Support writecache migration #569

Closed
opened 2023-08-07 08:19:42 +00:00 by fyrchik · 1 comment
Owner

This is a bit simpler than blobstor migration:

  1. Add some --disable-after flag to the control shards flush-cache command. With this flag everything is flushed from the writecache and the writecache itself is moved to read-only.
  2. After this we may just start a new version of node with a new cache.

"Proper" migration is harder and probably not worth the effort.

This is a bit simpler than blobstor migration: 1. Add some `--disable-after` flag to the `control shards flush-cache` command. With this flag everything is flushed from the writecache and the writecache itself is moved to read-only. 2. After this we may just start a new version of node with a new cache. "Proper" migration is harder and probably not worth the effort.
fyrchik added the
discussion
frostfs-node
labels 2023-08-07 08:19:42 +00:00
fyrchik added this to the v0.37.0 milestone 2023-08-07 08:19:46 +00:00
fyrchik modified the milestone from v0.37.0 to v0.38.0 2023-08-21 17:59:49 +00:00
fyrchik modified the milestone from v0.38.0 to v0.37.0 2023-08-21 17:59:58 +00:00
fyrchik modified the milestone from v0.37.0 to v0.38.0 2023-08-29 09:12:30 +00:00
dstepanov-yadro self-assigned this 2023-12-21 09:40:19 +00:00
  • Added new flag seal for command frostfs-cli control shards flush-cache ... --seal that changes writecache mode to read-only after flush.
  • Fixed manual flush: objects from DB will be deleted, previously only fstree object deleted.
  • Fixed manual flush 2: manual flush doesn't conflict with background flush
  • Put and Delete methods now return error immediately, if writecache is changing mode, closing or flushing objects with manual invokation.
  • Added frostfs-cli control shards writecache seal that does almost the same as frostfs-cli control shards flush-cache --seal, but moves writecache to degraded read only mode.
  • frostfs-cli control shards flush-cache command marked as deprecated
- Added new flag seal for command frostfs-cli control shards flush-cache ... --seal that changes writecache mode to read-only after flush. - Fixed manual flush: objects from DB will be deleted, previously only fstree object deleted. - Fixed manual flush 2: manual flush doesn't conflict with background flush - Put and Delete methods now return error immediately, if writecache is changing mode, closing or flushing objects with manual invokation. - Added `frostfs-cli control shards writecache seal` that does almost the same as `frostfs-cli control shards flush-cache --seal`, but moves writecache to degraded read only mode. - `frostfs-cli control shards flush-cache` command marked as deprecated
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#569
No description provided.