for http://www.supermondays.org/
Scaling CANDDioli wood @coldclimate
View Slide
history
measure things thatmatter
back of a fag packet ifgood enough
have somewhere totest which is not live
use realistic data
ab/siege +ec2 instances
there are no silverbullets
aim for a silvershotgun cartridge
define the scenarios
build a pipeline view
identify symptomsbut solve problems
symptoms are whatyou can see
problems are whatyou can solve
bad new:the problem is yourcode
good news:thus you can fix it
do less big thingsless often
do frequent thingsmuch faster
avoid waiting
pull less data
cache the painfulthings
cache: in memory
cache:redis/memcache
cache: url/browsercache
hunt collisions
use the tools
iostat
sar -P
strace -p
iftop
xdebug + webgrind
statsd
mongotop
mongosniff
tail -100000 mongodb.log | awk -F' ' '{print$NF}' | grep ms$ | sed's/ms//g' |sort -n | tail-20 | xargs -I {} grep {}ms$ mongodb.log
and the big gestures
nginx
nodejs
redis
aim: loosely coupledcomponents whichare horizontallyscalable both on boxand by box
BULLSHIT
aim: fast enough formedium termbusiness needs
aim: not to waste timein a geek circle jerk
result: 10x thethroughput
result: 2000 non-trivial inbound eventsa second
good luck