[#592] Change pool defaults params

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-18 16:11:25 +03:00 committed by Alex Vanin
parent 396db2c89d
commit 0ae762ef06
4 changed files with 10 additions and 10 deletions

View file

@ -18,9 +18,9 @@ import (
) )
const ( const (
defaultRebalanceInterval = 15 * time.Second defaultRebalanceInterval = 60 * time.Second
defaultHealthcheckTimeout = 15 * time.Second defaultHealthcheckTimeout = 15 * time.Second
defaultConnectTimeout = 30 * time.Second defaultConnectTimeout = 10 * time.Second
defaultShutdownTimeout = 15 * time.Second defaultShutdownTimeout = 15 * time.Second
defaultMaxClientsCount = 100 defaultMaxClientsCount = 100

View file

@ -43,11 +43,11 @@ S3_GW_METRICS=false
S3_GW_PPROF=false S3_GW_PPROF=false
# Timeout to connect to a node # Timeout to connect to a node
S3_GW_CONNECT_TIMEOUT=30s S3_GW_CONNECT_TIMEOUT=10s
# Timeout to check node health during rebalance. # Timeout to check node health during rebalance.
S3_GW_HEALTHCHECK_TIMEOUT=15s S3_GW_HEALTHCHECK_TIMEOUT=15s
# Interval to check node health # Interval to check node health
S3_GW_REBALANCE_INTERVAL=15s S3_GW_REBALANCE_INTERVAL=60s
# Limits for processing of clients' requests # Limits for processing of clients' requests
S3_GW_MAX_CLIENTS_COUNT=100 S3_GW_MAX_CLIENTS_COUNT=100

View file

@ -45,11 +45,11 @@ metrics: false
pprof: false pprof: false
# Timeout to connect to a node # Timeout to connect to a node
connect_timeout: 30s connect_timeout: 10s
# Timeout to check node health during rebalance # Timeout to check node health during rebalance
healthcheck_timeout: 15s healthcheck_timeout: 15s
# Interval to check node health # Interval to check node health
rebalance_interval: 15s rebalance_interval: 60s
# Limits for processing of clients' requests # Limits for processing of clients' requests
max_clients_count: 100 max_clients_count: 100

View file

@ -146,9 +146,9 @@ resolve_order:
metrics: false metrics: false
pprof: false pprof: false
connect_timeout: 30s connect_timeout: 10s
healthcheck_timeout: 15s healthcheck_timeout: 15s
rebalance_interval: 15s rebalance_interval: 60s
max_clients_count: 100 max_clients_count: 100
max_clients_deadline: 30s max_clients_deadline: 30s
@ -164,9 +164,9 @@ default_policy: REP 3
| `resolve_order` | `[]string` | `[dns]` | Order of bucket name resolvers to use. | | `resolve_order` | `[]string` | `[dns]` | Order of bucket name resolvers to use. |
| `metrics` | `bool` | `false` | Flag to enable and expose the prometheus metrics. | | `metrics` | `bool` | `false` | Flag to enable and expose the prometheus metrics. |
| `pprof` | `bool` | `false` | Flag to enable the profiler. | | `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. | | `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_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. | | `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. | | `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. |