Move shard to read-only if there were problems with blobstor #446

Closed
opened 2023-06-14 14:52:04 +00:00 by fyrchik · 0 comments

Currently we move to a DEGRADED-READ-ONLY if error counter exceeds the threshold fb8fee0c8e/pkg/local_object_storage/engine/engine.go (L90)

If there we problems with the blobstor, degraded mode is an overkill, we should just move to read-only.

Possible approach:

  1. Make metaerr wrapper similar to how we handle logical errors.
  2. Use it in metabase, pilorama and writecache packages.

This way we should make less errors in error handling.

Consider having 2 errors counters with the same threshold (we can report cumulative counter in control service for now).

Currently we move to a DEGRADED-READ-ONLY if error counter exceeds the threshold https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/fb8fee0c8edd3cca1d9aaa40bf7334df46400964/pkg/local_object_storage/engine/engine.go#L90 If there we problems with the blobstor, degraded mode is an overkill, we should just move to read-only. Possible approach: 1. Make `metaerr` wrapper similar to how we handle logical errors. 2. Use it in `metabase`, `pilorama` and `writecache` packages. This way we should make less errors in error handling. Consider having 2 errors counters with the same threshold (we can report cumulative counter in control service for now).
fyrchik added the
bug
frostfs-node
triage
labels 2023-06-14 14:52:04 +00:00
fyrchik added this to the v0.37.0 milestone 2023-06-14 14:52:27 +00:00
fyrchik self-assigned this 2023-06-15 07:43:15 +00:00
fyrchik removed the
triage
label 2024-04-01 09:52:28 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 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#446
There is no content yet.