]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Document new "pool" subsection
authorAlan T. DeKok <aland@freeradius.org>
Mon, 17 Oct 2011 16:20:18 +0000 (18:20 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 17 Oct 2011 16:20:32 +0000 (18:20 +0200)
raddb/modules/sql

index 690c3a260b38ca6c4adda6c1510dc9adc2e1e956..8f16ab19ab8218653b384d21b4efbf9af17b8ae3 100644 (file)
@@ -73,24 +73,39 @@ sql {
        sqltrace = no
        sqltracefile = ${logdir}/sqltrace.sql
 
-       # number of sql connections to make to server
-       num_sql_socks = 5
-
-       # number of seconds to dely retrying on a failed database
-       # connection (per_socket)
-       connect_failure_retry_delay = 60
-
-       # lifetime of an SQL socket.  If you are having network issues
-       # such as TCP sessions expiring, you may need to set the socket
-       # lifetime.  If set to non-zero, any open connections will be
-       # closed "lifetime" seconds after they were first opened.
-       lifetime = 0
-
-       # Maximum number of queries used by an SQL socket.  If you are
-       # having issues with SQL sockets lasting "too long", you can
-       # limit the number of queries performed over one socket.  After
-       # "max_qeuries", the socket will be closed.  Use 0 for "no limit".
-       max_queries = 0
+       #  As of version 3.0, the "pool" section has replaced the
+       #  following configuration items:
+       #
+       #  num_sql_socks
+       #  connect_failure_retry_delay
+       #  lifetime
+       #  max_queries
+
+       pool {
+               # Number of connections to start
+               start = 5
+
+               # Minimum number of connections to keep open
+               min = 4
+
+               # Maximum number of connections
+               max = 10
+
+               # Spare connections to be left idle
+               spare = 3
+
+               # Number of uses before the connection is closed
+               #
+               # 0 means "infinite"
+               uses = 0
+
+               # The lifetime (in seconds) of the connection
+               lifetime = 0
+
+               # idle timeout (in seconds).  A connection which is
+               # unused for this length of time will be closed.
+               idle_timeout = 60
+       }
 
        # Set to 'yes' to read radius clients from the database ('nas' table)
        # Clients will ONLY be read on server startup.  For performance