https://rancher.com/ logo
Title
s

salmon-guitar-13341

04/06/2023, 10:28 PM
Problems getting elasticsearch to work on rancher desktop on macos (docker/moby) while following doc to increase ulimit and sysctl vm.max_map_count. Doc says sysctl line near bottom, for me it worked near top (details in reply coming)
This one did not handle the sysctl change properly in my testing.
This lima override.yaml has sysctl closer to top of file, and works for me
c

calm-sugar-3169

04/06/2023, 10:40 PM
That looks like a clear error in the docs, because the first case has the maximum map count check before
EOF
which will places it in the
rancher-desktop.conf
and that doesn’t seem correct 🤔
I believe it was intended to be
provision:
- mode: system
  script: |
    #!/bin/sh
    cat <<'EOF' > /etc/security/limits.d/rancher-desktop.conf
    * soft     nofile         82920
    * hard     nofile         82920
    EOF
    sysctl -w vm.max_map_count=262144
s

salmon-guitar-13341

04/06/2023, 10:48 PM
that should also work, but making a limits config file w/ sysctl cmd in it will not work
👍 1
c

calm-sugar-3169

04/06/2023, 10:51 PM
Thanks for reporting this I have created an issue here: https://github.com/rancher-sandbox/rancher-desktop/issues/4378 and assigned it to our docs team.
🙏 1
🎉 1