~/talk

In and Out of the Weeds With MongoDB 4.4 Hedged Reads

Talkat Percona Live Online 2020 · 2020-10-20..10-21· [databases]
links:none on file
slides:none on file

Hedged Reads in MongoDB 4.4 claims to cut tail latency by sending reads to multiple replicas and returning the fastest result; mongos picks eligible secondaries by ping time, calculates a default latency window 15 ms, routes one read, then fires a duplicate and cancels the slower one when the first returns. Setup requires enabling hedging on mongos and non-primary read preferences; defaults include maxTimeMS 150 ms. ServerStatus exposes hedged counters. Tradeoffs: extra host load, potential staleness and nonmonotonic reads, only non-primary reads.

AI-written summary · about

  1. 0:00Start
  2. 5:58High Latency - Lost Revenue Three Seconds = Magic Cut-off Point
  3. 9:09Basic MongoDB Architecture - Single Replica Set
  4. 9:44Sharded Cluster Architecture
  5. 11:38Read Preference Mode
  6. 13:10How Hedged Reads Work - Simplistic View
  7. 14:03How Hedged Reads Work - Explained
  8. 18:09Hedged Reads Diagnostics - AKA serverStatus to the Rescue The command serverStatus and the mango shell method db.serveStatus() return hedgingMetrics for the mongos only (starting in 4.4 of course)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.