File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,14 @@ Default: `undef`. Required. Password to connect to the database.
266
266
Default: ` radius ` . Name of the database. Normally you should leave this alone. If you are using Oracle then use this instead:
267
267
` (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid))) ` .
268
268
269
+ ##### ` num_sql_socks `
270
+
271
+ Default: same as ` max_servers ` . Number of sql connections to make to the database server.
272
+ Setting this to LESS than the number of threads means that some threads may starve, and
273
+ you will see errors like "No connections available and at max connection limit". Setting
274
+ this to MORE than the number of threads means that there are more connections than necessary.
275
+ Leave blank to set it to the same value as the number of threads.
276
+
269
277
``` puppet
270
278
freeradius::sql { 'mydatabase':
271
279
database => 'mysql',
Original file line number Diff line number Diff line change 5
5
$server = ' localhost' ,
6
6
$login = ' radius' ,
7
7
$radius_db = ' radius' ,
8
+ $num_sql_socks = ' ${thread[pool].max_servers}' ,
8
9
) {
9
10
$fr_package = $::freeradius::params::fr_package
10
11
$fr_service = $::freeradius::params::fr_service
Original file line number Diff line number Diff line change 82
82
# Setting this to MORE than the number of threads means
83
83
# that there are more connections than necessary.
84
84
#
85
- num_sql_socks = ${thread[pool].max_servers}
85
+ num_sql_socks = <%= @num_sql_socks %>
86
86
87
87
# number of seconds to dely retrying on a failed database
88
88
# connection (per_socket)
You can’t perform that action at this time.
0 commit comments