News for hackers. Stuff that matters.
Re:Peter Molyneux’s staff work 36 hours non-stop by jpatokal on Tuesday November 13, 2012 @10:23PM (#4781873)
Jeebus, what a way to turn a molehill into a mountain. @22cans:

In fact @pmolyneux BEGGED the team to go home but they wouldn't have any of it :) https://twitter.com/22Cans/status/268387590368030721

22 Cans is a tiny startup and they were expecting 10,000 concurrent users tops -- they're at 2 million and counting now, and they have to capitalize on that momentum and not piss off their obviously fanatical players. So they pulled an all-nighter to build and migrate from a single server to a clustered architecture, and hell yeah, if I was in that position I'd do that too.

Seriously, is there another option? If you think the answer is "clock out at 5:01 PM and go home", you shouldn't be in a startup. Obviously pulling 36 hour shifts on a regular basis is not sustainable, but this is precisely the type of situation where it's warranted.

Re:Peter Molyneux’s staff work 36 hours non-stop by vidarh on Wednesday November 14, 2012 @05:23AM (#4782780)
That he "begged" them to go home is suspect. Is he not in charge?

I've sent people home during crunch times before when they demonstrated they were becoming a liability even though they still wanted to keep working.

You don't beg. You tell them that is how it is going to be. Leave or get escorted off the premises.

> Seriously, is there another option?

Yes. Send people home for some sleep and resume. Unless the people who stayed were carrying out purely menial tasks, odds are having them on the job 36 hours straight got far less work done than if they'd taken reasonable breaks. Sure, you can pull more than 8 hours now and again. Sure, you can even pull all nighters now and again.

But over a 36 hour period the vast majority of peoples productivity at complex tasks will nosedive well before half way, and stay flat to even negative in jobs like software development, as you slow down other people and negatively impact communications once you get too tired.

If you want the most amount of work done in 36 hours, you don't make people work the whole 36 hours.

Re:Peter Molyneux’s staff work 36 hours non-stop by ghshephard on Wednesday November 14, 2012 @08:20AM (#4783162)
Actually, if you enter it well rested the first 36 hours (with a couple 5-10 minute catnaps) can be quite productive, with only minimal reduction in productivity. Particularly if you get into the "zone."

It's after that 36 hours, that you need to get about 10-12 hours sleep to get caught up, and then have a few sane days.

Before we do complex cut over onto a new software system, we usually make sure all of our software engineers are very well rested leading into a friday night, in case we've got a couple all nighters ahead of us.

Anybody who tries to do back-back 36 hour death-marches with only 5-6 hours of sleep in between is setting themselves up for the seriously reduced productivity you've described. Nothing good ever seems to come of that.

So - in this scenario, I think they did precisely what they should have, but they shouldn't push their luck.

Re:Peter Molyneux’s staff work 36 hours non-stop by fatbird on Tuesday November 13, 2012 @11:26PM (#4782018)
The question is why did they assume 10k concurrent users, or plan for that to be the cap handled under the current architecture? Any competent project manager should have said "let's pretend we're massively successful... how will it work then?" and have some contingency plan in place so that they're not trying "experimental" fixes.

The flaw here isn't the heroic efforts, it's that heroic efforts were needed. In the days of cloud based architectures, it's a lot easier to be ready for massive horizontal scaling than it used to be, so much so that being unready is malpractice.

Re:Peter Molyneux’s staff work 36 hours non-stop by Negitivefrags on Tuesday November 13, 2012 @11:37PM (#4782044)
Assuming massive success is a stupid move. The majority of the time you are not that successful. The ground is littered by projects that spent vast sums of money (and more importantly time) designing for load they never needed to handle before release.

In about a month my company will be releasing an online game. We think we will get about 15-20k concurrent users in the first few days, but we will be testing the realm for as high as 50k concurrent users using load testing bots.

What will happen if we suddenly get 100k or 200k concurrent users? Even throwing more hardware at the problem might not solve it immediately if there is some new bottleneck we haven't found before.

Testing the realm for more than 50k concurrents and then spending engineering effort required to make it work will consume time and effort that we can't afford to spend. All for an outcome that is unlikely to occur.

Re:Peter Molyneux’s staff work 36 hours non-stop by biot on Wednesday November 14, 2012 @04:14AM (#4782618)
As long as you've put in enough consideration to avoid painting yourself into a corner with your system architecture so that you know how you'd scale the system should the need arise, you don't need to invest the engineering time up-front to actually build it. However, if you don't understand how your application is going to scale then you might be totally screwed by bad architectural decisions.

For example, you might assume that the data for all concurrent users fits within RAM on a single server. It's one thing to plan for an 8GB server for 50K concurrent load and then have to scale the RAM to 16GB, 32GB, 64GB, 128GB, and so on. But if your RAM usage is O(n^2) for n concurrent users and both your concurrent user count and the average data stored per user increases such that you need hundreds of terabytes of RAM on a single server in order to continue to function, maybe putting in a modicum of up-front work would have paid off.

Re:Peter Molyneux’s staff work 36 hours non-stop by Negitivefrags on Wednesday November 14, 2012 @05:30AM (#4782801)
I'm not in any way saying that you shouldn't plan for the future. We certainly have designed everything wherever possible not to get in the way of future scaling. It's just the problems you can't predict are what really get you.

For example, in theory the first "designed in" limitation that our architecture has should kick in around 1.5 million concurrents. There is a service in the backend that, due to the way it is designed, could never possibly handle more concurrents than that without redesigning some pretty core internals.

In reality though, when we get to 2 orders of magnitude less concurrents then that the realm starts to develop issues that we are currently resolving.

So yes, don't design things that can't scale, but don't expect your designs to actually scale without serious engineering effort.

Re:Peter Molyneux’s staff work 36 hours non-stop by fatbird on Wednesday November 14, 2012 @12:10AM (#4782106)
Assuming massive success is stupid, but testing for it seems prudent. Given how easy it is to spin up EC2 instances generate bot-load, even just to see what'll happen or to find the collapse point, seems so straightforward as to be routine. And as the commenter below observes, the Curiosity interaction model requires high server load for all interaction.
Re:Peter Molyneux’s staff work 36 hours non-stop by btilly on Wednesday November 14, 2012 @12:47AM (#4782188)
The problem with your theory is that there are lies, damned lies, and load tests.

Any sensible app is going to have caching layers. A simple load test is going to just be a really good exercise of the caching layers. By contrast a complex load test with lots of calls to do really random stuff is going to stress you out in entirely unreasonable ways. And finding a realistic balance of traffic is difficult unless you've simply sampled real traffic - which you can't do until after you've generated some.

Re:Peter Molyneux’s staff work 36 hours non-stop by bowyakka on Wednesday November 14, 2012 @01:40AM (#4782301)
This!

I cant agree with this more, unless you approach me with an experiment that would put most science to shame I do not value your use of Jmeter/Tsung/Siege/Rando-Python-Script. If you test plan does not have pauses in it, and you are not engineering a nuclear reactor I probably wont even start the conversation.

.... At $DAYJOB, when we were putting together a new search engine we spent some time upfront putting in a lot of tooling to worry about and test performance every step of the way. Some of this tooling was built around jmeter and focused on generating realistic test plans (which we could derive from the already operational existing search engine). It was a neat infrastructure it tracked everything by commit, captured all manner of metrics and used huge datasets, mined from the logs, built out with markov models. Everything we reported into an install of the software that runs http://speed.pypy.org, we thought we had it conquered.

Yet it was so flawed! Data would get stale, models would break, caches invalidated datasets and much much more.

It was funny at the same time I wrote a tool that we now know as darklaunch, this tool is stupid simple, it captures incoming traffic to the production system with pcap, and then (after a little mussing with it) sends it through to a always on test cluster. Yet its this tool that produces all the load, has all the weird user behavior, never gets out of sync and can run load, soak, endurance and impact tests.

Guess which one we use to test out new software, or new features, or to tune a garbage collector in as close to production as possible ?

I have not started Jmeter now in over a year, its been no great loss; sure we have microbenchmarks where they matter but for everything else you often hear the words "darklaunch it"

Now for sure we have the luxury of having real traffic to use and abuse, but if you don't have real traffic then realise you are using a scrying device anyhow and I will bet you good money your assumptions are wrong.

Re:Peter Molyneux’s staff work 36 hours non-stop by reidrac on Wednesday November 14, 2012 @03:15AM (#4782485)
I totally agree. There's nothing like reality and customers doing absurd things to break stuff you'd never imagined that could break.
Re:Peter Molyneux’s staff work 36 hours non-stop by Negitivefrags on Wednesday November 14, 2012 @05:06AM (#4782748)
We will throw bots at the servers until they fall over, but at any point after 50k concurrents we will not devote engineering time to fixing it.
Re:Peter Molyneux’s staff work 36 hours non-stop by anigbrowl on Wednesday November 14, 2012 @12:18AM (#4782122)
Test for the big numbers. With server virtualization you don't have to buy the hardware ahead of time so there's no reason not to do so. Even if it doesn't work at more than 50k currents, you may as well find out whre the failure points are ahead of time rather than when your getting squeezed up against them.
Re:Peter Molyneux’s staff work 36 hours non-stop by angrycoder on Wednesday November 14, 2012 @01:16AM (#4782253)
Because people make mistakes? Aren't people allowed to make mistakes anymore?

Most software developers love solving problems. When presented with a tough problem they don't mind skipping out on a few dinners at home or not watching the latest sports ball game. It is just being a developer, not some kind of malpractice, or slave driving, or not having read enough mythical books about herding cats.

Shit goes wrong sometimes, it is in some peoples nature to want to fix the problems.

Re:Peter Molyneux’s staff work 36 hours non-stop by jpatokal on Tuesday November 13, 2012 @11:37PM (#4782046)
10,000 concurrent users within a day of release is massive success in today's application market. Engineering a system to handle an order of magnitude more traffic than you expect is sensible; engineering it to handle three orders of magnitude more than you expect would, virtually always, be ridiculously wasteful.

Also, Curiosity is not your average horizontally scalable web app, because all the users are continuously interacting with the same data set. Scaling this up to 2 million concurrent users would be a challenge even with time on your hands.

Re:Peter Molyneux’s staff work 36 hours non-stop by seivan on Wednesday November 14, 2012 @12:40AM (#4782172)
Very off topic, but what are your thoughts on this;

I built something alone for both the client (iOS with Cocos2d) and server (Ruby, MongoDb, Redis) that managed 3k users on release for a full day. The app was only for a day (Event app for an ad agency)

This took three weeks to develop. The client had 3d graphics and a custom map coded and drawn from scratch.

Re:Peter Molyneux’s staff work 36 hours non-stop by fatbird on Wednesday November 14, 2012 @12:08AM (#4782100)
As you observe, Curiosity's interaction model implies continuous server load. 10K users actually seems low to me, given that.
Re:Peter Molyneux’s staff work 36 hours non-stop by wallflower on Tuesday November 13, 2012 @10:34PM (#4781899)
Keeping the servers up under heavy load is part of the startup archetype. You have to cross the Rubicon.

> The servers melted. Systrom and Krieger worked a straight 24 hours to keep the app running—in that period 25,000 iPhone users downloaded the free service.

http://www.forbes.com/sites/stevenbertoni/2012/08/01/instagr...

Re:Peter Molyneux’s staff work 36 hours non-stop by Luc on Wednesday November 14, 2012 @03:57AM (#4782575)
The point is that these kind of emergencies ('crunch time') always seem to happen in the games industry. It's _assumed_ that this will happen. Surely the game is not very great _unless_ there is a few months of crunch time!