Moved guidance on passing env vars as args to Configuration - it was previously under installation (#962)
Signed-off-by: JeffH-AWS <jeffhuss@amazon.com> Signed-off-by: JeffH-AWS <jeffhuss@amazon.com>
This commit is contained in:
parent
a4c89a24b8
commit
43037838ec
|
@ -10,6 +10,13 @@ Most OpenSearch configuration can take place in the cluster settings API. Certai
|
|||
|
||||
Whenever possible, use the cluster settings API instead; `opensearch.yml` is local to each node, whereas the API applies the setting to all nodes in the cluster. Certain settings, however, require `opensearch.yml`. In general, these settings relate to networking, cluster formation, and the local file system. To learn more, see [Cluster formation]({{site.url}}{{site.baseurl}}/opensearch/cluster/).
|
||||
|
||||
## Specify settings as environment variables
|
||||
|
||||
You can specify environment variables as arguments using `-E` when launching OpenSearch:
|
||||
|
||||
```bash
|
||||
./opensearch -Ecluster.name=opensearch-cluster -Enode.name=opensearch-node1 -Ehttp.host=0.0.0.0 -Ediscovery.type=single-node
|
||||
```
|
||||
|
||||
## Update cluster settings using the API
|
||||
|
||||
|
|
Loading…
Reference in New Issue