logoalt Hacker News

edoceoyesterday at 3:38 PM3 repliesview on HN

Any pointers to network configuration to tune? Some TCP stuff? How much does it matter on that VPS network?


Replies

Lukas_Skywalkeryesterday at 5:48 PM

This is a pretty good resource for some basic tuning (mostly buffer sizes and connection count): https://pgtune.leopard.in.ua/

allthetimeyesterday at 4:22 PM

Yeah mostly just keepalives and timeouts, increasing kernel maximums for connections, using Unix sockets directly instead of tcp, using pgbouncer, etc. as always, depends on use case and monitoring and measuring to determine your needs is good.

chasd00yesterday at 4:48 PM

man, i wouldn't worry about tuning something like TCP until you can reliably prove TCP is the bottle neck in performance. That day will likely never come for most companies.