Skip to content

Commit 7e9f618

Browse files
committed
Add docs for conn_max_age setting
1 parent 51636c3 commit 7e9f618

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ section for more information on configuring the database.
147147

148148
Note that these are used to configure `DATABASE` in `configuration.py`.
149149

150+
[source,yaml]
151+
----
152+
netbox_database_conn_age: 300
153+
----
154+
155+
To configure Netbox to keep database connections open longer than a single requests,
156+
set `netbox_database_conn_age` to your preferred maximum connection age, in seconds.
157+
300 seconds (5 minutes) is typically a good number to start with.
158+
150159
[source,yaml]
151160
----
152161
netbox_redis_host: 127.0.0.1

0 commit comments

Comments
 (0)