Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
2c2a39d9
Commit
2c2a39d9
authored
5 years ago
by
harshavardhanc
Browse files
Options
Download
Patches
Plain Diff
Issue #00 fix: adding discovery.zen.minimum_master_nodes variable
parent
ac0996cd
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/es6/templates/elasticsearch.yml.j2
+6
-0
ansible/roles/es6/templates/elasticsearch.yml.j2
with
6 additions
and
0 deletions
+6
-0
ansible/roles/es6/templates/elasticsearch.yml.j2
+
6
−
0
View file @
2c2a39d9
...
...
@@ -7,6 +7,12 @@
cluster.name: elasticsearch
{% endif %}
{% if (groups['composite-search-cluster']|length) == 1 %}
discovery.zen.minimum_master_nodes: 1
{% else %}
discovery.zen.minimum_master_nodes: "{{ ((groups['composite-search-cluster']|length) / 2 +1) | round(0, 'ceil') | int}}"
{% endif %}
{% if es_config['node.name'] is not defined %}
node.name: {{inventory_hostname}}-{{es_instance_name}}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets