[#1883] config/example: Actualize desc of shard modes

Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
Leonard Lyubich 2022-10-14 14:08:50 +04:00 committed by fyrchik
parent c4a2a283ae
commit eb206d6e59
2 changed files with 14 additions and 8 deletions

View file

@ -147,7 +147,12 @@ storage:
remover_sleep_interval: 5m # frequency of the garbage collector invocation remover_sleep_interval: 5m # frequency of the garbage collector invocation
0: 0:
mode: "read-only" # mode of the shard, must be one of the: "read-write" (default), "read-only" mode: read-only # mode of the shard, must be one of the:
# read-write (default)
# read-only
# degraded
# degraded-read-only
# disabled (do not work with the shard, allows to not remove it from the config)
resync_metabase: false # sync metabase with blobstor on start, expensive, leave false until complete understanding resync_metabase: false # sync metabase with blobstor on start, expensive, leave false until complete understanding
writecache: writecache:

View file

@ -169,13 +169,14 @@ Contains configuration for each shard. Keys must be consecutive numbers starting
`default` subsection has the same format and specifies defaults for missing values. `default` subsection has the same format and specifies defaults for missing values.
The following table describes configuration for each shard. The following table describes configuration for each shard.
| Parameter | Type | Default value | Description | | Parameter | Type | Default value | Description |
|-------------------|---------------------------------------------|---------------|------------------------------------------| |-------------------|---------------------------------------------|---------------|-----------------------------------------------------------------------------------------------------------|
| `resync_metabase` | `bool` | `false` | Flag to enable metabase resync on start. | | `mode` | `string` | `read-write` | Shard Mode.<br/>Possible values: `read-write`, `read-only`, `degraded`, `degraded-read-only`, `disabled` |
| `writecache` | [Writecache config](#writecache-subsection) | | Write-cache configuration. | | `resync_metabase` | `bool` | `false` | Flag to enable metabase resync on start. |
| `metabase` | [Metabase config](#metabase-subsection) | | Metabase configuration. | | `writecache` | [Writecache config](#writecache-subsection) | | Write-cache configuration. |
| `blobstor` | [Blobstor config](#blobstor-subsection) | | Blobstor configuration. | | `metabase` | [Metabase config](#metabase-subsection) | | Metabase configuration. |
| `gc` | [GC config](#gc-subsection) | | GC configuration. | | `blobstor` | [Blobstor config](#blobstor-subsection) | | Blobstor configuration. |
| `gc` | [GC config](#gc-subsection) | | GC configuration. |
### `blobstor` subsection ### `blobstor` subsection