10. comece com nenhum mongrel páginas estáticas pequenas (~7kb) direto pelo gateway server ( nginx )
11. httperf 1998 (!) muito utilizado muito flexível Obs.: quanto mais perto o httperf do seu servidor, melhor
12. httperf -- hog -- server exemplo.com -- port 80 -- uri /files/arquivo.html -- num-conns xxxxx dará um limite máximo de hits/segundo throughput de melhor caso
13. httperf -- hog -- server exemplo.com -- port 80 -- uri /files/arquivo.html -- num-conns xxxxx -- rate yyyy rodar por alguns (~20) segundos checar se rate do output é o mesmo adicione mongréis 1 a 1...
19. check process mongrel_8000 with pidfile mongrel.8000.pid start program = “mongrel_rails cluster::start -C pagestackr.yml --clean --only 8000” stop program = “mongrel_rails cluster::stop -C pagestackr.yml --clean --only 8000” if totalmem > 40 MB for 4 cycles then restart if cpu > 60% for 4 cycles then restart if 3 restarts within 5 cycles then timeout group mongrel
20. check system localhost if loadavg ( 1min ) > 3 then alert if loadavg ( 5min ) > 2 then alert if memory usage > 60% then alert if cpu usage ( user ) > 70% then alert if cpu usage ( system ) > 30% then alert if cpu usage (wait) > 20% then alert
21.
22.
23.
24.
25. mais por vir... Ezra Zygmuntowicz (EngineYard) Bruce Tate (From Java to Ruby)
26. ?! George Guimarães http://pagestacker.com http://blog.georgeguimaraes.com [email_address]