-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Open
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Description
Elasticsearch Version
8.17.1
Installed Plugins
No response
Java Version
bundled
OS Version
Linux
Problem Description
cluster.max_shards_per_node: 1000
cluster.max_shards_per_node.frozen: 1000
in flat notation expands to the following (invalid) YAML
cluster:
max_shards_per_node: 1000
max_shards_per_node:
frozen: 1000
^ max_shards_per_node
cannot be both a scalar value and an object
According to the official Elasticsearch documentation both formats can be used interchangeably: https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#_config_file_format
This becomes a problem for example for the ECK operator that normalizes user submitted configuration in order to merge ECK operator specific configuration into it, making it impossible to use both settings from elasticsearch.yml
Steps to Reproduce
Configure Elasticsearch with the configuration snippet from the problem description:
cluster:
max_shards_per_node: 1000
max_shards_per_node:
frozen: 1000
or via ECK
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: es
spec:
version: 8.17.0
nodeSets:
- name: default
config:
cluster.max_shards_per_node: 2000
cluster.max_shards_per_node.frozen: 4000
Logs (if relevant)
No response
Metadata
Metadata
Assignees
Labels
:Core/Infra/SettingsSettings infrastructure and APIsSettings infrastructure and APIs>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team