r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
8 stars 2 forks source link

vm.max_map_count is too low #305

Closed jeroen closed 8 months ago

jeroen commented 8 months ago

Mongo is giving a warning vm.max_map_count is too low. Apparently this has to be increased on the host machine. Not sure why the default is the way it is.

Currently it is:

sysctl vm.max_map_count
# vm.max_map_count = 65530

Mongodb recommmends 128000. GHA uses 262144: https://github.com/actions/runner-images/pull/1463/files

To update it we can do something like:

echo "vm.max_map_count=262144" > "/etc/sysctl.d/99-maxmap.conf"

And then reboot.

jeroen commented 3 months ago

I am not sure anymore if we set this on the host or in the mongo container.