/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-10 / Cluster/redundancy question

[ << ] [ >> ]

[ Session Cookies / "McMahon, Peter ... ] [ / "Jason Kronstat" ... ]

Cluster/redundancy question
"Fabio Mendes" <ff.mendes(at)gmail.com>
2006-10-27 13:29:06 [ FULL ]
Hello,

I have two pounds running in my site, all working nice.

They are running in carp fashion: there is the primary, responding the
requests and the second that responds only if the first one gets down.

Both are excellent and powerfull machines  (Xeon 3.06, 1Gb RAM, SCSI disks
among other stuffs), and I think that is a really waste of time/money to let
the second one inactive most part of time.

My question is:  is there any kind of software that can permit both proxies
in an active/active state, I mean both machines responding http requests ?
Attachments:  
text.html text/html 608 Bytes

Re: [Pound Mailing List] Cluster/redundancy question
Holger Gläß <holger.glaess(at)asknet.de>
2006-10-27 13:53:54 [ FULL ]
Fabio Mendes wrote:[...]

hi fabio

do on the second machine an xen or similar virtualizer software  there 
can you do the backup for the pound in one session
and in some other sessions you can run what you like.

i run my completly load balancing cluster ( master and server ) in at 
host server with the free vmware-server .
works perfect.


holger

Re: [Pound Mailing List] Cluster/redundancy question
Maciej Bogucki <maciej.bogucki(at)artegence.com>
2006-10-27 14:22:20 [ FULL ]
Fabio Mendes wrote:[...]

You can use heartbeat with two virtual IPs and with two pounds on two 
different servers. Then You can put two IPs of Your servers in 
DNS(round-robin LB). If the first server goes down, heartbeat takes over 
IP address of the first server and will run secound pound on the second 
machine.
It is good idea when You have much more traffic than one machine can handle.
But beaware, that there is no session synchronization between pounds, 
and if Your application is using sassions, it could be a problem.

Best Regards
Maciej Bogucki
[...]

Re: [Pound Mailing List] Cluster/redundancy question
Maciej Bogucki <maciej.bogucki(at)artegence.com>
2006-10-27 16:44:55 [ FULL ]
> I think that session bussiness will cause me some troubles.[...]

If Your appliaction uses fe. JSESSIONID(in java), or PHPSESSID(in php) 
You have problem.
[...]

If You have linux or cisco router behind pound then You can do Load 
Balancing on them.
But if You have low traffic on site, don't warry about that one server
do nothing. Active/Active configuration is much more complicated. If You
have a lot of a apps You can use one pound to LB one group of apps and
the second pound to the second group of apps and failover if one server
dies.

Best Regards
Maciej Bogucki
[...]

Re: [Pound Mailing List] Cluster/redundancy question
Rune Saetre <rune.saetre(at)netcom-gsm.no>
2006-10-27 19:37:10 [ FULL ]
Hi

If you are running several pound instances on different IP addresses you 
can let different machines be master for each of them. That will help 
distrigute the load between servers.

Note that if one server can't handle all the traffic you will be in 
serious trouble if one node fails. For this reason we have the same 
machine being master for all pound instances. This way we will see 
performance problems as soon as they start to appear, so we can fix them, 
and not have them surprise us when one of the nodes go down.

Regards
Rune

---
Rune Sætre <rune.saetre(at)netcom-gsm.no>
NetCom as
..

On Fri, 27 Oct 2006, Maciej Bogucki wrote:
[...][...][...][...]

Re: [Pound Mailing List] Cluster/redundancy question
Simon Slaytor <sslaytor(at)iom.com>
2006-10-27 22:01:57 [ FULL ]
Hi Fabio,

You don't mention the OS your using. Under OpenBSD, I can't comment for 
others, you can use CARP's own mac address load balancing. This works 
great for local LAN access, in this config both servers run identical 
Pound instances, CARP load balances the IP connections between all CARP 
member servers.  However one word of caution as it's a MAC Address load 
balancer it's not much use in a routed environment.

Regards

Simon


Fabio Mendes wrote:[...]

Re: [Pound Mailing List] Cluster/redundancy question
"Fabio Mendes" <ff.mendes(at)gmail.com>
2006-10-27 22:11:21 [ FULL ]
2006/10/27, Simon Slaytor <sslaytor(at)iom.com>:[...]

Hi Simon,

Im using FreeBSD 6.1, which is working fine for me including all carp stuff.

My problem are the session, we have some apps (PHP and coming soon
JAVA as well ) tha use it.

So, I need some kind of "load balancer" that keep all session stuff
correctly among the servers.


thanx guys !


Cheers,

Fabio

Re: [Pound Mailing List] Cluster/redundancy question
Simon Slaytor <sslaytor(at)iom.com>
2006-10-27 23:15:22 [ FULL ]
Hi Fabio,

Sorry I must have missed something, isn't that why your using Pound? I 
thought you wanted to 'load balance' the incoming connections to your 
two Pound boxes, CARP with MAC address load balancing would do this, but 
only on your local lan.

Client -----> CARP Load Balance MAC ---> Local POUND ---> Backend WWW 
server.

Regards

Simon


Fabio Mendes wrote:[...][...][...]

Re: [Pound Mailing List] Cluster/redundancy question
"Fabio Mendes" <ff.mendes(at)gmail.com>
2006-10-28 23:18:32 [ FULL ]
yeah but, what about the sessions stuffs ?

That's my main problem...

Im using OpenBSD as firewall with carp, pfsync and arp balance on 6
firewalls and works great.

But with http sessions is quite different. I have no pfsync to keep
the PHP or JAVA session 'state' between the two pound servers.

Thanx

Fabio

Re: [Pound Mailing List] Cluster/redundancy question
Ted Dunning <tdunning(at)veoh.com>
2006-10-28 23:31:15 [ FULL ]
If you can possibly avoid having the state in the pound, it really helps.

One way to do this (99% of the time) is to use IP source balancing.  This
makes the backend for any  particular client be relatively deterministic.
This vastly decreases the importance of any state on the pound since it
primarily just replicates the deterministic decision of which back end
should be chosen.


On 10/28/06 2:18 PM, "Fabio Mendes" <ff.mendes(at)gmail.com> wrote:
[...]

MailBoxer