Hi all,
I have a three-node replica set on AWS. Production node, Replica and Arbiter. In the past couple of months, there have been 2 incidences of mongod crashing. In both cases, when I look back in the log, there were long queries (sometimes >8000ms) happening right before it crashed. (Apparently, I need better indices.) Both times, it happened on the Production node. The first time, it was primary, and the second time, it was secondary.
So here are my questions:
1) can long queries lead to mongod crashes?
2) why the second time it's not the mongod on the primary that crashed? It seems that there must be other reason causing this crash - the Production node runs the initial code the queries and write to MongoDB.
Thanks in advance!
Scarlett