Scaling a Rails Application from Bottom Up
Joyent CTO Jason Hoffman Rails Trac changeset 2
첫번째
FreeBSD port - first ruby killer-app
이제는 사람들에게 루비도 서버에서 돌릴 수 있다고 확신을 주는게 필요
Simple, Standard, Open
Fundamental Limits- Money, Time, People, Experience, Power, Bandwith
자주 묻는 질문 - 상용 수준으로 출분하게 stable, reliable한 예? Ruby는 not OS.
long-term viaility - don't do it. 해보고 루비나 레일스를 해서 더 잘되게
ruby -> convert -> other language
right platform for our large scale app. -> how-many large?? not that many. 처음부터 large scale은 없다.
But are these really Ruby or Rails specific? No
not from one interation
ruby는 언어 rails는 framework 좀 더 빠른 interation. refact refact
Scalable. 레고
it's easy to overengineer
Rails는 큰 stack의 일부인데 전체로 인해 비난을 받는다?
easy of management is on a log scale
POWER!
서버의 power 비용을 계산
제한된 전원으로 몇대의 서버나 돌릴 수 있는지?
Network
100Mbps 864만 UV, 1728 PV
2번째
개발자 시점이 아니라 Sysadmin's view
10% rule
infra <= 10% revenue
$10,000를 쓴다면 얼마를 벌어야하는지 push
KISS
standardize....
open echnologies
구축 사례 비디오
Console Server?? Lantronix?
색깔별 케이블
Server?
Storage?
결국 Sun
rack rails?
Solalis
racker?
Virtualization Seriously have to
Xen. VMware. Solaris zones
Solalis lightweight virtualization. FREE
observabablitity tools are unmatched => process level and DTrace
ZFS
Zones Containers
3번째
process-based라 좋다
event driven Mongrel
JRuby in Glassfish -> Netbeans 지원. 자바App 처럼 포장가능. <-- faster. impressive.. 기대
Mongrel
16G Ram 4 AMD Cpu
4 virtual continer -> 10 mongrel 10/CPU
backtick 활용 yaml
database middleware
message busses
Big IPs 몇천개의 mongrel을 관리
Layer 7 and iRules(separate controllers) -> isolate
each controller has their own app servers -> partitioning, federation possible
Free s/w
HA-Proxy
Varnish
Nginx <- preference
asset server pipeline
RDBMS isn't the only thing
Memcached, LDAP! J-EAI(add-up 가능), FileSystem
J-EAI
Erlang-based
App <-> Bus <-> Database
Rails가 XML Parsing Template이 되버렸지만, trade0ff Scale!!
Sun LDAP
Store FIle
-> Hashed directory structures
16 x 256 -> 4096 buckets
DNS
easy way to split customer
Recap
DNS
load balancer
mongrels
다른 databasestore
static은 static에서, Rails는 Rails
layer7
federate separate
History
Last edited on 05/18/2007 03:57 by deepblue
Comments (0)