Tomcat with Cisco ACE Load Balancer
Hi We have been using Weblogic Clusters with Cisco ACE Load Balancer We have 8 managed servers in the weblogic Cluster distributed evenly over two Machines. Load Balancer distributes the load in Robin Round fashion across these 8 managed servers using the concept of Stickiness. Now we need to replace Weblogic with Tomcat. I am looking for a document that would help me replicate this existing architecture in Tomcat environments. Questions that I have: * How many tomcat Installation would be required? * Or it would be single Installation on each machines and then copying of directory for each port? * Will load Balancer see any difference if the request is from a Tomcat or Weblogic? * If yes, then what are changes required in Load Balancer configuration? Pease help me with your suggestions. Thanks Tauqir Akhtar ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ###
Re: Tomcat with Cisco ACE Load Balancer
On 31/05/2011 21:10, Tauqir Akhtar wrote: > Hi > > We have been using Weblogic Clusters with Cisco ACE Load Balancer > We have 8 managed servers in the weblogic Cluster distributed evenly over two > Machines. > Load Balancer distributes the load in Robin Round fashion across these 8 > managed servers using the concept of Stickiness. > > Now we need to replace Weblogic with Tomcat. > I am looking for a document that would help me replicate this existing > architecture in Tomcat environments. > > Questions that I have: > > > * How many tomcat Installation would be required? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc > * Or it would be single Installation on each machines and then copying of > directory for each port? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc Also: I don't know what 'copying of directory for each port' means. > * Will load Balancer see any difference if the request is from a Tomcat or > Weblogic? The app server make requests to the load balancer? Or the load balancer directs requests to each app server? > * If yes, then what are changes required in Load Balancer configuration? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc > Pease help me with your suggestions. Please provide some meaningful information. p > Thanks > > Tauqir Akhtar > > > > ## > > NOTICE: > The contents of this e-mail and any attachments to it may contain privileged > and confidential information from The Jones Group Inc. or its affiliates. > This information is only for the viewing or use of the intended recipient. > If you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution or use of, or the taking of any action in > reliance upon, the information contained in this e-mail, or any of the > attachments to this e-mail, is strictly prohibited. If you have received > this e-mail in error, please immediately notify the sender by replying to > this message and delete it from your system. > > ### > > signature.asc Description: OpenPGP digital signature
RE: Tomcat with Cisco ACE Load Balancer
Thanks Pid for you updates. All I am trying here to implement Tomcat in Load Balanced Environment. WE have Java EE base web Application. And we have two 36 GB web servers. Currently they have WebLogic installed on them. Four Instance of WebLogic managed servers run on each machine. Our Java Appplicatiion is deployed on all of these web servers. Machine 1 : WebsLogicServer1 (Port : 6001) WebsLogicServer2 (Port : 6002) WebsLogicServer3 (Port : 6003) WebsLogicServer4 (Port : 6004) Machine 1 : WebsLogicServer4 (Port : 6005) WebsLogicServer6 (Port : 6006) WebsLogicServer7 (Port : 6007) WebsLogicServer8 (Port : 6008) Right now we are using WebLogic Servers in a Cluster that are loaded balanced by Cisco Load Balancer. In current scenario using WebLogic , if a user sends a request , it goes to the Cisco Load Balancer which directs it to any of the 8 Weblogic Ports in the cluster based on Robin Round Algorithm. We don't have any performance issues as of now. All I am trying here to replicate this setup using Tomcat instead oof weblogic. Please if you can guide me . Thanks Tauqir Akhtar 212 801 8039 -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 01, 2011 7:14 AM To: Tomcat Users List Subject: Re: Tomcat with Cisco ACE Load Balancer On 31/05/2011 21:10, Tauqir Akhtar wrote: > Hi > > We have been using Weblogic Clusters with Cisco ACE Load Balancer > We have 8 managed servers in the weblogic Cluster distributed evenly over two > Machines. > Load Balancer distributes the load in Robin Round fashion across these 8 > managed servers using the concept of Stickiness. > > Now we need to replace Weblogic with Tomcat. > I am looking for a document that would help me replicate this existing > architecture in Tomcat environments. > > Questions that I have: > > > * How many tomcat Installation would be required? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc > * Or it would be single Installation on each machines and then copying of > directory for each port? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc Also: I don't know what 'copying of directory for each port' means. > * Will load Balancer see any difference if the request is from a Tomcat or > Weblogic? The app server make requests to the load balancer? Or the load balancer directs requests to each app server? > * If yes, then what are changes required in Load Balancer configuration? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc > Pease help me with your suggestions. Please provide some meaningful information. p > Thanks > > Tauqir Akhtar > > > > ## > > NOTICE: > The contents of this e-mail and any attachments to it may contain privileged > and confidential information from The Jones Group Inc. or its affiliates. > This information is only for the viewing or use of the intended recipient. > If you are not the intended recipient, you are hereby notified that any > disclosure, copying, distribution or use of, or the taking of any action in > reliance upon, the information contained in this e-mail, or any of the > attachments to this e-mail, is strictly prohibited. If you have received > this e-mail in error, please immediately notify the sender by replying to > this message and delete it from your system. > > ### > > ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat with Cisco ACE Load Balancer
> From: Tauqir Akhtar [mailto:takh...@jny.com] > Subject: RE: Tomcat with Cisco ACE Load Balancer > All I am trying here to implement Tomcat in Load Balanced Environment. > Please if you can guide me . Pid's words still stand: "Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc." You're not going to get any kind of definitive answer on a support mailing list. You need to set up a prototype Tomcat cluster or two, test it with a simulated load that's as close to your real-world traffic as you can get, fix whatever problems you find, and repeat until you're happy. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat with Cisco ACE Load Balancer
- Original Message - > From: "Caldarale, Charles R" > To: Tomcat Users List > Cc: > Sent: Wednesday, June 1, 2011 1:16 PM > Subject: RE: Tomcat with Cisco ACE Load Balancer > >> From: Tauqir Akhtar [mailto:takh...@jny.com] >> Subject: RE: Tomcat with Cisco ACE Load Balancer > >> All I am trying here to implement Tomcat in Load Balanced Environment. > >> Please if you can guide me . > > Pid's words still stand: > > "Impossible to say, we don't know anything about your application, > server spec, environment, current performance, etc etc etc." > > You're not going to get any kind of definitive answer on a support mailing > list. You need to set up a prototype Tomcat cluster or two, test it with a > simulated load that's as close to your real-world traffic as you can get, > fix whatever problems you find, and repeat until you're happy. > > - Chuck I'll go a little further out on the limb than Chuck and Pid. You can run multiple Tomcats from one "installation". See RUNNING.txt in the current 7.0.x or 6.0.x distribution on how to do this. That being said, the other comments are spot on. Here are some considerations that you need to deal with. 1. Does your application make use of EJBs? If so, then Tomcat may not be the right choice. 2. Does your application make use of distributed transactions? If so, you can make Tomcat work with some additional applications, but again it may not be the right choice. 3. How many Tomcats? As Chuck and Pid have pointed out this is application-dependent, and will require testing on your part. 4. Sessions? Does your application use sessions? If so, how are they handled in a cluster of Weblogic servers? There is documentation on how to set up clustering on the Tomcat web site. 4. Changes to Cisco ACE configuration? First of all, this is an ACE question. Is the round robin modified by stickiness? If so, does that stickiness depend on cookies sent by the Weblogic server? Again, this is an application-related question. I'm sure I can think of a lot more questions given time. However, these questions should help you start thinking along the right lines. Once you've answered these (and other) questions, then you can ask specific questions on the list, such as: 1. I'm running 4 Tomcat 7.0.14 instances on a single server. Here are my server.xml files. I'm getting the following exceptions when trying to start the servers. What am I missing? 2. What's a good way to start multiple Tomcat 7.0.14 servers at boot time on a RedHat Linux system (version, etc.)? For load testing, you could use JMeter and the access log sampler to generate tests (you do keep access logs, right?). Hopefully this is enough to get you started. The other solution is to pay someone to do this (hint, it's not cheap). I'm sure there are people on the list (me included) who would do this for a fee. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat with Cisco ACE Load Balancer
This looks looks like a nice time to look at your existing traffic and get actuals of 1) Hits per second 2) Bandwidth usage Then use your access logs (or if you have a test suite - use that ... guessing owning 8 weblogic instances probably means there was a budget to own a test suite) to determine the load to hit a single tomcat instance. Now stress test that single tomcat instance. Now you have a baseline of what a single tomcat can do. Can a single instance handle all the traffic? if so - you are done since you have a second server available you now have failover/redundancy. if your still reading to this point - the above is a lie. [ok - not a lie ... just not completely accurate] We don't know how session management is handled. If session management is clustered where both tomcats need to handle the other tomcat's sessions in failover ... then you have more performance testing todo. Because the overhead to replicate sessions may overwhelm the server. (via cpu, network, or both) If you are doing sticky management where a server goes down and all the sessions are lost ... then - you actually are done your testing. (and can easily scale too - minus that one pesky side effect of session loss) [As other mentioned too ... Tomcat is just a servlet container - if your using any other J2EE features - they might not be readily available on Tomcat.] [I have a suspicion that you can run one tomcat on each server with no problem and greatly simplify the existing setup.] -Tim On 6/1/2011 4:08 PM, Tauqir Akhtar wrote: Thanks Pid for you updates. All I am trying here to implement Tomcat in Load Balanced Environment. WE have Java EE base web Application. And we have two 36 GB web servers. Currently they have WebLogic installed on them. Four Instance of WebLogic managed servers run on each machine. Our Java Appplicatiion is deployed on all of these web servers. Machine 1 : WebsLogicServer1 (Port : 6001) WebsLogicServer2 (Port : 6002) WebsLogicServer3 (Port : 6003) WebsLogicServer4 (Port : 6004) Machine 1 : WebsLogicServer4 (Port : 6005) WebsLogicServer6 (Port : 6006) WebsLogicServer7 (Port : 6007) WebsLogicServer8 (Port : 6008)