2016-01-14 11:06:29 +01:00
|
|
|
---
|
2018-10-24 13:52:07 +02:00
|
|
|
project_name: "elasticsearch"
|
|
|
|
|
2017-01-23 11:21:11 -03:00
|
|
|
elasticsearch_services:
|
|
|
|
elasticsearch:
|
|
|
|
container_name: elasticsearch
|
|
|
|
group: elasticsearch
|
|
|
|
enabled: true
|
|
|
|
image: "{{ elasticsearch_image_full }}"
|
2017-06-22 14:13:50 +08:00
|
|
|
environment:
|
2018-05-21 15:39:53 -04:00
|
|
|
ES_JAVA_OPTS: "{{ es_java_opts }}"
|
2017-01-23 11:21:11 -03:00
|
|
|
volumes:
|
|
|
|
- "{{ node_config_directory }}/elasticsearch/:{{ container_config_directory }}/"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "elasticsearch:/var/lib/elasticsearch/data"
|
2018-07-13 19:17:53 +05:30
|
|
|
dimensions: "{{ elasticsearch_dimensions }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
elasticsearch:
|
|
|
|
enabled: "{{ enable_elasticsearch }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ elasticsearch_port }}"
|
|
|
|
frontend_http_extra:
|
|
|
|
- "option dontlog-normal"
|
2017-01-23 11:21:11 -03:00
|
|
|
|
|
|
|
|
2016-01-14 11:06:29 +01:00
|
|
|
####################
|
|
|
|
# Elasticsearch
|
|
|
|
####################
|
2016-02-24 16:05:36 +01:00
|
|
|
elasticsearch_cluster_name: "kolla_logging"
|
2017-06-22 14:13:50 +08:00
|
|
|
es_heap_size: "1g"
|
2018-05-21 15:39:53 -04:00
|
|
|
es_java_opts: "{% if es_heap_size %}-Xms{{ es_heap_size }} -Xmx{{ es_heap_size }}{%endif%}"
|
2016-02-24 16:05:36 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2016-01-14 11:06:29 +01:00
|
|
|
elasticsearch_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-elasticsearch"
|
|
|
|
elasticsearch_tag: "{{ openstack_release }}"
|
|
|
|
elasticsearch_image_full: "{{ elasticsearch_image }}:{{ elasticsearch_tag }}"
|
2018-07-13 19:17:53 +05:30
|
|
|
|
|
|
|
elasticsearch_dimensions: "{{ default_container_dimensions }}"
|