Settings

Theme

Ask HN: What is your high performance server setup?

1 points by hmm-interesting 3 years ago · 3 comments · 1 min read


https://news.ycombinator.com/item?id=32439601

After reading this, I am wondering, how do you configure your linux server for high throughput API? I am struggling with 10k concurrent request with node.js on c6i.4xlarge and one ElastiCache redis cluster. I can't imagine handling 50k/100k concurrent request with single server.

minhmeoke 3 years ago

Profile your server and figure out what the bottleneck in your app is: https://nodejs.org/en/docs/guides/simple-profiling/

Also, consider building the ElasticSearch index on another server than the one serving live traffic.

icedchai 3 years ago

Are you maxing out all cores? Perhaps try running multiple processes.

  • hmm-interestingOP 3 years ago

    Yes (using pm2). I have a very good performance (req/sec) for 100/200 concurrent request. But it is a disaster for high concurrent requests.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection