mongod DB using swap space

we have a 2 node cluster
16GB Ram on each node
we see that mongod is using swap space
being new in the world of mongoDB
any help or link is appreciated to find the reason of using swap space.
thanks in advance

Swap is addressed in the production notes.
https://docs.mongodb.com/manual/administration/production-notes/#set-vm-swappiness-to-1-or-0

What you have is in accident waiting to happen :slight_smile: . You need 3 nodes to create a functional replicaSet.

Go and sign up for some course at https://university.mongodb.com

M103 covers basic cluster administration.
https://university.mongodb.com/courses/M103/about

The documentation covers this nicely too:
https://docs.mongodb.com/manual/administration/replica-set-deployment/#replica-set-deployment-tutorials

3 Likes