4 ms·
HN hug of death? "503 Service Unavailable" Here's the Google Cache link: http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fmisfra.me%2F201
by golfer 8y ago
HN hug of death?
"503 Service Unavailable"
Here's the Google Cache link:
http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fmisfra.me%2F2017%2F12%2F12%2Fapples-9-dollar-engineering-marvel-no-one-wants%2F&oq=cache%3Ahttps%3A%2F%2Fmisfra.me%2F2017%2F12%2F12%2Fapples-9-dollar-engineering-marvel-no-one-wants http://webcache.googleusercontent.com/search?q=cache%3Ahttps...
- aboutruby 8y agoI'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/2017/12/12/apples-9-dollar-engineering-marvel-no-one-wants/ https://web.archive.org/web/20190408150115/https://misfra.me...
- misframer 8y agoAuthor here. Sorry, resizing my droplet now.
- Nextgrid 8y agoJust 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.
- marcosscriven 8y agoGenerally 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.
- liquidise 8y agoSome 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.
- Nextgrid 8y agoIt actually seems pretty manageable, I'm surprised the site died. You're running Wordpress by any chance?
- misframer 8y agoI’m using Hugo and Caddy. It’s running out of file handles.
- majewsky 8y agoI 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.
- ksec 8y agoMay be consider putting a CDN in front of it? Cloudflare or BunnyCDN. Btw the Site looks great. Simple and Elegant.
- misframer 8y agoThanks! Yeah, will look into a CDN or just hosting it from an S3 bucket.