News for hackers. Stuff that matters.
Re:Who Pays Writers? by overcast on Monday July 22, 2019 @10:48AM (#20498465)
What exactly are sites like these running on, that they can't handle MAYBE a few hundred simultaneous users? I don't get it.
Re:Who Pays Writers? by mooreds on Monday July 22, 2019 @10:58AM (#20498573)
Re:Who Pays Writers? by overcast on Monday July 22, 2019 @11:07AM (#20498687)
Even the cheapest droplet can handle that workload. I've spun up dozens of projects at that level, and few have gotten hugged without any adverse affects.
Re:Who Pays Writers? by rchaud on Monday July 22, 2019 @11:10AM (#20498722)
It's worrying that it's on Digital Ocean and seemingly can't handle at best a few thousand connections. I know HN is a popular site, but I imagine that a good number of people coming across the link today skipped by it.

I've got a $5 droplet on which my personal site is hosted. Is there any way to estimate what kind of load it can handle?

Re:Who Pays Writers? by jnbiche on Monday July 22, 2019 @12:06PM (#20499351)
Has nothing to do with Digital Ocean, and everything to do with how the website is designed (which is often, but not always, a function of what framework was used).

Stick a properly configured nginx or Varnish in front of whatever they're running, and we'd not be having this conversation.

Re:Who Pays Writers? by mtberatwork on Monday July 22, 2019 @01:13PM (#20500086)
Even then, since the cache-control headers are not being set correctly, it would all just by-pass nginx or Varnish anyway.
Re:Who Pays Writers? by jnbiche on Monday July 22, 2019 @07:21PM (#20503198)
Thus "properly configured". However, I actually just look, and at least now, they in fact appear to be setting etags properly, so their HTTP server is returning a 304 on all the static files being served from their domain, despite max-age being set to 0, and the rest of the static files are on CDNs.

That said, nginx caching proxy or Varnish would still be a dramatic help in front of the couchdb instance they're using for their API (since their data isn't constantly being updated, they could do this).

Making a wild-ass guess, I'd say they were running the couchdb on the same droplet as their static file server, and with no caching, the couchdb instance pegged the CPU, causing the HTTP server to fail.

Re:Who Pays Writers? by mooreds on Monday July 22, 2019 @11:13AM (#20498748)
I've used jmeter to load test for cheap. You can spin up a VM and hammer a site pretty good.
Re:Who Pays Writers? by LordAtlas on Monday July 22, 2019 @12:25PM (#20499546)
Re:Who Pays Writers? by throwanem on Monday July 22, 2019 @11:26AM (#20498893)
The problem isn't going to be that it's on DO; the problem is going to be that whatever they're using isn't proxied or optimized to handle the kind of load you get when you're on the HN front page.