Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Update jvm.options for ES7 #628

Closed
Closed
@andrx

Description

@andrx

Elasticsearch version
7.4+

Role version:
7.1

JVM version
bundled with ES7.4

OS version (uname -a if on a Unix-like system):
centos7 Linux 3.10.0-957.1.3.el7.x86_64

Description of the problem including expected versus actual behaviour:
I had a question on RAM issues described on discuss that led me to check the diff of jvm.options between ansible and current default shipped with ES7
There are updates that should be synchronized.

Playbook:

- name: Elasticsearch init nodes
  hosts: es
  roles:
	- role: elastic.elasticsearch
  gather_facts: true
  vars:
	es_major_version: "7.x"
	es_version: "7.4.2"
	es_instance_name: "{{ ansible_env.NODETYPE }}-{{ ansible_env.INSTANCE_INDEX }}"
	es_data_dirs:
	  - "/opt/elasticsearch/data"
	es_log_dir: "/opt/elasticsearch/logs"
	es_config:
	  node.name: "{{ ansible_env.NODETYPE }}-{{ ansible_env.INSTANCE_INDEX }}"
	  cluster.name: "{{ansible_env.CLUSTER_NAME}}"
	  node.attr.role: "{{ansible_env.NODETYPE}}"
	  discovery.seed_hosts: "{{ hostvars[inventory_hostname].groups.es }}"
	  cluster.initial_master_nodes: "{{ hostvars[inventory_hostname].groups.master }}"
	  network.host: "{{ ansible_default_ipv4.address }}"
	  http.port: 9200
	  transport.port: 9300
	  node.data: "{{true if (ansible_env.NODETYPE=='data' or ansible_env.NODETYPE=='shadow') else false}}"
	  node.master: "{{true if ansible_env.NODETYPE=='master' else false}}"
	  node.ml: false
	  bootstrap.memory_lock: true
	  thread_pool.write.queue_size: 1000
	  thread_pool.search.queue_size: 10000
	  indices.queries.cache.size: 5%
	  indices.breaker.total.use_real_memory: false
	  cluster.fault_detection.follower_check.timeout: "30s"
	es_scripts: false
	es_templates: false
	es_version_lock: false
	es_heap_size: 16g
	es_api_port: 9200
	es_api_host: "{{ ansible_default_ipv4.address }}"
	es_enable_xpack: true

Provide logs from Ansible:

ES Logs if relevant:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions