Hot answers tagged mongodb
From your pastebin output, I think you should try running: resize2fs /dev/mapper/ubuntu--vg-root You can run this command without any downtime.
That's not a matter of configuration. Your normal queries are sent to the current primary. So all you need to do is to make sure that your batch operations (I assume aggregations and/or mapReduce jobs) are run against a secondary. You can do this by setting the readPreference to secondary or secondaryPreferred. This comes with some serious drawbacks, ...
You probably need to add 127.0.0.1 to the jail, as jails will forbid binding to anything but the jail ip. But, if you want to confine mongo just to the jail, maybe a better idea would be to firewall it ... using 127.0.0.1 in jail could be wrong from security point of view.
I see this frequently and it's always outside of the mongod process. DNS resolver issues, TCP/IP stack problems, network links, physical hardware, etc. Work your way out from the mongod process. Check networking errors on your host OS, check physical links (if physical is in the equation), check your cloud provider between the two servers if you're spanning ...
Only top voted, non community-wiki answers of a minimum length are eligible