3 ms·
I'm still confused. Why does replication hit the disk on the primary? If the secondaries aren't already way behind, shouldn't the data be going straight from RA
by nknight 15y ago
I'm still confused. Why does replication hit the disk on the primary? If the secondaries aren't already way behind, shouldn't the data be going straight from RAM out the network interface?
- mvip 15y agoIn our case with GridFS, the objects wouldn't fit in RAM. Only perhaps the last two objects would. The node had 4GB of RAM and many of the objects sent Mongo were around 0.5-4GB.
- nknight 15y agoAhhh, and presumably replication doesn't start until the entire object is loaded. Now it makes sense. There are ways that could be fixed, but at least now it's just a lack of optimization instead of sounding like something's completely turned on its head. :)