Linux Virtual Server Jim Lawson VAGUE/University of Vermont. /

Similar documents
Introduction to Linux Virtual Server and High Availability

Scalable Linux Clusters with LVS

Red Hat Enterprise Linux 7 Load Balancer Administration

Availability Digest. Redundant Load Balancing for High Availability July 2013

Smoothwall Web Filter Deployment Guide

Load Balancing Web Proxies Load Balancing Web Filters Load Balancing Web Gateways. Deployment Guide

Scalable Linux Clusters with LVS

FortiOS Handbook - Load Balancing VERSION 5.2.2

Lab 5 Explicit Proxy Performance, Load Balancing & Redundancy

Loadbalancer.org Appliance Setup v4.1.5

M2M Series Routers. Virtual Router Redundancy Protocol (VRRP) Configuration Whitepaper

Load Balancing McAfee Web Gateway. Deployment Guide

Exam Name: Foundry Networks Certified Layer4-7 Professional Exam Type: Foundry Exam Code: FN0-240 Total Questions: 267

Load Balancing Clearswift Secure Web Gateway

High Availability Low Dollar Load Balancing

Load Balancing. FortiOS Handbook v3 for FortiOS 4.0 MR3

Deployment Guide Microsoft Exchange 2013

Appliance Quick Start Guide. v7.6

ZEN LOAD BALANCER EE v3.02 DATASHEET The Load Balancing made easy

McAfee Web Filter Deployment Guide

How To Understand The Role Of The Lib8000 On A Network (Networking) On A Server Cluster (Netware) On An Ipnet (Netrope) On Ubuntu) On Pcode (Netnet)

Radware s AppDirector and AppXcel An Application Delivery solution for applications developed over BEA s Weblogic

FortiOS Handbook Load Balancing for FortiOS 5.0

Cisco Networking Academy CCNP Multilayer Switching

Load Balancing Bloxx Web Filter. Deployment Guide

Keepalived for LVS. User Guide Alexandre Cassen.

ZEN LOAD BALANCER EE v3.04 DATASHEET The Load Balancing made easy

Introduction. Linux Virtual Server for Scalable Network Services. Linux Virtual Server. 3-tier architecture of LVS. Virtual Server via NAT

Server Traffic Management. Jeff Chase Duke University, Department of Computer Science CPS 212: Distributed Information Systems

AppDirector Load balancing IBM Websphere and AppXcel

Networking and High Availability

Red Hat Cluster Suite Overview. Red Hat Cluster Suite for Red Hat Enterprise Linux 5

Load Balancing Sophos Web Gateway. Deployment Guide

Mail-SeCure Load Balancing

