Load Balance of Tomcat with Apache by George Fu, UCCS CS 526 Semester Project Spring 2009.

Slides:



Advertisements
Similar presentations
Apache Performance Tuning Part 2: Scaling Out Sander Temme.
Advertisements

Module 7 Advanced Zone Files.
Domain Name System (DNS) Name resolution for both small and large networks Host names IP Addresses Like a phone book, but stores more information Older.
Apache Performance Tuning Part 2: Scaling Out Sander Temme.
ITIS 3110 Jason Watson. Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy.
Web Server Administration
Clustering and load balancing with Apache 2.2 mod_proxy
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Cold Fusion High Availability “Taking It To The Next Level” Presenter: Jason Baker, Digital North Date:
DNS. DNS is a network service that enables clients to resolve names to IP address and vice-versa. Allows machines to be logically grouped by domain names.
1 DNS. 2 BIND DNS –Resolve names to IP address –Resolve IP address to names (reverse DNS) BIND –Berkeley Internet Name Domain system Version 4 is still.
Apache Performance Tuning Part 2: Scaling Out Sander Temme.
Internet Applications INTERNET & INTERNET APPLICATIONS.
Chapter 4 - Lab DNS Configuration in Linux.  DNS Configuration in Linux Projects 4-1 through 4-3 Projects 4-4 deals with multiple domains  DNS Configuration.
1 A Comparison of Load Balancing Techniques for Scalable Web Servers Haakon Bryhni, University of Oslo Espen Klovning and Øivind Kure, Telenor Reserch.
Scalability and planning for growth 1WUCM1. Content management issues Structural – Naming (e.g. file, URL) policy – File and directory naming needs: invent/design/borrow.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
1 Controlling Access to Your Web Content IS/CS 698 Min Song.
Chris Shuster 4/29/2009 1Chris Shuster.  Application Servers ◦ Backend processing platform. ◦ Multiple platforms, operating system and architecture.
APACHE WEBSERVER.
LOAD BALANCING Dawid Królak. Intro  Problem  Model OSI  Layer 2  Layer 4-7  Reverse Proxy.
Load Sharing and Balancing - Saravanan Mathialagan Masters in Computer Science Georgia State University.
DNS Setup DNS CONFIGURATION. DNS Configuration DNS Setup named daemon is used A DNS Server may be caching/master/slave server The named.ca file has information.
Web Client/Server Communication A290/A590, Fall /09/2014.
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
Shoehorning Apache Onto Your Box System Sizing Tips Sander Temme.
Apache Architecture. How do we measure performance? Benchmarks –Requests per Second –Bandwidth –Latency –Concurrency (Scalability)
Fronting Tomcat with Apache Httpd Mladen Turk Red Hat, Inc.
CERN DNS Load Balancing Vladimír Bahyl IT-FIO. 26 November 2007WLCG Service Reliability Workshop2 Outline  Problem description and possible solutions.
10/02/2004ELFms meeting1 Linux Virtual Server Miroslav Siket FIO-FS.
DNS. Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator.
1 Oracle 9i AS Availability and Scalability Margaret H. Mei Senior Product Manager, ST.
1 Distributed DNS best practices to build redundant, reliable architecture By Ladislav Vobr SE/SOP/I&eS, Etisalat.
Server Load Balancing. Introduction Why is load balancing of servers needed? If there is only one web server responding to all the incoming HTTP requests.
SSP Capacity Planning. One powerful machine with everything.
1 Shoehorning Apache Onto Your Box System Sizing Tips Sander Temme.
DNS and C# SWE 344 Internet Protocols & Client Server Programming.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 7: Domain Name System.
APEX power! Alan Arentsen brought to you by GlassFish.
© Blackboard, Inc. All rights reserved. Deploying Tomcat Clusters in an Advanced Blackboard TM Environment Speaker: Steve Feldman Director, Software Performance.
The Power of mod_proxy Proxy servers, load balancers and how to implement with Apache HTTP Server.
ELFms meeting, 2/3/04 German Cancio, 2/3/04 Proxy servers in CERN-CC.
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
CITA 310 Section 1 Name Resolution (Textbook Chapter 4)
Apache Performance Tuning Part 2: Scaling Out Sander Temme.
Apache Web Server. Aim of this section –Introduce you to workings of the most common webserver –Give you a little experience in role of webmaster Configuring.
The mod_proxy_balancer Cookbook A module overview with practical solutions to common problems Daniel Ruggeri.
DYNAMIC LOAD BALANCING ON WEB-SERVER SYSTEMS by Valeria Cardellini Michele Colajanni Philip S. Yu.
CERN DNS Load Balancing VladimírBahylIT-FIO NicholasGarfieldIT-CS.
CERN IT Department CH-1211 Genève 23 Switzerland PES 1 Ermis service for DNS Load Balancer configuration HEPiX Fall 2014 Aris Angelogiannopoulos,
DNS - BIND9 Přednášející Vaše jméno. Master and caching name server options { directory "/var/named"; allow-transfer {“none”;}; }; zone "." { type hint;
Web Server Administration Chapter 4 Name Resolution.
1 Microsoft Outlook Web Access Outlook Web Access Overview Outlook Web Access Environments.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
1 CMPT 471 Networking II DNS © Janice Regan,
Fronting Tomcat With Apache V0.1 – Nguyễn Bá Thành Software Manager, Game Platform & Integration.
OPTION section It is the first section of the named.conf User can use only one option statement and many option-value pair under the section. Syntax is.
Copyright 2007, Information Builders. Slide 1 Performance, Scalability, and Reliability With iWay Software Mark Nesson June, 2008.
WHAT IS DNS??????????.
1 Chapter 10: Application Layer Reference: Chapter 7 - “Computer Networks”, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
Speeding Up Alfresco and Share using Nginx Reverse/Caching Frontend Proxy Ishara Fernando Senior Linux Systems Administrator.
JBOSS Online Training. Introduction to JBOSS Red Hat JBoss Middleware leverages community powered enlighten innovation and standalone open source application.
Distributed Server Scheduler Eyal Serero Alex Fishgate Supervisor : Vitaly Suchin.
Homework 5 DNS 、 HTTPD 、 SNMP. Requirements One dedicated domain name for yourself Setup DNS server with following records  SOA, NS, MX  Make them reasonable.
Presented by Michael Rainey South Mississippi Linux Users Group
REPLICATION & LOAD BALANCING
Network Load Balancing
DNS and Bind Presenter David Wood
Apache Performance Tuning
Apache Performance Tuning
Presentation transcript:

Load Balance of Tomcat with Apache by George Fu, UCCS CS 526 Semester Project Spring 2009

Outline Our webserver system introduction HTTP Load balancing on Solaris The work I did Future work Conclusions References

Our Current Web Servers on Solaris Client Internet

Problems No Load Balance Single Point of Failure No Transparent Failover and Failback No Scalability Performance Low Availability

Resolutions on Solaris Hardware based load balancing Reverse proxy:mod_proxy, mod_jk, mod_cluster Load balancing appliance (Juniper, Cisco…) Tomcat balancer application DNS load balancing (Round Robin)

Mod_Cluster Blancer Allows httpd to act as a load balancer in front of Tomcat based-based webservers JBoss Product Very little configuration on the httpd side Main calculations done on the backend servers Backend server dynamic configuration No more workers.properties

Mod_Proxy Blancer Part of mod_proxy New in Apache HTTP Server 2.2 Two load balancing methods –By number of requests –By number of bytes Detects failed backends

Apache mod_proxy Configuration Listen 80 LogLevel debug TransferLog logs/access_log LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so ProxyPass / balancer://mycluster/ ProxyPassReverse / ProxyPassReverse / BalancerMember BalancerMember

Tomcat and mod_jk Apache + mod_jk Multiple tomcat servers Balancer worker Very easy to do

Apache Worker-Properties File worker.list=loadbalancer worker.tomcat1.port=18081 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=1 worker.tomcat2.port=28081 worker.tomcat2.host=localhost worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1, tomcat2 worker.loadbalancer.method=Busyness

Apache httpd.conf File JkMount /jsp-examples loadbalancer JkMount /jsp-examples/* loadbalancer

Tomcat server.xml File with: <Server port="8009" with: <Server port="18081"

Our Webservers with Load Balancer

Future Work Problem: Single point of failure DNS round-robin No work at the server side Multiple records in DNS zone file

Example DNS Zone File scalingout.org IN SOA ns.scalingout.org. sctemme.scalingout.org. ( ; Serial ; refresh (1 day) 7200 ; retry (2 hours) ; expire (10 days) ) ; minimum (1 day) scalingout.org. IN NS bagheera.scalingout.org. gw IN A bagheera IN A ;... mail IN CNAME bagheera ns IN CNAME bagheera www IN A IN A IN A

DNS Round-Robin :

Conclusions Apache/Tomcat load balancing is easy No dedicated balancer machine is needed For better performance, mod_cluster can be used

References Aveneet Manget, Load-balancing Tomcat with Apache, ledgecenter.tss?l=LoadBalancingTomcatApache Web ledgecenter.tss?l=LoadBalancingTomcatApache Web Brain Stansberry, A new httpd-based load balancer mod-cluster-jug.pdf mod-cluster-jug.pdf Apacheand Tomcat load balancing cat+load+balancing cat+load+balancing