3 ms·
120K users a day? That's a _lot_ for a rails app. In fact, looking around, I'd be surprised if there were any existing rails applications that serve that many
by bfioca 19y ago
120K users a day? That's a _lot_ for a rails app. In fact, looking around, I'd be surprised if there were any existing rails applications that serve that many. 43things.com seems to max out in the 50K users per day range (on average). The first question I have to ask is do you really need to handle that kind of traffic? If you don't - don't bother trying to scale to that much yet. If you're talking hits, that's a different story... You'll definitely want to know how many concurrent you're getting. For reference, a TechCrunch post generates between 20-50 concurrent hits on an application that renders in ~1s/page (as of Nov 07). Plan for 2x-3x that for digg/reddit traffic.
That TechCrunch load was served with 4 or 5 mongrels. 6-8 is the most I'd recommend running on a dual-core box.
I haven't seen a 1000 concurrent user app since I worked at UPS... so if you have this problem, why are you asking us? You should be hiring someone with the huge amount of money you have. ;)
- goodgoblin 19y agoThanks - the 120K users is more likely the total number of users for the app - so chances are slim of them all using the site at once - but want to plan for the worst. Might be putting together a license deal and just want to make sure that I don't bankrupt myself. So - a metric might be 30 concurrent users for 4 mongrels - 4 mongrels per EC2 server. 120 CCU would be 16 mongrels on 4 EC2 servers, etc. Not that I'd use EC2 - just a convenient constant - load balancing would be tricky.
- blader 19y agoWe do 400K+ users an day on our Rails app, 10MM pageviews, and 200 requests a second. YellowPages.com, which is probably the largest Rails site (yes larger than Twitter) does a lot more than that. I used to buy in to the whole 'scale later' philosophy from 37signals, but after getting burnt by a fast growing application and being down for half a month - capacity planning is definitely worth it over being caught with your pants down right when you're growing.