You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/opensearch/pages/usage-guide/configuration-environment-overrides.adoc
+19-72Lines changed: 19 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,89 +35,36 @@ nodes:
35
35
config: {}
36
36
----
37
37
38
-
All override property values must be strings.
39
-
They are added unchanged to the configuration file.
40
-
Care must be taken to produce a valid configuration.
41
-
42
-
For a list of configuration options, we refer to the
43
-
https://docs.opensearch.org/docs/latest/install-and-configure/configuring-opensearch/index/[Configuring OpenSearch{external-link-icon}^] section in the OpenSearch documentation.
44
-
45
-
The file `opensearch.yml` is a YAML file, where deep structures are possible.
46
-
On the other hand, `configOverrides` are only flat key-value pairs.
47
-
Fortunately, this is not a problem because the OpenSearch YAML parser allows both representations.
48
-
Keys can be flattened as follows:
38
+
Property values must be strings when defined as key-value pairs.
39
+
To override properties using other types or nested structures, use a JSON merge patch by placing the properties under `jsonMergePatch`:
NOTE: Replacing the entire configuration file is not recommended, as all properties normally managed by the operator must be explicitly provided to obtain a working OpenSearch cluster.
104
65
105
-
# Integer as string
106
-
cluster.max_shards_per_node: "10000"
107
-
108
-
# Floating point as string
109
-
cluster.routing.allocation.balance.index: "0.6"
110
-
111
-
# Time unit as string
112
-
cluster.info.update.interval: "10s"
113
-
114
-
# The options above are equivalent to
115
-
116
-
cluster.blocks.read_only: true
117
-
cluster.max_shards_per_node: 10000
118
-
cluster.routing.allocation.balance.index: 0.6
119
-
cluster.info.update.interval: 10s
120
-
----
66
+
For a list of configuration options, we refer to the
67
+
https://docs.opensearch.org/docs/latest/install-and-configure/configuring-opensearch/index/[Configuring OpenSearch{external-link-icon}^] section in the OpenSearch documentation.
0 commit comments