Piranha load balancing floating IP?

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
lkthomas
Posts: 1
Joined: 2011/05/15 04:08:36

Piranha load balancing floating IP?

Post by lkthomas » 2011/05/15 04:21:27

Dear All,

this is my first time to test piranha and I can't understand couple things:
1. how to setup public floating IP address between active and backup piranha node?
2. does piranha nodes have to run on public IP?
3. how to connect active piranha node with backup nodes?
4. does piranha only support http and ftp?
5. do I need to create common login for load monitor so that piranha could login to real servers and check the load ?
6. what is the hardware requirement for piranha to run on heavy loading site? I am using VMs all the time


I am using web gui interface with minor file editing, but I prefer done it with GUI.

Currently running Centos 5.6 x86_64, please advice.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Piranha load balancing floating IP?

Post by pschaff » 2011/05/15 15:34:50

Welcome to the CentOS fora. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users.

While waiting for someone able to answer your questions you might try a [url=https://www.centos.org/search.php?query=piranha&mid=30&action=showall&andor=AND]forum search[/url] and a [url=http://www.google.com/search?q=piranha+load+balancing+centos+OR+rhel+OR+%22red+hat+enterprise+linux%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a]google[/url] or two.

You will also be likely to get a better response if you do more research on your own, or at least report what you have already done, and ask fewer and narrower questions in a topic. What you have asked amounts to requesting a custom HowTo or tutorial.

milosb
Posts: 661
Joined: 2009/01/18 00:39:15
Location: 44 49′14″N 20 27′44″E

Re: Piranha load balancing floating IP?

Post by milosb » 2011/05/16 20:07:14

[quote]
pschaff wrote:
You will also be likely to get a better response if you do more research on your own, or at least report what you have already done, and ask fewer and narrower questions in a topic. What you have asked amounts to requesting a custom HowTo or tutorial.[/quote]
Indeed. I don't think one could get a better answer than the following one (except maybe hire a consultant to get the job done):

[url=http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtual_Server_Administration/index.html]Virtual Server Adminstration[/url]

It's all there.
Hope this helps.

Regards,

Ejant
Posts: 6
Joined: 2007/09/07 00:05:40
Contact:

Re: Piranha load balancing floating IP?

Post by Ejant » 2011/06/16 05:53:29

hi lkthomas!

1. how to setup public floating IP address between active and backup piranha node?

[quote]1. how to setup public floating IP address between active and backup piranha node?[/quote]

piranha do that, on the gui... go to "edit virtual server" then the "virtual ip address" parameter is your floating service ip

[quote]2. does piranha nodes have to run on public IP?[/quote]

No, not necessary. If you have a firewall you can forward packets to your piranha servers.

[quote]3. how to connect active piranha node with backup nodes?[/quote]

via pulse service, i don't remember now which ports does it use

[quote]4.does piranha only support http and ftp?[/quote]

No, you can support anything that you can monitor via a script (bash, sh, perl, etc). I mean, if you know service state (up or down) you can use piranha.

[quote]5. do I need to create common login for load monitor so that piranha could login to real servers and check the load ?[/quote]

That depend on what kind of monitor script will you use. From what i know, piranha does NOT do dynamical load balancing, only by configuration. You can do balancing by number of connections...

Load-balancing Methods

Round robin Distribute jobs equally among the real servers.
Least-connections Distribute more jobs to real servers with fewer active connections. (The IPVS table stores active connections.)
Weighted round robin Distribute more jobs to servers with greater capacity. Capacity is indicated by the user-assigned weight, which is adjusted upward or downward by dynamic load information.
Weighted least-connections Distribute more jobs to servers with fewer active connections relative to their capacity. Capacity is indicated by the user-assigned weight, which is adjusted upward or downward by dynamic load information.

[quote]6. what is the hardware requirement for piranha to run on heavy loading site? I am using VMs all the time[/quote]
i can't tell you with accuracy. I use vm too, but not for heavy usage


if you can read spanish... i've done a howto... http://ejant.blogspot.com/2011/04/cluster-de-alta-disponibilidad-con-lvs.html

Post Reply

Return to “CentOS 5 - Server Support”