Ask HN: How much traffic to expect if your project hits HN front page?
I have no idea what the population of HN is, not the global distribution thereof. I'm working on a pet project that I would like to show of at some point, and in the event that it actually hits the front page (unlikely as it may be), I would like to know if I have the budget to spin up enough servers to handle the load, or if I should just point people at the github repo.
When other people have had their project show up on the front page, is there any pattern of how many concurrent users you topped out at, and how long most of them stuck around?
46 comments
[ 0.12 ms ] story [ 102 ms ] threadMost people just opened the page and closed it within ten seconds. The second largest group had the page opened for about one minute before closing. Please note the landing page for ngProgress[1] is very simple though and has almost no engagement except demo for the library.
[0] - https://news.ycombinator.com/item?id=6250112
[1] - http://victorbjelkholm.github.io/ngProgress/
I had 7500 unique visitors from HN including the traffic coming from linkbots that re-serve HN links.
With a single node.js (express) app on an EC2 medium instance and I was fine. I got about 10% conversion rate. It was a game with a signup page that required you to register first.
The single instance held up the static content and the app itself for a while. In hindsight I should have used an nginx reverse proxy for the homepage.
--EDIT-- here is the post: https://news.ycombinator.com/item?id=7364927
--EDIT2-- changed conversion rate typo from 1% to 10%
About 750 people signed up to play and there were about 500 games played (a game needs exactly 2 players).
The homepage stayed up the whole time. The stuff that got hurt was some actual gameplay due to an exception that was getting thrown, and I hotfixed.
I'm encouraged by your metrics of about 750 people and about 500 games - I think I could probably afford enough compute power to support that for a limited amount of time.
https://github.com/entaroadun/hnpickup/wiki/Hacker-News-Pick...
Here are multiple screen shots of the google web traffic analytics interface:
http://hnpickup.appspot.com/hnpickup_web_app_statistics_snap...
Never had any trouble serving it (my own code, LAMP, on Amazon micro instance). programmer.reddit.com is a little lighter. Ancillary traffic (other sites) from a front page post might add 10% or so over time.
Almost sure that it means at least one hit within the last 5 minutes.
link: https://www.machete.io/board/view/seed_db_funding_rounds/157...
If you want to track visits from HN, MAKE SURE YOU ENABLE HTTPS BY DEFAULT AND LINK TO AN HTTPS LINK. It is in the http spec that no referrer info is passes from an https site (like HN) to an http site.
One last bit - we are hosted on a small Azure instance, we used loader.io to test what kind of a load we could handle and it shit out pretty quickly. We implemented some output caching and it handled the HN flood just fine (200-300 concurrent users).
I've noticed a significant increase of recurring traffic since (it still hovers at about 5-15GB of traffic a day as opposed to the 2GB before, and there's a steady stream of uploads).
As long as you don't run something obscenely heavy like WordPress or Joomla, and you don't use Apache, you'll probably be fine.
The only real 'optimization' was this classic one:
If you forget that, you're going to have a very bad time when you get hit by a serious traffic surge :)The full configuration is here: https://gist.github.com/joepie91/e5bd63710b5910d2287a
It's really just a mostly standard config, some things pieced together. PHP is configured in on-demand mode, though - iirc, the default PHP configuration that ships with lighttpd on Debian is not.
I got a DDoS-mitigated VPS in Seattle. I believe the plan I have is normally $15, but I used a coupon code so I pay $9.30 recurring.
I can definitely recommend them - however, I should add that their DDoS mitigation appears to suffer from the same issues as all other cheap VPS DDoS mitigation proxies; speeds are not always reliable, and connections occasionally break halfway through. That's not a problem with RamNode though, but with the mitigation provider (CNServers in this case) and/or proxy setup - their own connectivity is rock solid.
Some other hosts I can recommend in a similar vein are RAM Host (http://ramhost.us/) and VPS-Forge (http://vps-forge.com/), in case you want to set up a redundant system of sorts. I've hosted with both for years, and they're both rock solid and very helpful as well. (Relatively) small operations like RamNode, but very reliable.
[1] https://news.ycombinator.com/item?id=8070131
(And also, incidentally, 42 article comments and counting, without a single nasty/sarky/snarky one.)
The same article has since received 500 Facebook likes and was tweeted around 360 times.
https://news.ycombinator.com/item?id=7075537 | 334 points