From 106a3fc96e05e1f9ca5533dd92472f6d2d9775f1 Mon Sep 17 00:00:00 2001 From: colossus06 <96833570+colossus06@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:45:44 +0300 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 --- _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 404d43ec..fe94fc23 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`