Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jimbocoder/9904252 to your computer and use it in GitHub Desktop.
Save jimbocoder/9904252 to your computer and use it in GitHub Desktop.
some notes and todos for optimizing the linux load balancer project
nginx better with high or low ssl concurrency? high: needs enough to saturate the CPUs, but no point in going higher than that
try high vs low haproxy -> nginx high
try high vs low haproxy -> varnish (this path is only for non-SSL connections, so less important) who cares, but high was better
note: nginx will be limited by the number of connections haproxy sends it, so maybe just set nginx super high, and use haproxy to throttle it. removes that variable from the equation.
dont run irqbalance/ksoftirqd. explicitly assign cpu affinities
net.core.somaxconn is default 128!!!!!!!!!!
do NOT run any firewall
"PRIMARY
stuff
irqs:
external iface: irqs on the last core
internal iface: auto? same core?
haproxy: core sharing L2 cache w/ external iface (second-to-last?)
ssl: all other cores
OTHERS:
internal iface: last cpu
all others: ssl"
do all the cpu assignments using info from ansible
try unix sockets between H-N and/or N-V
try tcp splicing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment