-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Networking & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
MongoDB's net.compression.compressors setting controls wire-protocol compression for every connection of the node, including:
- Client → mongod connections.
- Secondary → sync source (Primary or upstream Secondary) connections used by OplogFetcher, InitialSyncer and SyncSourceResolver.
Snappy is enabled by default. While Snappy is cheap for small OLTP payloads, on large-document workloads running on small-instance replica sets the replication path becomes CPU-bound on compression / decompression rather than on disk or network. The Secondary's oplog-fetcher consumer thread saturates a single core well before disk or NIC becomes a bottleneck, and replication lag grows unbounded on the further Secondary.
net.compression.compressors is a node-wide switch and cannot be tuned independently for the sync-source link. Operators are forced into an all-or-nothing choice, even though the client link and the intra-DC replication link have very different bandwidth / CPU trade-offs.
- related to
-
SERVER-131871 Optimize multi-field updates on wide documents: avoid repeated linear child lookups in UpdateObjectNode
-
- Needs Scheduling
-
-
SERVER-28008 Compress replies only when the request was compressed
-
- Closed
-