~/talk

pg paxos Table Replication through Distributed Consensus

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [distributed-systems]
github:marcoslot
slides:none on file

A Postgres extension called PG Paxos (pgos/PG paos) implements multi-Paxos-style table replication in ~1,000 lines of plpgsql using dblink, running on Postgres 9.3–9.6 and on GitHub. It builds a replicated log, guarantees serializable history, tolerates a minority failure with a three-node majority (writes require two-of-three), and supports distributed locks — demonstrated as an HA cron lock on AWS where two cron workers race and one tweet wins. Throughput is limited to roughly one write per roundtrip (optimistically ~1k/s with tuning).

AI-written summary · about

  1. 0:00Intro
  2. 0:21Distributed consensus
  3. 4:49Paxos: Phase 1
  4. 9:06Paxos: Phase 2
  5. 19:22CREATE EXTENSION pg_paxos
  6. 19:48pg_paxos internals
  7. 20:57Table replication
  8. 21:33Cluster set-up
  9. 22:19Handling writes
  10. 22:48Handling reads
  11. 34:38Applications
  12. 36:23Why not Raft?
~/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.