Clustering

3 views
Skip to first unread message

Cheba

unread,
Mar 19, 2008, 8:02:06 PM3/19/08
to ebbebb
Hello.

I'm rather new to ebb. I've been using mongrel before and I like it.
It's really easy to setup a cluster and use it in production. And I
didn't found anything about ebb clusters. Is there such thing at all?
Or if there is no one how does ebb handle high loads on single
instance?

ry

unread,
Mar 19, 2008, 8:27:58 PM3/19/08
to ebbebb
Hi,

> I'm rather new to ebb.

me too:)

> didn't found anything about ebb clusters. Is there such thing at all?
> Or if there is no one how does ebb handle high loads on single
> instance?

No you should be running multiple instances of Ebb behind a load
balancer. You'd just start them on different ports. I do this with
Monit. So I'd have several entries like this in my monitrc file.

check process myApp4000
with pidfile /home/webuser/myApp/current/tmp/ebb.4000.pid
start program = "/usr/bin/ruby /usr/bin/ebb_rails start -d -e
production -p 4000 -P /home/webuser/myApp/current/tmp/ebb.4000.pid -c
/home/webuser/myApp/current" as uid webuser and gid webuser
stop program = "/usr/bin/ruby /usr/bin/ebb_rails stop -P
/home/webuser/myApp/current/tmp/ebb.4000.pid" as uid webuser and gid
webuser
if totalmem > 120.0 MB for 2 cycles then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
group myApp

check process myApp4001
with pidfile /home/webuser/myApp/current/tmp/ebb.4001.pid
start program = "/usr/bin/ruby /usr/bin/ebb_rails start -d -e
production -p 4001 -P /home/webuser/myApp/current/tmp/ebb.4001.pid -c
/home/webuser/myApp/current" as uid webuser and gid webuser
stop program = "/usr/bin/ruby /usr/bin/ebb_rails stop -P
/home/webuser/myApp/current/tmp/ebb.4001.pid" as uid webuser and gid
webuser
if totalmem > 120.0 MB for 2 cycles then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
group myApp

One for each instance. You start the processes independently.

ry
Reply all
Reply to author
Forward
0 new messages