diff --git a/CHANGELOG.md b/CHANGELOG.md index 894273fa..a1c86880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ This document outlines major changes between releases. - CompleteMultipartUpload handler now sends whitespace characters to keep alive client's connection (#60) - Support new system attributes (#64) - Changed values for `frostfs_s3_gw_state_health` metric (#91) +- Support multiple tree service endpoints (#74) ## [0.26.0] - 2022-12-28 diff --git a/config/config.env b/config/config.env index 23b5596c..ba690f32 100644 --- a/config/config.env +++ b/config/config.env @@ -42,8 +42,8 @@ S3_GW_CONFIG=/path/to/config/yaml # Logger S3_GW_LOGGER_LEVEL=debug -# Endpoint of the tree service. Must be provided. Can be one of the node address (from the `peers` section). -S3_GW_TREE_SERVICE=grpc://s01.frostfs.devenv:8080 +# Endpoints of the tree service. At least one endpoint must be provided. Node addresses (from the `peers` section) can be used. +S3_GW_TREE_SERVICE=grpc://s01.frostfs.devenv:8080 grpc://s02.frostfs.devenv:8080 # RPC endpoint and order of resolving of bucket names S3_GW_RPC_ENDPOINT=http://morph-chain.frostfs.devenv:30333/ diff --git a/config/config.yaml b/config/config.yaml index afd49504..a4e292ff 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -44,9 +44,11 @@ listen_domains: logger: level: debug -# Endpoint of the tree service. Must be provided. Can be one of the node address (from the `peers` section). +# Endpoints of the tree service. At least one endpoint must be provided. Node addresses (from the `peers` section) can be used. tree: - service: node1.frostfs:8080 + service: + - node1.frostfs:8080 + - node2.frostfs:8080 # RPC endpoint and order of resolving of bucket names rpc_endpoint: http://morph-chain.frostfs.devenv:30333 diff --git a/docs/configuration.md b/docs/configuration.md index 695109cd..35d18523 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -337,14 +337,23 @@ logger: ### `tree` section +```yaml +tree: + service: + - s01.frostfs.devenv:8080 + - s02.frostfs.devenv:8080 +``` + +If you use only one endpoint, it can be provided as: + ```yaml tree: service: s01.frostfs.devenv:8080 ``` -| Parameter | Type | Default value | Description | -|-----------|----------|---------------|------------------------------------------------------------------------------------------------------------| -| `service` | `string` | | Endpoint of the tree service. Must be provided. Can be one of the node address (from the `peers` section). | +| Parameter | Type | Default value | Description | +|-----------|------------|---------------|-------------------------------------------------------------------------------------------------------------------------------| +| `service` | `[]string` | | Endpoints of the tree service. At least one endpoint must be provided. Node addresses (from the `peers` section) can be used. | ### `cache` section