From 335f22b4d62656a37eaaaac3f08dd9c43f89e5ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 Dec 2023 20:46:07 +0000 Subject: [PATCH] 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 (cherry picked from commit 106a3fc96e05e1f9ca5533dd92472f6d2d9775f1) Signed-off-by: github-actions[bot] --- _install-and-configure/install-opensearch/index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_install-and-configure/install-opensearch/index.md b/_install-and-configure/install-opensearch/index.md index 404d43ecf4..fe94fc2347 100644 --- a/_install-and-configure/install-opensearch/index.md +++ b/_install-and-configure/install-opensearch/index.md @@ -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`