Google Groups Home
Help | Sign in
Clustering
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - 1 new - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Cheba  
View profile
 More options Mar 19, 8:02 pm
From: Cheba <chebat...@gmail.com>
Date: Wed, 19 Mar 2008 17:02:06 -0700 (PDT)
Local: Wed, Mar 19 2008 8:02 pm
Subject: Clustering
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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ry  
View profile
 More options Mar 19, 8:27 pm
From: ry <ry.d...@googlemail.com>
Date: Wed, 19 Mar 2008 17:27:58 -0700 (PDT)
Local: Wed, Mar 19 2008 8:27 pm
Subject: Re: Clustering
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 to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google