cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5169
Views
0
Helpful
27
Replies

how to balance the load between two Web-Servers using CCS 11501

eahmed007
Level 1
Level 1

Dear All,


           Can anyone tell me to balance the load in CSS 11503.My client's having two Web-servers which IP address 10.20.7.53(server1) and 10.20.7.53(Server2).Now i have configured  Load-balancing to balance the load within this two servers.So i configured one VIP(10.20.7.62) in the CSS 11503 to share the load.But whenever client wants to access the application using 10.20.7.62:7001/cm .then they are not able to connect.When they are giving 10.20.7.53:7001/cm and 10.20.7.54:7001/cm  in different Server's IP,then they able to connect the server and application.The two Web-servers are running Web-logic.

Can anyone tell me when clients request for the application using VIP,are they able get the application.From my point of view,I already configured owner,Service and content rules for load balancing.

Please find the attached configuration file for your convenience.

Thanks and regards...


Erfan

2 Accepted Solutions

Accepted Solutions

Firstly try using http://10.20.7.62:7001/cm/

Now lets strip your config back to basics and remove the following from the web-server-L5 content rule

# content Web-server-L5
#    no url "//10.20.7.62:7001/cm/*"

#    no dns bblcarma.bd.bracbank.com

#   balance srcip

Round-robin load balancing is the default and is not what I want you to use for this test as the web application could be breaking as a result of different traffic been send to different servers rather that all been processes by one server per user.

Now from the two server rules add the tcp protocol and port 7001

# service Web-server-1

#   protocol tcp

#   port 7001

# service Web-server-2

#   protocol tcp

#   port 7001

Lastly what is the error message you are getting when trying to load the web page ?

Add these changes to you config and then send me the new config.

G

View solution in original post

Giles is correct with what he said. Thank you.

What you have to configure now is a keep alive for the port your service is using

service Web-server-1
  ip address 10.20.7.53
  protocol tcp
  port 7001
  keepalive type tcp
  active

service Web-server-2
  ip address 10.20.7.54
  protocol tcp
  port 7001
  keepalive type tcp
  active

But  remember like giles said a page might still need to be refreshed from a client side to change the connection to the new server. Unless you are using so javascript push technology like Comet to force a page change from the server. But that is outsie the scope of this thread and would have to be done by your web application developers.

View solution in original post

27 Replies 27

Pablo
Cisco Employee
Cisco Employee

Hi Erfan

The problem is that your web server is running on port 7001 but that was not defined on your configuration with your current configuration all the traffic destined to the VIP will be forwarded to your backend servers in port 80 as well and that's why you never get a response.

Please configure the port under the services so the CSS can do the port translation from 80 to 7001

service Web-server-1
ip address 10.20.7.53
keepalive type http
port 7001
active 


service Web-server-2
ip address 10.20.7.54
keepalive type http
port 7001
active

Besides this change I see that you have a one-arm configuration which most likely will require a source group to avoid asymmetrical routing

# css(config)# group Web

# css(config-group[servers])# vip address 10.20.7.62

# css(config-group[Servers])# add destination service Web-server-1

# css(config-group[Servers])# add destination service Web-server-2

# css(config-group[Servers])# active

You can find further information about LB on one arm on this link.

http://www.cisco.com/en/US/partner/products/hw/contnetw/ps789/products_configuration_example09186a0080093dff.shtml

HTH

__ __

Pablo

Hi Palbo,

           Thanks for your help.I have configured CSS 11501 as you said in your reply.but now i am facing some problem Like whenever i am trying to access the Webserver using http:\\10.20.7.62:7001\cm\.its taking time to download the Web-page and some error showing in some pages.But when access using http:\\10.20.7.53:7001\cm\ or http:\\10.20.7.54:7001\cm\

the Webpage is coming very quick and its is working fine.Can you tell me why its happaning like that.Please assist me.


           Now I am able to get the application using http:\\10.20.7.62:7001\cm\ which is virtual IP for CSS 11503.In the Web-Server which is running using Web logic, there is an option for Listening IP address. So I have given ip address of individual IP address (like 10.20.7.53 in Server1 and 10.20.7.54 in Server2).


