Friday, December 7, 2007

And ... we're back.

Hey guys -- just want to update you all to let you know that we successfully switched over to the new servers. While RPI players already noticed that we'd moved, we decided to wait a few days to make sure everything worked properly before we officially announced. Over the past few days, we've re-added the dynamic map (when our servers couldn't handle the load we had to replace the map with an image), 6X-ed the number of turns for RPI a day, and un-paused Rice. The result? We're functioning fine and considering re-launching the ILC soon.

A lot's changed though. From a non-technical perspective (which is how this article is written), it probably sounds easy to add additional servers. But, there's a good deal more that goes into scaling out than just throwing more money at hardware. We had to rework some of the back-end -- particularly the application's interactions with the database -- so as to allow it to operate on many computers approximately as it would on a single one.

So how is this done? I usually save the gory details for the second date, but we arranged our servers into what's known as a master/slave configuration. We separated our servers into master and slave servers. The slaves hold read only copies of the data on the masters and constantly check with the masters for updates. Meanwhile, the masters write new data. So, any time you sign up for a new account, move a unit, or post a chat, your action is written to the master. When you load a page, chances are you are loading content served from a slave. If you're curious for a longer explanation, by all means Google (you should probably leave safe search on if you're in class).

Certain challenges must be overcome during this process. Unless appropriate precautions are taken, a system might fail if a user hits one server, and then another upon reload. Data can show up incorrectly if a slave database hasn't yet copied changes from the master. A data collision can occur if the database tries to insert two pieces of data to the same point. Or, a major bottleneck or single point of activity can bog down everything as traffic increases. GoCrossCampus was originally built to operate on a single server - and so we spent a lot of time planning solutions, researching and coding to make the transition as smooth as possible.

Over the past month, we optimized, cached and moved towards stateless interactions with the database. We added indexes to our tables, made code more efficient, fixed a lot of small bugs, separated out static content (CSS, JavaScript, Images) and began transmitting compressed content.

We've had to handle a couple minor glitches - and had to take the site down for a few minutes once. But we haven't run into any major problems yet. Overall we've been very pleased. Since December 1st (the day we switched to the new servers), visits have more than doubled, page views have 5X-ed and our servers are holding up strong.

On that note, let the games (re-)begin!

14 comments:

Anonymous said...

scaling out THAN just throwing more money

Grammar is cool, even for comp sci types

Sean Mehra said...

Haha. Grammar rulez! But it's also fun to break a rule sometimes :P

Coach Factory said...

hollister, karen millen, soccer shoes, herve leger, lululemon, celine handbags, new balance shoes, ferragamo shoes, vans, nike air max, abercrombie and fitch, hogan, wedding dresses, mcm handbags, ghd, converse shoes, ugg boots, reebok outlet, oakley pas cher, ray ban pas cher, rolex watches, louis vuitton, ugg, soccer jerseys, insanity, louis vuitton, yoga pants, bottega, lancel, ugg boots, mont blanc, marc jacobs, air max, juicy couture outlet, p90x3, birkin bag, hermes, mulberry, north face outlet, supra shoes, jimmy choo, nfl jerseys, valentino, timberland, asics gel, chi flat iron, montre pas cher, ralph lauren, nike free, beats by dre

Coach Factory said...

tiffany and co, longchamp, michael kors, louis vuitton outlet online, kate spade outlet, ray ban, chanel handbags, true religion outlet, polo ralph lauren outlet, nike shoes, oakley sunglasses, coach outlet store, polo ralph lauren, jordan shoes, louis vuitton handbags, louboutin, coach outlet, ray ban sunglasses, tory burch outlet, toms shoes, air max, ray ban sunglasses, coach factory, oakley sunglasses, nike air max, oakley sunglasses, burberry outlet online, true religion, nike free, air max, louis vuitton, coach purses, ralph lauren, prada outlet, coach factory outlet, louboutin, michael kors outlet, burberry, longchamp outlet, oakley sunglasses, true religion jeans, gucci outlet, air jordan, michael kors outlet, oakley sunglasses, louboutin, burberry outlet online, nike air max, nike free, prada handbags

Coach Factory said...

ray bans, cheap oakley sunglasses, oakley sunglasses cheap, gucci, canada goose, moncler outlet, moncler, oakley vault, oakley sunglasses outlet, cheap oakley sunglasses, raybans, canada goose, oakley sunglasses outlet, canada goose, oakley outlet, cheap sunglasses, cheap oakley sunglasses, oakley sunglasses outlet, ralph lauren, ray ban, oakley sunglasses cheap, oakley sunglasses cheap, moncler, moncler, cheap sunglasses, oakley vault, canada goose, cheap sunglasses, ray ban, oakley sunglasses outlet, oakley sunglasses cheap, ray ban outlet, ugg boots, oakley outlet, oakley sunglasses cheap, oakley vault, oakley vault, oakley sunglasses outlet, canada goose outlet, oakley outlet, cheap sunglasses, oakley vault, oakley, louboutin,

co wendy said...

christian louboutin shoes, cheap jordans , Discount LV Handbags, Christian Louboutin Bois Dore, cheap christian louboutin, ugg soldes, cheap nike jordan shoes, uggs outlet, Bags Louis Vuitton, ugg pas cher, ugg australia, ugg boots, christian louboutin, Discount Louis Vuitton, wholesale jordan shoes, Cheap Louis Vuitton Handbags, Cheap LV Handbags, discount nike jordans, ugg, uggs on sale, discount christian louboutin, christian louboutin remise 50%, Christian Louboutin Daffodile

Xianjun Ranqin said...

qihang0924,football shoes
kate spade handbags
tod's shoes
moncler outlet
christian louboutin shoes
nike free runs
mizuno running shoes
michael kors handbags
adidas superstar
ugg boots clearance
fitflops sale clearance
pandora bracelets
nike store uk
nike huarache
giuseppe zanotti sneakers
pandora jewelry
coach outlet
nike air max 90
juicy couture
uggs boots on sale
louis vuitton handbags
nike air force 1
cheap oakleys
hermes belt
adidas superstars
marc jacobs
louis vuitton borse
mont blanc
q

林磊 said...

2015-10-23leilei
Ray-Ban Sunglasses
Jordan 3 Retro For Cheap
Michael Kors Handbags Outlet Online
michael kors outlet
Canada Goose Outlet Online
nike shorts,nike hoodies,nike town,new nike shoes,nike tennis shoes,air max 97,nike shop,nike basketball
Jordan Retro 13 Hot Sale
louis vuitton outlet stores
michael kors outlet online
Coach Factory Outlet
ray-ban sunglasses,ray ban sunglasses,ray bans,rayban,ray ban wayfarer,raybans,ray ban glasses,ray ban aviators,ray ban clubmaster,ray ban eyeglasses,cheap ray bans,ray bans sunglasses,ray ban aviator,ray bands,fake ray bans,ray ban prescription glasses,ray ban outlet,ray ban canada,ray ban sunglasses sale,ray ban sale
cheap uggs
michael kors uk
mihchael kors bag
fitflops sale clearance
louis vuitton outlet online
Abercrombie Outlet Store Online
authentic louis vuitton handbags
jordan shoes
michael kors outlet
oakley sunglasses cheap
tory burch sale
michael kors uk
uggs outlet
cheap ugg boots
cheap ugg boots
Louis Vuitton Handbags Official Site
Michael Kors Outlet Online Sale
ralph lauren uk
Air Jordan 8

ninest123 Ninest said...

ninest123 12.09
ray ban sunglasses, michael kors outlet online, michael kors outlet online, burberry handbags, uggs outlet, christian louboutin uk, tiffany and co, michael kors outlet, louis vuitton outlet, louis vuitton outlet, replica watches, tory burch outlet, louis vuitton, ray ban sunglasses, christian louboutin, cheap oakley sunglasses, tiffany jewelry, uggs on sale, replica watches, nike free, christian louboutin outlet, nike outlet, louis vuitton outlet, polo ralph lauren outlet online, louis vuitton, oakley sunglasses, ray ban sunglasses, longchamp outlet, nike air max, uggs outlet, prada outlet, oakley sunglasses, longchamp outlet, nike air max, christian louboutin shoes, michael kors outlet, ugg boots, jordan shoes, oakley sunglasses wholesale, gucci handbags, michael kors outlet online, longchamp outlet, ugg boots, burberry outlet, prada handbags, oakley sunglasses, michael kors outlet online, polo outlet

ninest123 Ninest said...

guess pas cher, ray ban uk, nike air max, true religion jeans, nike air force, hogan outlet, converse pas cher, sac hermes, nike tn, nike blazer pas cher, nike roshe run uk, michael kors, longchamp pas cher, burberry pas cher, abercrombie and fitch uk, sac longchamp pas cher, oakley pas cher, sac vanessa bruno, michael kors pas cher, north face uk, nike huaraches, louboutin pas cher, michael kors outlet, coach outlet, nike free run, new balance, nike free uk, ralph lauren uk, lululemon canada, polo lacoste, mulberry uk, hollister uk, jordan pas cher, nike trainers uk, north face, timberland pas cher, air max, nike air max uk, polo ralph lauren, ray ban pas cher, coach purses, nike air max uk, coach outlet store online, nike roshe, michael kors, true religion outlet, true religion outlet, hollister pas cher, vans pas cher, true religion outlet

ninest123 Ninest said...

north face outlet, converse, soccer jerseys, nike air max, ferragamo shoes, mont blanc pens, babyliss, new balance shoes, abercrombie and fitch, p90x workout, giuseppe zanotti outlet, chi flat iron, iphone cases, nike air max, jimmy choo outlet, insanity workout, valentino shoes, asics running shoes, ray ban, vans outlet, mac cosmetics, hermes belt, ralph lauren, iphone 6s plus cases, bottega veneta, gucci, herve leger, iphone 6 plus cases, ipad cases, nfl jerseys, nike roshe run, beats by dre, north face outlet, baseball bats, iphone 5s cases, wedding dresses, ghd hair, hollister, celine handbags, oakley, hollister clothing, instyler, timberland boots, iphone 6s cases, s6 case, mcm handbags, soccer shoes, reebok outlet, vans, lululemon, louboutin, iphone 6 cases

ninest123 Ninest said...

pandora uk, ugg uk, canada goose jackets, thomas sabo, juicy couture outlet, canada goose, supra shoes, barbour uk, louis vuitton, louis vuitton, louis vuitton, doudoune moncler, canada goose outlet, canada goose, pandora jewelry, coach outlet, replica watches, moncler, converse outlet, louis vuitton, moncler, karen millen uk, canada goose, ugg pas cher, lancel, canada goose uk, ugg, moncler outlet, canada goose outlet, toms shoes, pandora jewelry, swarovski crystal, barbour, doke gabbana, marc jacobs, moncler uk, montre pas cher, moncler, moncler outlet, louis vuitton, ugg,uggs,uggs canada, hollister, juicy couture outlet, ugg,ugg australia,ugg italia, swarovski, links of london, canada goose outlet, pandora charms, moncler, wedding dresses
ninest123 12.09

Unknown said...

lions jerseys
cheap uggs
supra shoes sale
cowboys jerseys
dallas cowboys jersey
michael kors uk
pittsburgh steelers jersey
coach outlet
ugg boots
ugg outlet

shengda xu said...

tory burch outlet online
yeezy shoes
coach factory outlet
pandora charms outlet
air max shoes
jordan retro
yeezy boost 350
nike uk
clarks shoes outlet
mulberry
xsd7.28