From 0ae762ef06eebdc5e64938fdef72f5a91ef5dc1f Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 18 Jul 2022 16:11:25 +0300 Subject: [PATCH] [#592] Change pool defaults params Signed-off-by: Denis Kirillov --- cmd/s3-gw/app_settings.go | 4 ++-- config/config.env | 4 ++-- config/config.yaml | 4 ++-- docs/configuration.md | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/s3-gw/app_settings.go b/cmd/s3-gw/app_settings.go index 49763f5b..7357f110 100644 --- a/cmd/s3-gw/app_settings.go +++ b/cmd/s3-gw/app_settings.go @@ -18,9 +18,9 @@ import ( ) const ( - defaultRebalanceInterval = 15 * time.Second + defaultRebalanceInterval = 60 * time.Second defaultHealthcheckTimeout = 15 * time.Second - defaultConnectTimeout = 30 * time.Second + defaultConnectTimeout = 10 * time.Second defaultShutdownTimeout = 15 * time.Second defaultMaxClientsCount = 100 diff --git a/config/config.env b/config/config.env index 87f04b49..38ce6579 100644 --- a/config/config.env +++ b/config/config.env @@ -43,11 +43,11 @@ S3_GW_METRICS=false S3_GW_PPROF=false # Timeout to connect to a node -S3_GW_CONNECT_TIMEOUT=30s +S3_GW_CONNECT_TIMEOUT=10s # Timeout to check node health during rebalance. S3_GW_HEALTHCHECK_TIMEOUT=15s # Interval to check node health -S3_GW_REBALANCE_INTERVAL=15s +S3_GW_REBALANCE_INTERVAL=60s # Limits for processing of clients' requests S3_GW_MAX_CLIENTS_COUNT=100 diff --git a/config/config.yaml b/config/config.yaml index 1a6f0555..04d7e42d 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -45,11 +45,11 @@ metrics: false pprof: false # Timeout to connect to a node -connect_timeout: 30s +connect_timeout: 10s # Timeout to check node health during rebalance healthcheck_timeout: 15s # Interval to check node health -rebalance_interval: 15s +rebalance_interval: 60s # Limits for processing of clients' requests max_clients_count: 100 diff --git a/docs/configuration.md b/docs/configuration.md index 938671a3..f0219ba7 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -146,9 +146,9 @@ resolve_order: metrics: false pprof: false -connect_timeout: 30s +connect_timeout: 10s healthcheck_timeout: 15s -rebalance_interval: 15s +rebalance_interval: 60s max_clients_count: 100 max_clients_deadline: 30s @@ -164,9 +164,9 @@ default_policy: REP 3 | `resolve_order` | `[]string` | `[dns]` | Order of bucket name resolvers to use. | | `metrics` | `bool` | `false` | Flag to enable and expose the prometheus metrics. | | `pprof` | `bool` | `false` | Flag to enable the profiler. | -| `connect_timeout` | `duration` | `30s` | Timeout to connect to a node. | +| `connect_timeout` | `duration` | `10s` | Timeout to connect to a node. | | `healthcheck_timeout` | `duration` | `15s` | Timeout to check node health during rebalance. | -| `rebalance_interval` | `duration` | `15s` | Interval to check node health. | +| `rebalance_interval` | `duration` | `60s` | Interval to check node health. | | `max_clients_count` | `int` | `100` | Limits for processing of clients' requests. | | `max_clients_deadline` | `duration` | `30s` | Deadline after which the gate sends error `RequestTimeout` to a client. | | `default_policy` | `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. |