In the CSS 11503,I have created Service, Owner and Content rules. In the Content rules i have applied load balance method round robin method which is default for CSS 11503.But CSS 11503 forwarding the request to 10.20.7.53 not 10.20.7.54.But whenever I am giving show service summary or show summary command, then it showing hits in both servers.

Looking forward to your quick response

Thanks and regards..

Erfan

Hi,

       Can you help me on my previous query.I am facing problem.It would be highly appreciated if you help me on this issue.

Thanks and regards..

Erfan

As a test try adding a stick-load-balance from source ip address

# owner bracbank

# content Web-servers

# balance srcip -> add this

Also what OS are the servers and what is their gateway.

Hi,

  Thanks for your reply.The Web servers are running Web-logic on Windows platform and gateway of these servers are router gateway.Please check the attached running configuration file for your convenience.Whenever i am trying to access the webpage using VIP address,then its not coming full Webpage and showing some error.But Whenever i am trying to access using Web-server IP address then its coming without any interruption.Please assist me whether i need to configure anything elase or not.I am eagerly waiting for your reply.

Thanks and regards...

Erfan

Have you tried with adding the balance by src ip address as a test see my post above

Hi,

      I will try to add this balance method (balance scrip) and check whether its working or not.Can you tell me,Is there anything else i need to configure according to my  configuration file .Please check my configuration file if possible.I am  facing problem to solve this and looking for your valuable comments.Please assist me.

Thanks and regards..

Erfan

To be honest your configuration looks fine for a basic two serever blancing setup.

Another option would be to use Advanced load balancing. If your portal application requires that all requests be handled  by the same server, you must enable advanced load balancing for the content  rule. The arrowpoint-cookie method enables the content rule to associate the client to a  server based on the unique service identifier of the selected server.  Use the string command to add a service identifier for each service. Then add the advance-balance command with the arrowpoint-cookie option to the content rule definition.  In Listing 3, the bold text enables advanced load balancing.

Hi ,

         Thanks for your reply.My main problem is that i am not able to get the Web-page using http:\\10.20.7.62:7001\cm\.Its showing some error.I add default load balancer(Round-robin method).As per your suggestion,I add balance srcip method for caching.It would be highly appreciated if you can give me some suggestion for this problem according to my configuration file and Looking for your valuable reply.

Thanks and regards..

Erfan

Firstly try using http://10.20.7.62:7001/cm/

Now lets strip your config back to basics and remove the following from the web-server-L5 content rule

# content Web-server-L5
#    no url "//10.20.7.62:7001/cm/*"

#    no dns bblcarma.bd.bracbank.com

#   balance srcip

Round-robin load balancing is the default and is not what I want you to use for this test as the web application could be breaking as a result of different traffic been send to different servers rather that all been processes by one server per user.

Now from the two server rules add the tcp protocol and port 7001

# service Web-server-1

#   protocol tcp

#   port 7001

# service Web-server-2

#   protocol tcp

#   port 7001

Lastly what is the error message you are getting when trying to load the web page ?

Add these changes to you config and then send me the new config.

G

Hi ,

          Thanks for your update and suggestion.I will add those configuration line and let you know accordingly.But i have some query that if i don't mention url "//10.20.7.62:7001/cm/*" in the content rules then Web-page will be loading or not.

Its been nice to work with you and looking for your valuable comments.

Thanks and regards..

Erfan

Hi,

     Many many thanks to you.its been great to get your support.Now whole web-page is coming without any interruption.now they want to acces using  name like  bblcarma.bd.bracbank.com instead of  http://10.20.7.62:7001/cm/.So for this requirement what i need to configure to resolve the IP.So need your assistance and comments and how the load would be balanced.they want  50% load to one web-server and 50% load to another web-server.So i am bit confused to solve the problem.

I am looking forward to your valuable comments.Please help..!!!!

Thanks and regards...

Erfan

You will not have to add the dns into the load balancer config but rather to your DNS servers to point to the VIP. The webserver must be setup to understand what the DNS name is for example using a Virtual host in Apache with the name resolution to that virtual host

Both server must use teh same DNS host in the web configuration.

How the balancing will work now is to round-robin new connections but keep users on the server they connect to. It sounds like the application you are using have session information and that coudl be what would be serving error in the page load. The way you have it configure now will do 50%-50% load balancing but like I said just keep each client on 1 server.

Is this to be firewalled in any way ?

Glenn

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: