Fix field data is too large

Change-Id: Id3ceaa27687fda3b773873501208dacbfa3536ab
Closes-bug: #1699680
This commit is contained in:
zhubingbing 2017-06-22 14:13:50 +08:00
parent 9d27e52137
commit f5fba5d442
5 changed files with 11 additions and 0 deletions

View File

@ -107,6 +107,11 @@ docker_common_options:
keepalived_virtual_router_id: "51"
#######################
# Elasticsearch Options
#######################
es_heap_size: "1G"
####################
# Networking options
####################

View File

@ -5,6 +5,8 @@ elasticsearch_services:
group: elasticsearch
enabled: true
image: "{{ elasticsearch_image_full }}"
environment:
ES_HEAP_SIZE: "{{ es_heap_size }}"
volumes:
- "{{ node_config_directory }}/elasticsearch/:{{ container_config_directory }}/"
- "/etc/localtime:/etc/localtime:ro"
@ -15,6 +17,7 @@ elasticsearch_services:
# Elasticsearch
####################
elasticsearch_cluster_name: "kolla_logging"
es_heap_size: "1g"
####################
# Docker

View File

@ -11,6 +11,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
environment: "{{ service.environment }}"
volumes: "{{ service.volumes }}"
when:
- action != "config"

View File

@ -40,6 +40,7 @@
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes }}"
environment: "{{ item.value.environment }}"
register: check_elasticsearch_containers
when:
- action != "config"

View File

@ -17,3 +17,4 @@ path.conf: "/etc/elasticsearch"
path.data: "/var/lib/elasticsearch/data"
path.logs: "/var/log/kolla/elasticsearch"
path.scripts: "/etc/elasticsearch/scripts"
indices.fielddata.cache.size: 40%