From 556374e3b0f0c078d3673b97cf7774f0e21e1ca0 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 14 Nov 2022 13:01:12 +0300 Subject: [PATCH] [#747] Update docs Signed-off-by: Denis Kirillov --- CHANGELOG.md | 1 + docs/configuration.md | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c8ca88..e401f97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This document outlines major changes between releases. ### Added - Use client time as `now` in some requests (#726) - Timeout for individual operations in streaming RPC (#740) +- Reload policies on SIGHUP (#747) ### Changed - Placement policy configuration (#568) diff --git a/docs/configuration.md b/docs/configuration.md index e28a1bc..65ab643 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -263,10 +263,10 @@ placement_policy: region_mapping: /path/to/mapping/rules.json ``` -| Parameter | Type | Default value | Description | -|------------------|----------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `default` | `string` | `REP 3` | Default policy of placing containers in NeoFS. If a user sends a request `CreateBucket` and doesn't define policy for placing of a container in NeoFS, the S3 Gateway will put the container with default policy. | -| `region_mapping` | `string` | | Path to file that maps aws `LocationContraint` values to NeoFS placement policy. The similar to `--container-policy` flag in `neofs-s3-authmate` util. | +| Parameter | Type | SIGHUP reload | Default value | Description | +|------------------|----------|---------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `default` | `string` | yes | `REP 3` | Default policy of placing containers in NeoFS. If a user sends a request `CreateBucket` and doesn't define policy for placing of a container in NeoFS, the S3 Gateway will put the container with default policy. | +| `region_mapping` | `string` | yes | | Path to file that maps aws `LocationContraint` values to NeoFS placement policy. The similar to `--container-policy` flag in `neofs-s3-authmate` util. | File for `region_mapping` must contain something like this: @@ -278,6 +278,9 @@ File for `region_mapping` must contain something like this: } ``` +**Note:** on SIGHUP reload policies will be updated only if both parameters are valid. +So if you change `default` to some valid value and set invalid path in `region_mapping` the `default` value won't be changed. + ### `tls` section ```yaml