Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Very Demiurge Very Mindful
Kolla Ansible
Commits
fdbfd96d
Commit
fdbfd96d
authored
7 years ago
by
Zuul
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add a active-standby mode memcached in haproxy"
parents
574c68b3
a26357ef
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
ansible/roles/haproxy/templates/haproxy.cfg.j2
+13
-0
13 additions, 0 deletions
ansible/roles/haproxy/templates/haproxy.cfg.j2
with
13 additions
and
0 deletions
ansible/roles/haproxy/templates/haproxy.cfg.j2
+
13
−
0
View file @
fdbfd96d
...
@@ -895,6 +895,19 @@ listen mariadb
...
@@ -895,6 +895,19 @@ listen mariadb
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if enable_memcached | bool %}
listen memcached
mode tcp
timeout client 3600s
timeout server 3600s
option tcplog
option tcpka
bind {{ kolla_internal_vip_address }}:{{ memcached_port }}
{% for host in groups['memcached'] %}
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }} check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %}
{% endfor %}
{% endif %}
{% if enable_opendaylight | bool %}
{% if enable_opendaylight | bool %}
listen opendaylight_api
listen opendaylight_api
bind {{ kolla_internal_vip_address }}:{{ opendaylight_haproxy_restconf_port }}
bind {{ kolla_internal_vip_address }}:{{ opendaylight_haproxy_restconf_port }}
...
...
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