Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-public
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
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
system
ansible-public
Commits
6ea9ed05
Commit
6ea9ed05
authored
7 months ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Add haproxy stat page and update maxconn values, Refs
#39996
parent
a81efd6b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
roles/nudgis/haproxy/templates/haproxy.cfg.j2
+11
-3
11 additions, 3 deletions
roles/nudgis/haproxy/templates/haproxy.cfg.j2
with
16 additions
and
3 deletions
CHANGELOG.md
+
5
−
0
View file @
6ea9ed05
# 2024-08-12
*
Add HAProxy stats page listening on localhost on frontend servers for HA deployment
*
Update HAProxy maxconn value for HA deployment
# 2024-07-09
*
Remove
`admin`
and
`ubicast`
system user shell password definition in the
`system/user`
role.
...
...
This diff is collapsed.
Click to expand it.
roles/nudgis/haproxy/templates/haproxy.cfg.j2
+
11
−
3
View file @
6ea9ed05
...
...
@@ -7,6 +7,7 @@ global
user haproxy
group haproxy
daemon
maxconn 2000
defaults
log global
...
...
@@ -23,12 +24,19 @@ defaults
option clitcpka
option srvtcpka
frontend stats
mode http
bind 127.0.0.1:8404
stats enable
stats uri /stats
stats refresh 10s
listen pgsql-primary
bind 127.0.0.1:54321
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check
tcp-check expect string primary
maxconn
5
00
server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn
5
00 check port 8543
server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn
5
00 check port 8543 backup
maxconn
10
00
server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn
10
00 check port 8543
server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn
10
00 check port 8543 backup
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