-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.toml.dist
39 lines (34 loc) · 1.1 KB
/
config.toml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[log]
level = "info"
[server]
host = "0.0.0.0"
port = 2030
[metrics]
host = "0.0.0.0"
port = 3020
[database]
user = "postgres"
host = "127.0.0.1"
port = 5432
database = "buckets_metadata"
application_name = "buckets_mdapi"
tls_mode = "disable"
[cueball]
max_connections = 64
claim_timeout = 500 # milliseconds
# Time to delay when an action that would trigger a rebalancing of the pool
# connections is received. The purpose of the delay is to avoid minimize to work
# needed for connection pool rebalancing when multiple actionable events occur
# in rapid succession.
rebalancer_action_delay = 100 # milliseconds
[tokio]
# It's best to omit this from your config file and use the default which is the
# number of logical cores. This is here primarily to demonstrate it can be
# set. Only set core_threads if you are certain about what you are doing.
core_threads = 4
blocking_threads = 200
# This is here primarily to demonstrate it can be set. If it is omitted the
# default behavior is to disable keep alive for threads.
thread_keep_alive = 60
thread_stack_size = 2097152
thread_name_prefix = "buckets-mdapi-worker-"