Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Naarcha-AWS <[email protected]>
Signed-off-by: AntonEliatra <[email protected]>
  • Loading branch information
AntonEliatra and Naarcha-AWS authored Jul 4, 2024
1 parent 5b45774 commit b4c48dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _install-and-configure/configuring-opensearch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Certain operations are static and require you to modify the `opensearch.yml` [co

## Specifying settings as environment variables

You can specify environment variables in different ways.
You can specify environment variables in the following ways.

### Arguments as start up

Expand All @@ -38,7 +38,7 @@ You can specify environment variables as arguments using `-E` when launching Ope

### Directly in the shell environment

You can configure the environment variables directly in shell before starting OpenSearch:
You can configure the environment variables directly in a shell environment before starting OpenSearch, as shown in the following example:

```bash
export OPENSEARCH_JAVA_OPTS="-Xms2g -Xmx2g"
Expand All @@ -49,15 +49,15 @@ export OPENSEARCH_PATH_CONF="/etc/opensearch"

### Systemd service file

When running OpenSearch as a service managed by systemd, you can specify environment variables in the service file:
When running OpenSearch as a service managed by `systemd`, you can specify environment variables in the service file, as shown in the following example:

```bash
# /etc/systemd/system/opensearch.service.d/override.conf
[Service]
Environment="OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx2g"
Environment="OPENSEARCH_PATH_CONF=/etc/opensearch"
```
After creating or modifying the file, reload the systemd configuration and restart the service:
After creating or modifying the file, reload the systemd configuration and restart the service using the following command:

```bash
sudo systemctl daemon-reload
Expand All @@ -67,7 +67,7 @@ sudo systemctl restart opensearch

### Docker environment variables

When running OpenSearch in Docker, you can specify environment variables using the -e option with Docker run:
When running OpenSearch in Docker, you can specify environment variables using the -e option with Docker run, as shown in the following command:

```bash
docker run -e "OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx2g" -e "OPENSEARCH_PATH_CONF=/usr/share/opensearch/config" opensearchproject/opensearch:latest
Expand Down

0 comments on commit b4c48dd

Please sign in to comment.