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
ffef261e
Commit
ffef261e
authored
5 months ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Restore server check
parent
0d3ad765
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/nudgis/haproxy/templates/haproxy.cfg.j2
+2
-2
2 additions, 2 deletions
roles/nudgis/haproxy/templates/haproxy.cfg.j2
with
2 additions
and
2 deletions
roles/nudgis/haproxy/templates/haproxy.cfg.j2
+
2
−
2
View file @
ffef261e
...
...
@@ -57,6 +57,6 @@ listen pgsql-primary
# Set failover and backend servers
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000
server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000 backup
server {{ groups['postgres'][0] }} {{ hostvars[groups['postgres'][0]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000
check
server {{ groups['postgres'][1] }} {{ hostvars[groups['postgres'][1]]['ansible_default_ipv4']['address'] }}:5432 maxconn 1000
check
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