forked from TrueCloudLab/frostfs-node
[#1143] shard: Introduce explicit Degraded
mode
`Degraded` mode is set automatically after error counter is over the threshold. `ReadOnly` mode can still be set by an administrator. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
9eb70c18c3
commit
6472a170eb
21 changed files with 62 additions and 24 deletions
|
@ -40,6 +40,8 @@ func (s *Server) ListShards(_ context.Context, req *control.ListShardsRequest) (
|
|||
mode = control.ShardMode_READ_WRITE
|
||||
case shard.ModeReadOnly:
|
||||
mode = control.ShardMode_READ_ONLY
|
||||
case shard.ModeDegraded:
|
||||
mode = control.ShardMode_DEGRADED
|
||||
default:
|
||||
mode = control.ShardMode_SHARD_MODE_UNDEFINED
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue