Allow disabling (or independently selecting) wire compression on the replication (sync-source) connection, decoupled from the client-facing listener controlled by net.compression.compressors.

XMLWordPrintableJSON

    • 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:

      1. Client → mongod connections.
      2. Secondary → sync source (Primary or upstream Secondary) connections used by OplogFetcherInitialSyncer 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.

        1. image-2026-07-02-22-12-19-118.png
          image-2026-07-02-22-12-19-118.png
          221 kB
        2. image-2026-07-02-22-12-07-684.png
          image-2026-07-02-22-12-07-684.png
          206 kB
        3. image-2026-07-02-22-11-56-126.png
          image-2026-07-02-22-11-56-126.png
          361 kB
        4. image-2026-07-02-22-11-48-774.png
          image-2026-07-02-22-11-48-774.png
          251 kB
        5. image-2026-07-02-22-11-30-843.png
          image-2026-07-02-22-11-30-843.png
          212 kB
        6. image-2026-07-02-22-09-16-511.png
          image-2026-07-02-22-09-16-511.png
          364 kB
        7. image-2026-07-02-22-08-58-231.png
          image-2026-07-02-22-08-58-231.png
          259 kB
        8. image-2026-07-02-22-08-47-605.png
          image-2026-07-02-22-08-47-605.png
          352 kB
        9. image-2026-07-02-22-08-08-187.png
          image-2026-07-02-22-08-08-187.png
          220 kB
        10. image-2026-07-02-22-07-58-507.png
          image-2026-07-02-22-07-58-507.png
          291 kB
        11. image-2026-07-02-22-07-49-123.png
          image-2026-07-02-22-07-49-123.png
          335 kB
        12. image-2026-07-02-21-55-14-987.png
          image-2026-07-02-21-55-14-987.png
          228 kB

            Assignee:
            Unassigned
            Reporter:
            y yz (EXT)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: