Skip to content

Commit

Permalink
update: add wsl commands to set the vm.max_map_count (#5077)
Browse files Browse the repository at this point in the history
Added commands to set the vm.max_map_count on WSL Windows.

Signed-off-by: colossus06 <96833570+colossus06@users.noreply.github.com>
Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
Co-authored-by: Melissa Vagi <vagimeli@amazon.com>
(cherry picked from commit 106a3fc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 15, 2023
1 parent 546fd86 commit 335f22b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _install-and-configure/install-opensearch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ vm.max_map_count=262144

Then run `sudo sysctl -p` to reload.

For Windows workloads, you can set the `vm.max_map_count` running the following commands:

```bash
wsl -d docker-desktop
sysctl -w vm.max_map_count=262144
```

The [sample docker-compose.yml]({{site.url}}{{site.baseurl}}/install-and-configure/install-opensearch/docker/#sample-docker-composeyml) file also contains several key settings:

- `bootstrap.memory_lock=true`
Expand Down

0 comments on commit 335f22b

Please sign in to comment.