Installing Mongo set
Hello,
When I installing mongo-set on virtual machine , I see the following problems...
Failed to set swappiness for mongo. Error: 'sysctl -p' exited with 255 (host mongo1.host1.com): sysctl: setting key "vm.swappiness": Read-only file system
In my situation the only one way it is exclude this command when installing mongo cluster.
Where is located a script, which I can edit and delete the string with "set swappiness"
-
Official comment
Hi Evgeniy,
Thank you very much for reporting this issue.
By default we set the swappiness on any database node to ensure the optimal performance from this host. The ClusterControl backend is sending out the commands, so deployments aren't following a script. We could make the update of the swappiness non-fatal.
However, this raises another issue: which parts of the filesystem of your virtual is read-only? We are updating the vm.swappiness in /etc/sysctl.conf using systctl to persist this. If we are deploying MongoDB we will have to write its config in /etc as well, and also some helper packages that get installed may also require writing to /etc.
Best regards,
Art
Comment actions
Please sign in to leave a comment.
Comments
1 comment