Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Load balancing 2 domains

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


nhytro at googlemail

Feb 7, 2010, 11:26 PM

Post #1 of 3 (338 views)
Permalink
Load balancing 2 domains

Is it possible to load balance 2 domains using the reverse-proxy
method, if yes, how exactly?

I have one domain working already, with an information source
configured to use the Python interpreter. It runs on port 8080. In the
docs, this is balanced using the generic balancer, but I did not find
a place to configure the server pool to balance.

In short, given 2 domains:

1. www.domain-a.com
2. www.domain-b.com

A. I would like to have 2 servers for www.domain-a.com running on
ports 8080 and 8082
B. www.domain-b.com would have 3 servers running on ports 9090, 9092,
9094
C. Both domains should use the HTTP revers proxy method to be served.


Thanks


_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Feb 8, 2010, 3:03 AM

Post #2 of 3 (316 views)
Permalink
Re: Load balancing 2 domains [In reply to]

On 08/02/2010, at 08:26, Voltron wrote:

> Is it possible to load balance 2 domains using the reverse-proxy
> method, if yes, how exactly?

It is. Let's see..

> I have one domain working already, with an information source
> configured to use the Python interpreter. It runs on port 8080. In the
> docs, this is balanced using the generic balancer, but I did not find
> a place to configure the server pool to balance.
>
> In short, given 2 domains:
>
> 1. www.domain-a.com
> 2. www.domain-b.com
>
> A. I would like to have 2 servers for www.domain-a.com running on
> ports 8080 and 8082
> B. www.domain-b.com would have 3 servers running on ports 9090, 9092,
> 9094
> C. Both domains should use the HTTP revers proxy method to be served.

The first thing you'd have to do is to add the five back-end servers to the "Information Source" list, so the reverse proxies can access them later on.

Now, you'd have to create two virtual servers:

- In the first one, www.doamin-a.com, you would have to configure a single default rule. It'd use a Reverse HTTP proxy handler. As part of the handler configuration details you'll configure the first two back-end servers. Since you added them previously, yhey will appear at the end of the configuration page.

- The second one will be basically the same. Once you create the virtual server, configure the default rule to use the reverse proxy and set it to use the appropriate Information Sources (backend servers).

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


nhytro at googlemail

Feb 8, 2010, 6:26 AM

Post #3 of 3 (315 views)
Permalink
Re: Load balancing 2 domains [In reply to]

Thanks Alvaro, I´ll try that out!

On Feb 8, 12:03 pm, Alvaro Lopez Ortega <alv...@octality.com> wrote:
> On 08/02/2010, at 08:26, Voltron wrote:
>
> > Is it possible to load balance 2 domains using the reverse-proxy
> > method, if yes, how exactly?
>
> It is. Let's see..
>
> > I have one domain working already, with an information source
> > configured to use the Python interpreter. It runs on port 8080. In the
> > docs, this is balanced using the generic balancer, but I did not find
> > a place to configure the server pool to balance.
>
> > In short, given 2 domains:
>
> > 1.www.domain-a.com
> > 2.www.domain-b.com
>
> > A. I would like to have 2 servers forwww.domain-a.comrunning on
> > ports 8080 and 8082
> > B.www.domain-b.comwould have 3 servers running on ports 9090, 9092,
> > 9094
> > C. Both domains should use the HTTP revers proxy method to be served.
>
> The first thing you'd have to do is to add the five back-end servers to the "Information Source" list, so the reverse proxies can access them later on.
>
> Now, you'd have to create two virtual servers:
>
> - In the first one,www.doamin-a.com, you would have to configure a single default rule. It'd use a Reverse HTTP proxy handler. As part of the handler configuration details you'll configure the first two back-end servers. Since you added them previously, yhey will appear at the end of the configuration page.
>
> - The second one will be basically the same. Once you create the virtual server, configure the default rule to use the reverse proxy and set it to use the appropriate Information Sources (backend servers).
>
> --
> Octalityhttp://www.octality.com/
>
> _______________________________________________
> Cherokee mailing list
> Chero...@lists.octality.comhttp://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.