Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-freeradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
puppet-freeradius
Commits
a1634a27
Commit
a1634a27
authored
10 years ago
by
Jonathan Gazeley
Browse files
Options
Downloads
Patches
Plain Diff
Add support to vary the number of SQL sockets made
parent
ba5ed087
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+8
-0
8 additions, 0 deletions
README.md
manifests/sql.pp
+1
-0
1 addition, 0 deletions
manifests/sql.pp
templates/sql.conf.erb
+1
-1
1 addition, 1 deletion
templates/sql.conf.erb
with
10 additions
and
1 deletion
README.md
+
8
−
0
View file @
a1634a27
...
...
@@ -266,6 +266,14 @@ Default: `undef`. Required. Password to connect to the database.
Default:
`radius`
. Name of the database. Normally you should leave this alone. If you are using Oracle then use this instead:
`(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))`
.
##### `num_sql_socks`
Default: same as
`max_servers`
. Number of sql connections to make to the database server.
Setting this to LESS than the number of threads means that some threads may starve, and
you will see errors like "No connections available and at max connection limit". Setting
this to MORE than the number of threads means that there are more connections than necessary.
Leave blank to set it to the same value as the number of threads.
```
puppet
freeradius::sql
{
'mydatabase'
:
database
=>
'mysql'
,
...
...
This diff is collapsed.
Click to expand it.
manifests/sql.pp
+
1
−
0
View file @
a1634a27
...
...
@@ -5,6 +5,7 @@ define freeradius::sql (
$server
=
'localhost'
,
$login
=
'radius'
,
$radius_db
=
'radius'
,
$num_sql_socks
=
'${thread[pool].max_servers}'
,
)
{
$fr_package
=
$::freeradius::params::fr_package
$fr_service
=
$::freeradius::params::fr_service
...
...
This diff is collapsed.
Click to expand it.
templates/sql.conf.erb
+
1
−
1
View file @
a1634a27
...
...
@@ -82,7 +82,7 @@ sql {
# Setting this to MORE than the number of threads means
# that there are more connections than necessary.
#
num_sql_socks =
${thread[pool].max_servers}
num_sql_socks =
<%=
@num_sql_socks
%>
# number of seconds to dely retrying on a failed database
# connection (per_socket)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment