Re: [Mongrel] Why Rails + mongrel_cluster + load balancing doesn'twork for us and the beginning of a solution

2006-09-25 Thread snacktime
I was taking a look at the source for mod_proxy_balancer this evening,
and it looks like the simplest solution to this whole problem is to
just add another balance method.  The functions that determine what
balance member gets the next request are pretty short.  I'm a pretty
bad C programmer, but I subscribed to the apache-dev list this evening
and maybe I can get someone there to assist me on the finer points.

From what I saw, it looks like you could keep an array of balance
members that are handling a request, and then implement a short wait
cycle if all the members are busy.  Have it write out a warning to the
apache log when it has to wait so you know when to be adding more
mongrels.  I'll let everyone know how it goes.

Chris
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Why Rails + mongrel_cluster + load balancing doesn'twork for us and the beginning of a solution

2006-09-25 Thread Alexander Lazic
On Son 24.09.2006 23:07, snacktime wrote:

I was taking a look at the source for mod_proxy_balancer this evening,
and it looks like the simplest solution to this whole problem is to
just add another balance method.  The functions that determine what
balance member gets the next request are pretty short.  I'm a pretty
bad C programmer, but I subscribed to the apache-dev list this evening
and maybe I can get someone there to assist me on the finer points.

I think it would be possible to use this setup:

  ++
  |apache_mod_proxy_balance|
  | or any other webserver |
  ++
   |
   V
  ++
  | haproxy maxconn 1 minconn 1|
  ++
  ||
  VV
  +-+ +-+
  |mongrel_rails| |mongrel_rails|
  +-+ +-+

thoughts?!

Pros: haproxy balance thru all mongel_rails
  check the backend if still alive
  it queues the incomming requests

Cons: more complex setup
  you need to manage more programms/tools

Regards

Aleks
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Why Rails + mongrel_cluster + load balancing doesn'twork for us and the beginning of a solution

2006-09-22 Thread Alexander Lazic
On Don 21.09.2006 20:06, Paul Butcher wrote:
 Have you ever use haproxy http://haproxy.1wt.eu/ ?!

In a word, no :-)

 He have the following feature which can help you:

Thanks - sounds interesting. We'll give it a go!

Please let us/me know your experience ;-)

Thanks  Regards

Alex
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Why Rails + mongrel_cluster + load balancing doesn'twork for us and the beginning of a solution

2006-09-21 Thread Paul Butcher
 Have you ever use haproxy http://haproxy.1wt.eu/ ?!

In a word, no :-)

 He have the following feature which can help you:

Thanks - sounds interesting. We'll give it a go!

--
paul.butcher-msgCount++

Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?

MSN: [EMAIL PROTECTED]
AIM: paulrabutcher
Skype: paulrabutcher
LinkedIn: https://www.linkedin.com/in/paulbutcher

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users