frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

We scaled PgBouncer to 4x throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
70•saisrirampur•1h ago

Comments

odie5533•1h ago
Article should show the config:

[pgbouncer] listen_addr = 0.0.0.0 listen_port = 6432 so_reuseport = 1 peer_id = 1 unix_socket_dir = /tmp/pgbouncer1

[peers] 1 = host=/tmp/pgbouncer1 2 = host=/tmp/pgbouncer2 3 = host=/tmp/pgbouncer3 4 = host=/tmp/pgbouncer4

nosefrog•1h ago
Interesting. We run pgbouncer via kubernetes so it was straightforward to make multiple pgbouncer processes on one machine. Also straightforward to get them running on multiple machines, which helps because we run on Azure and they like to cause rolling outages across our fleet via VM maintenance...
jauntywundrkind•1h ago
This was more for fun than real use, but I greatly enjoyed hacking something similar into rqbit bittorrent client. I wanted to run an instance of 'rqbit download' per torrent via so_reuseport. When a peer tries to connect, it gets sent to a random instance. So I built a whole rendezvous system, where instances find each other & either proxy data to each other or fd pass the socket to each other directly to get the peer socket to the instance that needs it. It uses postcard rpc to chat between instances.

Clickhouse's so_reuseport rendezvous needs are obviously for a very different, but fun to see some so_reuseport coordination like this (for a much more practical use)!

It'd be really neat to have some kind of general peering protocol that different apps could use. This whole exercise was gratuitous as heck for my application, I don't even really intend to use this, but it was a fun path to walk down. So I don't really know what the broader protocol would really be for, what we would use it for. But it seems like such a cool idea! A shared Turso database would probably be a bit more practical than the rpc system, honestly. Ha.

https://github.com/rektide/rqbit/tree/peering

nzeid•39m ago
Was there a disadvantage to using HAProxy + multiple PGBouncer instances?
x4m•27m ago
Just use https://github.com/yandex/odyssey :) It's a scalable PgBouncer.
JustSkyfall•2m ago
I've been using pgdog (https://github.com/pgdogdev/pgdog) and it has worked really well for my needs!

We scaled PgBouncer to 4x throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
70•saisrirampur•1h ago•6 comments

Modern Decor May Be Straining People's Brains

https://studyfinds.com/modern-decor-may-be-straining-peoples-brains/
17•downwithdisease•36m ago•3 comments

The early History of the Singular Value Decomposition (1993) [pdf]

https://www.math.ucdavis.edu/~saito/courses/229A/stewart-svd.pdf
29•wolfi1•1h ago•0 comments

Einstein's relativity rules chemical bonds in heavy elements, new research shows

https://www.brown.edu/news/2026-07-09/chemical-bonds-relativity
342•hhs•18h ago•152 comments

QuadRF can spot drones and see WiFi through my wall

https://www.jeffgeerling.com/blog/2026/quadrf-can-spot-drones-and-see-wifi-through-my-wall/
682•speckx•1d ago•217 comments

Sixtyfour (YC P25) Is Hiring

https://www.ycombinator.com/companies/sixtyfour/jobs/bIbgQkL-operations-associate-data-samples-cu...
1•HPMOR•4m ago

Google Search lets creators know more about their reach

https://www.theverge.com/tech/961955/google-search-console-reach-platform-properties
70•herbertl•3d ago•34 comments

Speculations Concerning the First Ultraintelligent Machine (1965) [pdf]

https://languagelog.ldc.upenn.edu/myl/Good1964.pdf
59•zetalyrae•3h ago•30 comments

Tropical forests facing increasing risks of exposure to critical temp thresholds

https://www.pnas.org/doi/10.1073/pnas.2528622123
23•littlexsparkee•1h ago•2 comments

Apple sues OpenAI, accuses ex-employees of stealing trade secrets

https://9to5mac.com/2026/07/10/apple-sues-openai-trade-secret-theft/
1409•stock_toaster•20h ago•759 comments

Otary – Image and Geometry Python Library Now Has Tutorials

https://alexandrepoupeau.com/otary/learn/
72•poupeaua•3d ago•1 comments

Book: RISC-V System-on-Chip Design

https://www.amazon.com/RISC-V-Microprocessor-System-Chip-Design/dp/0323994989
54•xlmnxp•2d ago•18 comments

An update on residential proxies and the scraper situation

https://lwn.net/SubscriberLink/1080822/990a8a5e2d379085/
277•chmaynard•21h ago•295 comments

FCC approves test of space mirror to light night sky

https://theconversation.com/the-u-s-just-approved-a-giant-space-mirror-to-test-sunlight-on-demand...
85•reaperducer•4h ago•86 comments

Digital Deli, 1984 book by early PC hackers and enthusiasts

https://www.atariarchives.org/deli/
17•achairapart•3d ago•1 comments

Ghost Font: A font that humans can read but AI cannot

https://www.mixfont.com/ghost-font
120•justswim•7h ago•97 comments

An iroh powered smart fan

https://www.iroh.computer/blog/an-iroh-powered-smart-fan
151•surprisetalk•4d ago•51 comments

SpaceX wants to launch 100k more Starlink satellites for 100x the bandwidth

https://www.zdnet.com/home-and-office/networking/spacex-wants-to-launch-100000-more-starlink-sate...
260•CrankyBear•23h ago•942 comments

The Victorian War on Rabies

https://www.historytoday.com/archive/feature/mad-dogs-and-englishmen-winning-war-rabies
7•benbreen•4d ago•2 comments

Female US rower completes historic solo journey from California to Hawaii

https://www.theguardian.com/us-news/2026/jul/04/california-hawaii-rowing-solo-journey
3•speckx•1m ago•0 comments

Why it's so difficult to produce American-made medical gloves

https://www.bloomberg.com/news/features/2026-07-07/why-it-s-so-difficult-to-produce-100-american-...
90•helsinkiandrew•7h ago•101 comments

The mask that compiles to nothing: how HotSpots JIT learned to reason about bits

https://questdb.com/blog/jvm-jit-known-bits/
57•rowbin•5d ago•6 comments

Show HN: Learn by rebuilding Redis, Git, a database from scratch

https://shipthatcode.com
11•acley•3h ago•6 comments

Good Tools Are Invisible

https://www.gingerbill.org/article/2026/07/10/good-tools-are-invisible/
511•theanonymousone•1d ago•232 comments

AI 2040: Plan A

https://ai-2040.com/
354•kschaul•2d ago•431 comments

Late Bronze Age Collapse

https://acoup.blog/2026/01/30/collections-the-late-bronze-age-collapse-a-very-brief-introduction/
405•dmonay•1d ago•283 comments

The vintage beauty of Soviet control rooms (2018)

https://designyoutrust.com/2018/01/vintage-beauty-soviet-control-rooms/
177•mvdtnz•11h ago•60 comments

The tech of 'Terminator 2' – an oral history (2017)

https://vfxblog.com/2017/08/23/the-tech-of-terminator-2-an-oral-history/
244•markus_zhang•1d ago•85 comments

Silent speech with ultrasound

https://alephneuro.com/blog/silent-speech
94•chrwn•3d ago•22 comments

Your code is fast – if you're lucky

https://tiki.li/blog/lucky_code.html
111•chrka•6h ago•77 comments