From 89c4da33788e4d33ad3ae14c6334642b429b0889 Mon Sep 17 00:00:00 2001 From: Arthur Knoepflin Date: Tue, 1 Jun 2021 19:30:43 +0200 Subject: [PATCH] feat: add max_conn_idle_time docs (#412) --- docs/docs/ecosystem/database.md | 4 ++++ docs/docs/ecosystem/deployment.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/docs/ecosystem/database.md b/docs/docs/ecosystem/database.md index d9469477a..bfca5d57b 100644 --- a/docs/docs/ecosystem/database.md +++ b/docs/docs/ecosystem/database.md @@ -39,6 +39,8 @@ Additionally, the following DSN parameters are supported: Defaults to the number of CPU cores. - `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s", "m", "h") a connection may be reused. +- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s", + "m", "h") a connection can be kept alive. - `sslmode` (string): Whether or not to use SSL (default is require) - `disable` - No SSL - `require` - Always SSL (skip verification) @@ -74,6 +76,8 @@ Additionally, the following DSN parameters are supported: Defaults to the number of CPU cores. - `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s", "m", "h") a connection may be reused. Defaults to 0s (disabled). +- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s", + "m", "h") a connection can be kept alive. - `collation` (string): Sets the collation used for client-server interaction on connection. In contrast to charset, collation does not issue additional queries. If the specified collation is unavailable on the target server, the diff --git a/docs/docs/ecosystem/deployment.md b/docs/docs/ecosystem/deployment.md index 438f136b9..8303ccadd 100644 --- a/docs/docs/ecosystem/deployment.md +++ b/docs/docs/ecosystem/deployment.md @@ -65,6 +65,8 @@ Additionally, the following DSN parameters are supported: Defaults to the number of CPU cores. - `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s", "m", "h") a connection may be reused. +- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s", + "m", "h") a connection can be kept alive. - `sslmode` (string): Whether or not to use SSL (default is require) - `disable` - No SSL - `require` - Always SSL (skip verification) @@ -100,6 +102,8 @@ Additionally, the following DSN parameters are supported: Defaults to the number of CPU cores. - `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s", "m", "h") a connection may be reused. Defaults to 0s (disabled). +- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s", + "m", "h") a connection can be kept alive. - `collation` (string): Sets the collation used for client-server interaction on connection. In contrast to charset, collation does not issue additional queries. If the specified collation is unavailable on the target server, the