~/talk

PgBouncer and 20000 TPS at one node: advanced tuning, hacks and problem solving

Talkat PostgresOpen Silicon Valley 2017 · 2017-09-06..09-08· [databases]
links:none on file
slides:none on file

Benchmarks show a single app machine hitting about 7,700 TPS with PgBouncer, and the architecture scales to ~20,000 TPS by running multiple coordinated bouncers and spreading load. The setup uses client-side and server-side bouncers, a calculated pool-size formula (app pool size × number of app containers + 1), HAProxy routing to standbys and a HAProxy + custom health-check script that calls a check_ha stored procedure, reserve pools to detect overload, and monitoring of waiting counts plus several PgBouncer limitations and patched workarounds.

AI-written summary · about

  1. 0:00Start
  2. 7:14Multiplexer (part 4)
  3. 32:35When 1 CPU core is not enough
  4. 36:29Example of pool and settings in our PgBouncer
~/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.