| Name | Description | Default value |
|---|---|---|
| appname | Application name for the DB server. | userver |
| conn_timeout | Connection timeout. | 2s |
| so_timeout | Socket timeout. | 10s |
| queue_timeout | Max connection queue wait time. | 1s |
| initial_size | Number of connections created initially (per database). | 16 |
| max_size | Limit for working connections per database. Creation counts working and closing connections against twice this limit. After a decrease, excess connections close gradually. | 128 |
| idle_limit | Limit for idle connections number (per database). | 64 |
| connecting_limit | Limit for establishing connections number (per database). | 8 |
| max_connection_lifetime | Maximum connection lifetime in seconds. Unset means unlimited. Actual lifetime is randomized between half this value and this value to avoid simultaneous reconnects. Busy connections are retired on return; idle connections are checked during maintenance. Lifetime changes apply to existing connections according to their age. | – |
| local_threshold | Latency window for instance selection. | mongodb default |
| max_replication_lag | Replication lag limit for usable secondaries, min. 90s. | – |
| stats_verbosity | Changes the granularity of reported metrics. Possible values: terse, full, none. | terse |
| dns_resolver | Server hostname resolver type (getaddrinfo or async). Possible values: getaddrinfo, async. | async |
| congestion_control | Congestion control settings. | – |
| congestion_control.fake-mode | Whether CC limiter is actually working. | false |
| congestion_control.enabled | Whether CC is enabled for the database. | true |