2022-04-08 09:01:57 +00:00
|
|
|
wallet:
|
|
|
|
path: /path/to/wallet.json # Path to wallet.
|
|
|
|
address: NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP # Account address. If omitted default one will be used.
|
2022-06-29 11:14:42 +00:00
|
|
|
passphrase: pwd # Passphrase to decrypt wallet. If you're using a wallet without a password, place '' here.
|
2022-04-08 09:01:57 +00:00
|
|
|
|
2022-07-27 06:52:08 +00:00
|
|
|
pprof:
|
2023-02-03 09:46:25 +00:00
|
|
|
enabled: false # Enable pprof.
|
2022-07-27 06:52:08 +00:00
|
|
|
address: localhost:8083
|
|
|
|
prometheus:
|
2023-02-03 09:46:25 +00:00
|
|
|
enabled: false # Enable metrics.
|
2022-07-27 06:52:08 +00:00
|
|
|
address: localhost:8084
|
2024-11-15 07:53:46 +00:00
|
|
|
|
2023-03-15 08:07:44 +00:00
|
|
|
tracing:
|
|
|
|
enabled: true
|
|
|
|
exporter: "otlp_grpc"
|
|
|
|
endpoint: "localhost:4317"
|
2024-09-10 07:09:51 +00:00
|
|
|
trusted_ca: ""
|
2024-11-15 07:53:46 +00:00
|
|
|
attributes:
|
|
|
|
- key: key0
|
|
|
|
value: value
|
|
|
|
- key: key1
|
|
|
|
value: value
|
2022-07-27 06:52:08 +00:00
|
|
|
|
2022-04-08 09:01:57 +00:00
|
|
|
logger:
|
|
|
|
level: debug # Log level.
|
2023-11-09 08:11:30 +00:00
|
|
|
destination: stdout
|
2024-09-26 14:48:19 +00:00
|
|
|
sampling:
|
|
|
|
enabled: false
|
|
|
|
initial: 100
|
|
|
|
thereafter: 100
|
|
|
|
interval: 1s
|
2022-04-08 09:01:57 +00:00
|
|
|
|
2022-11-24 14:49:21 +00:00
|
|
|
server:
|
|
|
|
- address: 0.0.0.0:8080
|
|
|
|
tls:
|
|
|
|
enabled: false
|
|
|
|
cert_file: /path/to/cert
|
|
|
|
key_file: /path/to/key
|
|
|
|
- address: 0.0.0.0:8081
|
|
|
|
tls:
|
|
|
|
enabled: false
|
|
|
|
cert_file: /path/to/cert
|
|
|
|
key_file: /path/to/key
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# Nodes configuration.
|
2022-12-20 11:01:50 +00:00
|
|
|
# This configuration make the gateway use the first node (grpc://s01.frostfs.devenv:8080)
|
|
|
|
# while it's healthy. Otherwise, the gateway use the second node (grpc://s01.frostfs.devenv:8080)
|
2022-04-08 09:01:57 +00:00
|
|
|
# for 10% of requests and the third node for 90% of requests.
|
|
|
|
peers:
|
|
|
|
0:
|
|
|
|
# Endpoint.
|
2022-12-20 11:01:50 +00:00
|
|
|
address: grpc://s01.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# Until nodes with the same priority level are healthy
|
|
|
|
# nodes with other priority are not used.
|
2022-04-12 06:20:18 +00:00
|
|
|
# The lower the value, the higher the priority.
|
2022-04-08 09:01:57 +00:00
|
|
|
priority: 1
|
|
|
|
|
|
|
|
# Load distribution proportion for nodes with the same priority.
|
|
|
|
weight: 1
|
|
|
|
1:
|
2022-12-20 11:01:50 +00:00
|
|
|
address: grpc://s02.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
priority: 2
|
|
|
|
weight: 1
|
|
|
|
2:
|
2022-12-20 11:01:50 +00:00
|
|
|
address: grpc://s03.frostfs.devenv:8080
|
2022-04-08 09:01:57 +00:00
|
|
|
priority: 2
|
|
|
|
weight: 9
|
|
|
|
|
2024-03-26 11:34:20 +00:00
|
|
|
reconnect_interval: 1m
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
web:
|
|
|
|
# Per-connection buffer size for requests' reading.
|
|
|
|
# This also limits the maximum header size.
|
|
|
|
read_buffer_size: 4096
|
|
|
|
|
|
|
|
# Per-connection buffer size for responses' writing.
|
|
|
|
write_buffer_size: 4096
|
|
|
|
|
|
|
|
# ReadTimeout is the amount of time allowed to read
|
|
|
|
# the full request including body. The connection's read
|
|
|
|
# deadline is reset when the connection opens, or for
|
|
|
|
# keep-alive connections after the first byte has been read.
|
2022-04-21 15:53:17 +00:00
|
|
|
read_timeout: 10m
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# WriteTimeout is the maximum duration before timing out
|
|
|
|
# writes of the response. It is reset after the request handler
|
|
|
|
# has returned.
|
2022-04-21 15:53:17 +00:00
|
|
|
write_timeout: 5m
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
# StreamRequestBody enables request body streaming,
|
|
|
|
# and calls the handler sooner when given body is
|
|
|
|
# larger then the current limit.
|
|
|
|
stream_request_body: true
|
|
|
|
|
|
|
|
# Maximum request body size.
|
|
|
|
# The server rejects requests with bodies exceeding this limit.
|
|
|
|
max_request_body_size: 4194304
|
|
|
|
|
2022-04-20 09:17:20 +00:00
|
|
|
# RPC endpoint to be able to use nns container resolving.
|
2022-12-20 11:01:50 +00:00
|
|
|
rpc_endpoint: http://morph-chain.frostfs.devenv:30333
|
2022-04-20 09:17:20 +00:00
|
|
|
# The order in which resolvers are used to find an container id by name.
|
|
|
|
resolve_order:
|
|
|
|
- nns
|
|
|
|
- dns
|
2022-04-08 09:01:57 +00:00
|
|
|
|
|
|
|
upload_header:
|
|
|
|
use_default_timestamp: false # Create timestamp for object if it isn't provided by header.
|
|
|
|
|
|
|
|
connect_timeout: 5s # Timeout to dial node.
|
2022-11-15 15:06:53 +00:00
|
|
|
stream_timeout: 10s # Timeout for individual operations in streaming RPC.
|
2022-04-08 09:01:57 +00:00
|
|
|
request_timeout: 5s # Timeout to check node health during rebalance.
|
|
|
|
rebalance_timer: 30s # Interval to check nodes health.
|
2022-07-29 06:34:26 +00:00
|
|
|
pool_error_threshold: 100 # The number of errors on connection after which node is considered as unhealthy.
|
2022-04-08 09:01:57 +00:00
|
|
|
|
2024-09-26 14:32:27 +00:00
|
|
|
# Enable index page to see objects list for specified container and prefix
|
|
|
|
index_page:
|
|
|
|
enabled: false
|
|
|
|
template_path: internal/handler/templates/index.gotmpl
|
|
|
|
|
2022-04-08 09:01:57 +00:00
|
|
|
zip:
|
|
|
|
compression: false # Enable zip compression to download files by common prefix.
|
2023-08-31 16:19:57 +00:00
|
|
|
|
|
|
|
runtime:
|
|
|
|
soft_memory_limit: 1gb
|
2023-08-21 13:50:23 +00:00
|
|
|
|
|
|
|
# Parameters of requests to FrostFS
|
|
|
|
frostfs:
|
|
|
|
# This flag enables client side object preparing.
|
|
|
|
client_cut: false
|
2023-08-25 11:53:59 +00:00
|
|
|
# Sets max buffer size for read payload in put operations.
|
|
|
|
buffer_max_size_for_put: 1048576
|
2023-11-07 08:07:27 +00:00
|
|
|
# Max attempt to make successful tree request.
|
|
|
|
# default value is 0 that means the number of attempts equals to number of nodes in pool.
|
|
|
|
tree_pool_max_attempts: 0
|
2023-10-04 11:50:37 +00:00
|
|
|
|
|
|
|
# Caching
|
|
|
|
cache:
|
|
|
|
# Cache which contains mapping of bucket name to bucket info
|
|
|
|
buckets:
|
|
|
|
lifetime: 1m
|
|
|
|
size: 1000
|
2023-11-28 08:29:08 +00:00
|
|
|
|
|
|
|
resolve_bucket:
|
|
|
|
namespace_header: X-Frostfs-Namespace
|
2024-09-26 14:32:27 +00:00
|
|
|
default_namespaces: [ "", "root" ]
|
2024-10-24 14:27:32 +00:00
|
|
|
|
|
|
|
cors:
|
|
|
|
allow_origin: ""
|
|
|
|
allow_methods: []
|
|
|
|
allow_headers: []
|
|
|
|
expose_headers: []
|
|
|
|
allow_credentials: false
|
|
|
|
max_age: 600
|
2024-10-29 11:44:09 +00:00
|
|
|
|
|
|
|
# Multinet properties
|
|
|
|
multinet:
|
|
|
|
# Enable multinet support
|
|
|
|
enabled: false
|
|
|
|
# Strategy to pick source IP address
|
|
|
|
balancer: roundrobin
|
|
|
|
# Restrict requests with unknown destination subnet
|
|
|
|
restrict: false
|
|
|
|
# Delay between ipv6 to ipv4 fallback switch
|
|
|
|
fallback_delay: 300ms
|
|
|
|
# List of subnets and IP addresses to use as source for those subnets
|
|
|
|
subnets:
|
|
|
|
- mask: 1.2.3.4/24
|
|
|
|
source_ips:
|
|
|
|
- 1.2.3.4
|
|
|
|
- 1.2.3.5
|