Application Delivery (ADX)

Reply
Contributor
Posts: 39
Registered: ‎05-04-2009

How do I load balance multiple real server port at the same real server?

I do have a group of real servers and I would like to load balance traffic to multiple http daemons at the same server using listening to different ports. How do I do this and how do I configure my health checks?

Super Contributor
Posts: 316
Registered: ‎05-01-2009

Re: How do I load balance multiple real server port at the same real server?

This is similar to the configuration with real servers. You need to add multiple ports to the real server and you need to bind each of them to the virtual server to load balance to them. Another option is of course to add multiple IP addresses to the real server and to configure every IP address as separate real server at the ServerIron. Let us assume you would like to configure multiple real server ports for your pool of real servers. It is http traffic you would like to load balance based on your post and I would suggest to configure regular health checks for all of the ports first of all - change the protocol to http for all the ports which are not port 80 itself:

server port 80

  tcp

  tcp keepalive 6 2

server port 1234

  tcp

  tcp keepalive 6 2

  tcp keepalive protocol http

Add the ports to the real server and configure the page you would like to request as health check (might be different for every port):

server real rs101 192.168.9.101

  port http

  port http url "HEAD /"

  port 1234

  port 1234 url "GET /something.html"

server real rs102 192.168.9.102

  port http

  port http url "HEAD /"

  port 1234

  port 1234 url "GET /something.html"

And finally: bind everything to the virtual server:

server virtual vs222 192.168.8.222

  port http

  bind http rs101 http rs101 1234

  bind http rs102 http rs102 1234

That is all.

show server real is going to show you that the traffic is hitting all ports:

ServerIron 4G(config-port-1234)#show server real
Real Servers Info
========================

Name: rs101                  State: Active              IP:192.168.9.101:   1
SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0

Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
----    --  -- ------- -------    -------   -------   --------   --------   ----
default UNB 0  0       0          0         0         0          0          0
http    ACT 0  0       15         47        76        9887       5282       0
1234    ACT 0  0       14         42        70        9184       4872       0
Server  Total  0       29         89        146       19071      10154      0


Name: rs102                  State: Active              IP:192.168.9.102:   1
SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0

Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
----    --  -- ------- -------    -------   -------   --------   --------   ----
default UNB 0  0       0          0         0         0          0          0
http    ACT 0  0       14         42        70        9114       4872       0
1234    ACT 0  0       14         42        70        9184       4872       0

Server  Total  0       28         84        140       18298      9744       0

Contributor
Posts: 39
Registered: ‎05-04-2009

Re: How do I load balance multiple real server port at the same real server?

Cool! Thx... I am going to try this out in a few minutes.

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.