Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Hosting and the Woes by Mind Map: Hosting and the Woes
0.0 stars - 0 reviews range from 0 to 5

Hosting and the Woes

Speakers

Tom Mornini (Engine Yard)

Ezra Zygmuntowicz (EngineYard)

Jamie van Dyke (Engine Yard)

Rails problems

active_record

User.find(:all).each do |leak|, development, 20 recors, production, millions of record, no indexes (sometimes), index your foreign keys!

ferret

indexes corrupted

only solution: switch to sphinx, plugin that uses deltas to keep the index up tu date??

image science

http://nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us

hodel 3000

alternative logger

default mode is debug mode

http://nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us

how much traffic can you handle?

digg

10.000+ visitors

no signups

TechCrunch

1.000+ visitors

RubyInside/Flow

500-1000 visitors

no signups

TV brings special traffic

2000+ connections!

how much traffic?

no answer

solutions

cache cache cache

file io down

deployment

eycap

extra tasks for capistrano, ferret, mongrel, memcached, nginx

ebb vs mongrel vs thin

ebb, extremely fast, not production ready

which one to choose?, is more important to concern about the application, architecture, etc, small differences

questions

nginx

no problems with nginx (a lot with ferret)

Superflipados con nginx

passenger

interesting (garbage collector)

more interesting: rubinius and mod_rubinius

memory usage more mongrels or less?

not concern about memory

more than 3 mongrels per cpu is useless

if you need more mongrels then probably you have problems in yout application

static files need to be local or cluster areas?

File distribution systems (NFS, samba,etc...)

Works like locally (filesystem abstraction)

handle asyncronous proccess, bg processes

background-rb naive, doesn't scale

BJ (background job) is the way to go

distribuite workload in the server farm

everything virtualized