update: add wsl commands to set the `vm.max_map_count` (#5077)

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>
This commit is contained in:
colossus06 2023-12-15 23:45:44 +03:00 committed by GitHub
parent 97470eb642
commit 106a3fc96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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`