userver: component
Loading...
Searching...
No Matches
component
Name Description Default value
blocking_task_processor Task processor used for synchronous ODBC driver-manager and driver calls. Defaults to the global blocking task processor. –
secdist_alias Name of the database in secdist config. Must not be empty. If specified, DSN will be read from secdist instead of static config. Mutually exclusive with dsn and pools. –
dsn Connection DSN string (used for single-pool configuration). Must not be empty. Mutually exclusive with secdist_alias and pools. –
min_pool_size Number of connections created initially by this component instance. Connections are kept even without requests. 1
max_pool_size Maximum number of connections that can be created by this component instance. Should not be less than min_pool_size. 10
max_statement_metrics Maximum number of named query-name entries retained per ODBC pool. Each entry exports three metric series. Zero disables named query metrics. 0
max_prepared_cache_size Maximum number of prepared parameterized SQL statements retained by each physical ODBC connection. Zero disables the prepared statement cache. 0
dns_resolver Server hostname resolver type (getaddrinfo or async). Possible values: getaddrinfo, async. async
pools.[] Connection pool configuration. –
pools.[].dsn Non-empty connection DSN string for this pool. –
pools.[].min_pool_size Minimum number of connections in this pool. 1
pools.[].max_pool_size Maximum number of connections in this pool. 10