How To Balance A Load Balancer On A Server On A Linux (Or Ipa) (Or Ahem) (For Ahem/Netnet) (On A Linux) (Permanent) (Netnet/Netlan) (Un

Deployment Guide Oracle Siebel CRM

21.4 Network Address Translation (NAT) NAT concept

Load Balancing Smoothwall Secure Web Gateway

Red Hat Cluster Suite for Red Hat Enterprise Linux 5.2

Jason Dixon DixonGroup Consulting. September 17, 2005 NYCBSDCON 2005

Load Balancing Trend Micro InterScan Web Gateway

Networking and High Availability

Appliance Administration Manual. v7.2

Network Security TCP/IP Refresher

PolyServe Understudy QuickStart Guide

Load Balancing Barracuda Web Filter. Deployment Guide

Active-Active Servers and Connection Synchronisation for LVS

GLBP - Gateway Load Balancing Protocol

Red Hat Enterprise Linux 7 High Availability Add-On Overview

Appliance Quick Start Guide v8.1

RESILIENT NETWORK DESIGN

Building a Systems Infrastructure to Support e- Business

Network Address Translation (NAT)

How To - Configure Virtual Host using FQDN How To Configure Virtual Host using FQDN

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

A New Approach to Developing High-Availability Server

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Multicast-based Distributed LVS (MD-LVS) for improving. scalability and availability

TESTING & INTEGRATION GROUP SOLUTION GUIDE

Configuring Server Load Balancing

Linux Virtual Server Tutorial

ClusterLoad ESX Virtual Appliance quick start guide v6.3

CONFIGURING BIG-IP LOCAL TRAFFIC MANAGER 3-Day

Best Practices: Pass-Through w/bypass (Bridge Mode)

Lecture 8b: Proxy Server Load Balancing

First Hop Redundancy (Layer 3) 1. Network Design First Hop. Agenda. First Hop Redundancy (Layer 3) 2. L102 - First Hop Redundancy

Microsoft Exchange 2013 DEPLOYMENT GUIDE

How To Build A Virtual Server Cluster In Linux 2003

ArcGIS for Server Reference Implementations. An ArcGIS Server s architecture tour

MULTI WAN TECHNICAL OVERVIEW

Linux Virtual Server Clusters

Linux Virtual Server Administration. RHEL5: Linux Virtual Server (LVS)

Application Delivery Controller (ADC) Implementation Load Balancing Microsoft SharePoint Servers Solution Guide

F5 Configuring BIG-IP Local Traffic Manager (LTM) - V11. Description

UNIVERSITY OF OSLO Department of Informatics. Performance Measurement of Web Services Linux Virtual Server. Muhammad Ashfaq Oslo University College

High Availability. Vyatta System

Barracuda Link Balancer

Deployment Guide AX Series for Palo Alto Networks SSL Intercept and Firewall Load Balancing

Load-Balancing Introduction (with examples...)

How To Manage A Network On A Network With A Global Server (Networking)

Thunder ADC for SSL Insight and Load Balancing DEPLOYMENT GUIDE

Introduction to IPv6 and Benefits of IPv6

Network Configuration Settings

Barracuda Load Balancer Administrator s Guide

CCNP SWITCH: Implementing High Availability and Redundancy in a Campus Network

Using SonicWALL NetExtender to Access FTP Servers

Load Balancing und Load Sharing

NETWORK LOAD-BALANCING GRIDFTP SERVERS ON THE CHEAP

DNS ROUND ROBIN HIGH-AVAILABILITY LOAD SHARING

Network Address Translation (NAT)

Overview of WebMux Load Balancer and Live Communications Server 2005

Use Domain Name System and IP Version 6

Create a VPN on your ipad, iphone or ipod Touch and SonicWALL NSA UTM firewall - Part 1: SonicWALL NSA Appliance

Server Iron Hands-on Training

INUVIKA TECHNICAL GUIDE

Deployment Guide AX Series with Citrix XenApp 6.5

How To Connect To Bloomerg.Com With A Network Card From A Powerline To A Powerpoint Terminal On A Microsoft Powerbook (Powerline) On A Blackberry Or Ipnet (Powerbook) On An Ipnet Box On

XO SIP Service Customer Configuration Guide for Interactive Intelligence Customer Interaction Center (CIC) with XO SIP

DATA CENTER. Best Practices for High Availability Deployment for the Brocade ADX Switch

Transcription:

Linux Virtual Server Jim Lawson VAGUE/University of Vermont jim@jimlawson.org / Jim.Lawson@uvm.edu

What is a load balancer? Front-end appliance for a web (or other service) farm Allows you to scale out rather than scale up Several vendors supply products in this space (Cisco, F5, Foundry, others)

Linux Virtual Server ( IPVS inside the kernel) Kernel-space load balancer What is LVS? Fast, efficient, reliable Somewhat featurelimited compared to commercial options

What is keepalived? Provides: Health-checking for realservers - takes malfunctioning servers out of the pool Failover for director/load-balancer

LVS NAT config Client Request VIP1 192.168.1.1 LVS director LVS gateway 10.0.0.1 Realserver 1 10.0.0.10 Realserver 2 10.0.0.11 Realservers specify director as gateway addr Realserver 3 10.0.0.12

LVS DR config Client Request VIP1 192.168.1.1 LVS director Response Request Response Request Realserver 1 192.168.1.10 VIP1 192.168.1.1 Realserver 2 192.168.1.11 VIP1 192.168.1.1 Realserver 3 192.168.1.12 VIP1 192.168.1.1

Why DR (direct-route?) Director only needs to handle request portion of traffic. In typical HTTP, request is small (typically <1K) GET /index.html HTTP/1.1 Host: www.uvm.edu Response is sent directly to gateway HTTP/1.1 200 OK...... Content-size: 22947

Why DR (direct-route?) Francois JEANMOUGIN Francois (dot) JEANMOUGIN (at) 123multimedia (dot) com 06/06/2005: I have 38 realservers behind my director, incoming traffic (to director) goes up to 20Mb/s, outgoing (from realservers LVS-DR setup) up to 60Mb/s. I have about 1200 sites hosted. 36 virtual_server entries in keepalived.conf, 30 VIPs. There's no noticable load on the poor PIII/700 director that's handling the traffic.

Why not DR? ARP problem Realservers have to be configured to not ARP for the VIP only the director should respond to ARP requests for that IP Linux: 2.2, 2.4 kernels need hidden arp patch 2.6 kernels only need arp_ignore and arp_announce set in /proc. Most other unixes (unices?): NOARP works fine Windows (since NT4SP2): ifconfig -arp

Why not DR? If you forget to set NOARP (or hidden/arp_announce) before you bring the VIP up on the realserver, the realserver will receive all traffic bound for the VIP! To avoid this, put the VIP config in a special startup script which always sets the proper flags in /proc In general, it is a good idea to have 1 VIP per service or pool

LVS scheduling algorithms rr (round-robin) lc (pick server with least # connections) wrr, wlc weighted versions of above For load balanced caching proxy servers: DH (destination hash, static, based upon destination IP) LBLC (locality-based least connection; like DH but dynamic)

lc example graph LVS with 2 realservers, serving http all day (rrd image courtesy Salvatore D. Tepedino)

lc vs rr Round-robin keeps servers more or less evenly balanced Least-connections is very good at keeping them evenly balanced BUT... thundering herd problem Newly added or recovered realservers have no active connections! Guess where everyone gets sent?

Keepalived Monitors services for availability Built-in checks: http, https, smtp, ldap, tcp Custom scripts are easy to plug in Threaded Health Checks When services go down, servers are removed from pool and users are automatically redirected to remaining available nodes

What about the director? It's a single point of failure Solution: keepalived VRRP Virtual Router Redundancy Protocol RFC 2338, election protocol, multicast Similar to Cisco's HSRP active/passive Can have VIPs staggered between directors for active/active config

What about the director? Active connection state (client IP <-> realserver) is communicated via IPVS syncd Active server informs passive server about new associations Runs over crossover cable, or LAN During a failover, gratuitous ARP is sent Failback: set PREEMPT_DELAY

CIT LVS config www.uvm.edu Client redback zorocratid coneweb Request Response carrier tangleweb orbweaver oonopid VRRP IPVS syncd Request ldap.uvm.edu peregrine fishercat porcupine smtp.uvm.edu passenger pony eagle Response