Skip to content

Commit aaf5d60

Browse files
committed
fix(roles/elasticsearch): ensure alphabetic order, update timestamp in template
1 parent edfa415 commit aaf5d60

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

roles/elasticsearch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ ansible-playbook --inventory inventory linuxfabrik.lfops.elasticsearch --limit n
195195
| `elasticsearch__cluster_name__host_var` / <br> `elasticsearch__cluster_name__group_var` | A descriptive name for your cluster. <br>For the usage in `host_vars` / `group_vars` (can only be used in one group at a time). | `'my-application'` |
196196
| `elasticsearch__cluster_routing_allocation_awareness_attributes` | List of awareness attribute names to enable [shard allocation awareness](https://www.elastic.co/docs/deploy-manage/distributed-architecture/shard-allocation-relocation-recovery/shard-allocation-awareness). Distributes replicas across different attribute values to minimize risk of data loss during failures. Configure the same attributes on all master-eligible nodes | `[]` |
197197
| `elasticsearch__cluster_routing_allocation_awareness_force` | Dictionary for forced awareness to prevent replica overloading when a location fails. Key is the attribute name, value is list of expected attribute values. Elasticsearch will leave replicas unassigned rather than concentrating them in remaining locations. | `{}` |
198-
| `elasticsearch__cluster_routing_allocation_disk_watermark_low` | Float `0 <= n <= 1`. Low watermark percentage for [disk-based shard allocation](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). Elasticsearch will not allocate shards to nodes whose disk usage exceeds this percentage | `0.85` |
199-
| `elasticsearch__cluster_routing_allocation_disk_watermark_high` | Float `0 <= n <= 1`. Low watermark percentage for [disk-based shard allocation](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). Elasticsearch will not allocate shards to nodes whose disk usage exceeds this percentage | `0.9` |
200198
| `elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage` | Float `0 <= n <= 1`. flood stage percentage for [disk-based shard allocation](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). Elasticsearch enforces a read-only index block on every index that has one or more shards allocated on nodes having at least one disk exceeding the flood stage | `0.95` |
199+
| `elasticsearch__cluster_routing_allocation_disk_watermark_high` | Float `0 <= n <= 1`. Low watermark percentage for [disk-based shard allocation](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). Elasticsearch will not allocate shards to nodes whose disk usage exceeds this percentage | `0.9` |
200+
| `elasticsearch__cluster_routing_allocation_disk_watermark_low` | Float `0 <= n <= 1`. Low watermark percentage for [disk-based shard allocation](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). Elasticsearch will not allocate shards to nodes whose disk usage exceeds this percentage | `0.85` |
201201
| `elasticsearch__discovery_seed_hosts` | A list of IPs or hostnames that point to all master-eligible nodes of the cluster. The port defaults to 9300 but can be overwritten using `:9301`, for example. | unset |
202202
| `elasticsearch__http_cert` | ASCII-armored PEM HTTP certificate. | unset |
203203
| `elasticsearch__http_key` | ASCII-armored PEM HTTP private key. | unset |

roles/elasticsearch/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ elasticsearch__cluster_name__host_var: ''
2020
elasticsearch__cluster_name__role_var: 'my-application'
2121
elasticsearch__cluster_routing_allocation_awareness_attributes: []
2222
elasticsearch__cluster_routing_allocation_awareness_force: {}
23-
elasticsearch__cluster_routing_allocation_disk_watermark_low: 0.85
24-
elasticsearch__cluster_routing_allocation_disk_watermark_high: 0.9
2523
elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage: 0.95
24+
elasticsearch__cluster_routing_allocation_disk_watermark_high: 0.9
25+
elasticsearch__cluster_routing_allocation_disk_watermark_low: 0.85
2626
elasticsearch__network_host: '_local_'
2727
elasticsearch__node_attributes: {}
2828
elasticsearch__node_name: '{{ ansible_facts["nodename"] }}'

roles/elasticsearch/templates/etc/elasticsearch/elasticsearch.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# {{ ansible_managed }}
2-
# 2026030601
2+
# 2026031901
33
# ======================== Elasticsearch Configuration =========================
44
#
55
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
@@ -106,9 +106,9 @@ cluster.routing.allocation.awareness.force.{{ key }}.values: '{{ values | join("
106106
{% endfor %}
107107
{% endif %}
108108
#
109-
cluster.routing.allocation.disk.watermark.low: {{ elasticsearch__cluster_routing_allocation_disk_watermark_low }}
110-
cluster.routing.allocation.disk.watermark.high: {{ elasticsearch__cluster_routing_allocation_disk_watermark_high }}
111109
cluster.routing.allocation.disk.watermark.flood_stage: {{ elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage }}
110+
cluster.routing.allocation.disk.watermark.high: {{ elasticsearch__cluster_routing_allocation_disk_watermark_high }}
111+
cluster.routing.allocation.disk.watermark.low: {{ elasticsearch__cluster_routing_allocation_disk_watermark_low }}
112112
#
113113
# ---------------------------------- Various -----------------------------------
114114
#

0 commit comments

Comments
 (0)