Load balanced High-Availability Apache Cluster.  Load balancers takes care of the load on a web server nodes and tried to direct request to the node.

Slides:



Advertisements
Similar presentations
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
Advertisements

Heartbeat au LAL démo et discussion Marec erwan Charbonnel Jaclin.
Dr. Zahid Anwar. Simplified Architecture of Linux Cluster Simplified Architecture of a Single Computer Simplified architecture of an enterprise cluster.
VPN Lab 2 Zutao Zhu 04/02/2010. Outline How a packet traverse in VPN How to write socket program Certificate.
Page: 1 Director 1.0 TECHNION Department of Computer Science The Computer Communication Lab (236340) Summer 2002 Submitted by: David Schwartz Idan Zak.
CS526 Dr.Chow1 HIGH AVAILABILITY LINUX VIRTUAL SERVER By P. Jaya Sunderam and Ankur Deshmukh.
Lesson 20 – OTHER WINDOWS 2000 SERVER SERVICES. DHCP server DNS RAS and RRAS Internet Information Server Cluster services Windows terminal services OVERVIEW.
Design and Implementation of a Server Director Project for the LCCN Lab at the Technion.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
Chien-Chung Shen Google Compute Engine Chien-Chung Shen
Lesson 1: Configuring Network Load Balancing
CLUSTER WEBLOGIC SERVER. 1.Creating clusters and understanding its concept GETTING STARTED.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Copyright © 2002 Wensong Zhang. Page 1 Free Software Symposium 2002 Linux Virtual Server: Linux Server Clusters for Scalable Network Services Wensong Zhang.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 8: Network Load Balancing (NLB)
1 © Talend 2014 Service Locator Talend ESB Training 2014 Jan Bernhardt Zsolt Beothy-Elo
10/02/2004ELFms meeting1 Linux Virtual Server Miroslav Siket FIO-FS.
ARP Under Normal Conditions. The basics arp with reverse DNS lookup for each IP arp –a # Windows & linux Without reverse DNS lookup (runs faster) arp.
ColdFusion MX Server Administration J2EE Deployment and Clustering Adam Wayne Lehman J2EE Deployment and Clustering Adam Wayne.
Module 13: Network Load Balancing Fundamentals. Server Availability and Scalability Overview Windows Network Load Balancing Configuring Windows Network.
NetFilter – IPtables Firewall –Series of rules to govern what Kind of access to allow on your system –Packet filtering –Drop or Accept packets NAT –Network.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
Projects. High Performance Computing Projects Design and implement an HPC cluster with one master node and two compute nodes. (Hint: use Rocks HPC Cluster.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
1 How to Enable IPv6 in Your Subnet Quincy Wu March 10, 2004.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
PHP Motion Idris Winarno. Requirement Apache + PHP5 + MySQL lame ffmpeg flvtool.
Configuring Global Server Load Balancing (GSLB)
Submitted by: Shailendra Kumar Sharma 06EYTCS049.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Package Management. Basic Commands apt-get install : install package + dependencies apt-get remove : removes the package not dependencies apt-get autoremove.
Firewalls. Intro to Firewalls Basically a firewall is a __________to keep destructive forces away from your ________ ____________.
Configuring BackTrack Michael Holcomb, CISSP Upstate ISSA Chapter.
Hands On Networking Network Applications Ram P Rustagi, ISE Dept Kundan Kumar, MCA Dept Manini Sahoor, MCA Dept Ravi Teja, MCA Dept Sourav.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
05-Apr-2006 OWAMP and BWCTL: Installation and Configuration Jeff Boote Network Performance Workshop.
10-Jun-2005 OWAMP and BWCTL: Installation and Configuration Jeff Boote Network Performance Workshop.
Server Performance, Scaling, Reliability and Configuration Norman White.
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
Homework 02 NAT 、 DHCP 、 Firewall 、 Proxy. Computer Center, CS, NCTU 2 Basic Knowledge  DHCP Dynamically assigning IPs to clients  NAT Translating addresses.
 Load balancing is the process of distributing a workload evenly throughout a group or cluster of computers to maximize throughput.  This means that.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
Setting up linux webcam server Juho Launonen & Sami Kulmala.
Unit - III. Providing a Caching Proxy Server (1) A caching proxy server is software that stores (caches) frequently requested internet objects such as.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering.
LHC Logging Cluster Nilo Segura IT/DB. Agenda ● Hardware Components ● Software Components ● Transparent Application Failover ● Service definition.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
Embedded Software Design Week II Linux Intro Linux Kernel.
LINUX SERVER BUILD & SECURITY CONFIG N.E.T LAB Junior, 05 HJS Sophomore, 04 PJK Network Engineer Training Laboratory.
Web and Proxy Server.
NAT、DHCP、Firewall、FTP、Proxy
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
Understanding Solutions
Scaling Network Load Balancing Clusters
Affinity Depending on the application and client requirements of your Network Load Balancing cluster, you can be required to select an Affinity setting.
ECE 544: Middlebox lab Abhigyan Sharma.
Labs – Installing a FTP Server
Microsoft BackOffice Applications
Network Load Balancing
Unix System Administration
DHCP server & Client Objectives Contents
VIRTUAL SERVERS Presented By: Ravi Joshi IV Year (IT)
VceTests VCE Test Dumps
Lab 1 introduction, debrief
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Batch Parties Changes.
Presentation transcript:

Load balanced High-Availability Apache Cluster

 Load balancers takes care of the load on a web server nodes and tried to direct request to the node with least amount on load  Many web applications make use of sessions, and if you are in a session on Apache node 1, you would lose that session if suddenly node 2 served your requests.  If an Apache nodes goes down, the load balancer realizes that and directs all incoming requests to the remaining node. Advantage Of Load Balancing

 Four nodes( two apache nodes and two load balancer nodes)  Five IP Addresses  One for each node  One for virtual IP address that will be shared by the load balancer. Requirements For Setup

 Apache node 1: webserver1.radford.edu (webserver1) - IP address: ; Apache document root: /var/www  Apache node 2: webserver2.radford.edu (webserver2) - IP address: ; Apache document root: /var/www  Load Balancer node 1: loadb1.radford.edu (loadb1) - IP address:  Load Balancer node 2: loadb2.radford.edu (loadb2) - IP address:  Virtual IP Address: (used for incoming requests) IP Address Schema

 Loadb1 / Loadb2  echo ip_vs_dh >> /etc/modules echo ip_vs_ftp >> /etc/modules echo ip_vs >> /etc/modules echo ip_vs_lblc >> /etc/modules echo ip_vs_lblcr >> /etc/modules echo ip_vs_lc >> /etc/modules echo ip_vs_nq >> /etc/modules echo ip_vs_rr >> /etc/modules echo ip_vs_sed >> /etc/modules echo ip_vs_sh >> /etc/modules echo ip_vs_wlc >> /etc/modules echo ip_vs_wrr >> /etc/modules Enable IPVS On The Load Balancers

 modprobe ip_vs_dh modprobe ip_vs_ftp modprobe ip_vs modprobe ip_vs_lblc modprobe ip_vs_lblcr modprobe ip_vs_lc modprobe ip_vs_nq modprobe ip_vs_rr modprobe ip_vs_sed modprobe ip_vs_sh modprobe ip_vs_wlc modprobe ip_vs_wrr

 vi /etc/apt/sources.list  Lines must be added  deb sarge main  deb-src sarge main  apt-get update  apt-get install ultramonkey Install Ultra Monkey On The Load Balancers

 Do you want to automatically load IPVS rules on boot? <-- No  Select a daemon method. <-- none UltraMonkey Setup

 vi /etc/sysctl.conf  Add the following lines to sysct1.conf file  Net.ipv4.ip_forward = 1  sysctl -p Enable Packet Forwarding On Load Balancers

 vi /etc/ha.d/ha.cf  Add to config file  logfacility local0  bcast eth0 # Linux  mcast eth  auto_failback off  node loadb1  node loadb2  respawn hacluster /usr/lib/heartbeat/ipfail  apiauth ipfail gid=haclient uid=hacluster Configure heartbeat And Idirectord

 uname -n  vi /etc/ha.d/haresources  loadb1 \  ldirectord::ldirectord.cf \  LVSSyncDaemonSwap::master \  IPaddr2:: /24/eth0/

 uname –n  vi /etc/ha.d/authkeys  auth 3  3 md5 somerandomstring  chmod 600 /etc/ha.d/authkeys

 vi /etc/ha.d/ldirectord.cf  checktimeout=10 checkinterval=2 autoreload=no logfile="local0" quiescent=yes virtual= :80 real= :80 gate real= :80 gate fallback= :80 gate service=http request="ldirector.html" receive="Test Page" scheduler=rr protocol=tcp checktype=negotiate

 update-rc.d heartbeat start stop  update-rc.d -f ldirectord remove  /etc/init.d/ldirectord stop  /etc/init.d/heartbeat start