f7b1221032
MariaDB is left unchanged because its custom_member_list uses a different group (mariadb_default_database_shard_hosts). Change-Id: Icefd5a3d02ae4dfeb27401696c35ca2c38e203d3
58 lines
2.3 KiB
YAML
58 lines
2.3 KiB
YAML
---
|
|
memcached_services:
|
|
memcached:
|
|
container_name: "memcached"
|
|
image: "{{ memcached_image_full }}"
|
|
enabled: true
|
|
group: "memcached"
|
|
volumes: "{{ memcached_default_volumes + memcached_extra_volumes }}"
|
|
dimensions: "{{ memcached_dimensions }}"
|
|
healthcheck: "{{ memcached_healthcheck }}"
|
|
haproxy:
|
|
memcached:
|
|
enabled: "{{ enable_memcached | bool and enable_haproxy_memcached | bool }}"
|
|
mode: "tcp"
|
|
port: "{{ memcached_port }}"
|
|
frontend_tcp_extra:
|
|
- "option clitcpka"
|
|
- "timeout client 3600s"
|
|
backend_tcp_extra:
|
|
- "option srvtcpka"
|
|
- "timeout server 3600s"
|
|
active_passive: true
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
memcached_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/memcached"
|
|
memcached_tag: "{{ openstack_tag }}"
|
|
memcached_image_full: "{{ memcached_image }}:{{ memcached_tag }}"
|
|
memcached_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
memcached_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
memcached_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
memcached_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
memcached_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
memcached_healthcheck_test: ["CMD-SHELL", "healthcheck_listen memcached {{ memcached_port }}"]
|
|
memcached_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
memcached_healthcheck:
|
|
interval: "{{ memcached_healthcheck_interval }}"
|
|
retries: "{{ memcached_healthcheck_retries }}"
|
|
start_period: "{{ memcached_healthcheck_start_period }}"
|
|
test: "{% if memcached_enable_healthchecks | bool %}{{ memcached_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ memcached_healthcheck_timeout }}"
|
|
|
|
memcached_default_volumes:
|
|
- "{{ node_config_directory }}/memcached/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
memcached_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
####################
|
|
# Memcached options
|
|
####################
|
|
memcached_connection_limit: "5000"
|
|
# NOTE(jeffrey4l): max memory to use for items in megabytes. default is 64MB,
|
|
# which is too small for production environment.
|
|
memcached_max_memory: "256"
|