Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

HN hug of death? "503 Service Unavailable"

Here's the Google Cache link: http://webcache.googleusercontent.com/search?q=cache%3Ahttps...



I'm having trouble with the google cache version too, so here is the archive.org version: https://web.archive.org/web/20190408150115/https://misfra.me...


Author here. Sorry, resizing my droplet now.


Just wondering if you can share your stack and what kind of traffic did you get (in terms of requests/second)? Always curious as to how much traffic HN really brings and why some sites stay up and others die.


Some stats from my front-page a month ago:

  - Time on front page: 15 min
  - Views in first 15  min: ~5000
  - Views in first 60  min: ~7000
  - Views in first 600 min: ~11,000
  - Views over the next 5 days: ~5000
HN front pages bring a bunch of users quickly, but it isn't a scale that will cripple moderate hardware with some basic performance tuning (directly serving assets, for example). The tail is also great, fully 3/4 of my post-front-page views come from click-throughs on social.


I saw similar numbers on my server. About 10,000 views over the course of an entire day (derived as total data transmitted divided by the size of one full page load), with the bulk concentrated in the first two hours. My nginx served it without breaking a sweat. Peak CPU usage was at 5% and network load peaked at 1 Mb/s (data at 60-second resolution).

My stack was just nginx serving static files, on a 1/1 VM that also hosts half a dozen other services (XMPP, Gitea, Matrix, Mumble etc.).

It is my belief that everyone who encounters the HN hug of death is doing something wrong.


I used to have a blog that ran on Wordpress (3.0 was I think the current version at the time, this was a while ago) with the APC plugin, served via Apache. An article hit HN and it fell over.

Some time later I had migrated to blogofile and nginx and made it to HN again, the server barely noticed.


It actually seems pretty manageable, I'm surprised the site died. You're running Wordpress by any chance?


I’m using Hugo and Caddy. It’s running out of file handles.


The hugo plugin, or are you running hugo separately?


Separately. I haven't updated it to use the plugin. Thanks for Caddy, BTW!


File a bug, yours is the first we've heard of something like that. And you're welcome!


Generally two possibilities for managing a large load - either a third party blogging provider that can deal with it, or a static site.

Why anyone hosts small blogs on self-hosted VPNs is beyond me - all sorts of problems including security maintenance and peaky load. You can go one further with caching, but that’s yet another moving part that’s not necessary for a simple site.


May be consider putting a CDN in front of it?

Cloudflare or BunnyCDN.

Btw the Site looks great. Simple and Elegant.


Thanks! Yeah, will look into a CDN or just hosting it from an S3 bucket.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: