HA clustering made simple with OpenVZ

Similar documents
Linux Virtualization. Kir Kolyshkin OpenVZ project manager

Virtualization in Linux

short introduction to linux high availability description of problem and solution possibilities linux tools

High Availability Solutions for the MariaDB and MySQL Database

virtualization.info Review Center SWsoft Virtuozzo (for Windows) //

Open Source High Availability on Linux

OVERVIEW. CEP Cluster Server is Ideal For: First-time users who want to make applications highly available

High Availability and Backup Strategies for the Lustre MDS Server

Peter Ruissen Marju Jalloh

SAN Conceptual and Design Basics

Red Hat Cluster Suite

Lightweight Virtualization: LXC Best Practices

Proposal for Virtual Private Server Provisioning

Red Hat Enterprise linux 5 Continuous Availability

Multiple Public IPs (virtual service IPs) are supported either to cover multiple network segments or to increase network performance.

Implementing Storage Concentrator FailOver Clusters

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

High Availability Storage

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Solution Brief Availability and Recovery Options: Microsoft Exchange Solutions on VMware

High-Availability Using Open Source Software

Parallels Virtuozzo Containers 4.7 for Linux

High availability infrastructures for TYPO3 Websites

Eliminate SQL Server Downtime Even for maintenance

High Availability Low Dollar Clustered Storage

Virtual Machine Monitors. Dr. Marc E. Fiuczynski Research Scholar Princeton University

Overview of I/O Performance and RAID in an RDBMS Environment. By: Edward Whalen Performance Tuning Corporation

High Availability of the Polarion Server

VERITAS Storage Foundation 4.3 for Windows

High Availability & Disaster Recovery Development Project. Concepts, Design and Implementation

INUVIKA TECHNICAL GUIDE

PostgreSQL Clustering with Red Hat Cluster Suite

PVFS High Availability Clustering using Heartbeat 2.0

Practical Applications of Virtualization. Mike Phillips IAP 2008 SIPB IAP Series

Virtual Private Systems for FreeBSD

Step-by-Step Guide to Open-E DSS V7 Active-Active Load Balanced iscsi HA Cluster

High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper

MySQL High Availability Solutions. Lenz Grimmer OpenSQL Camp St. Augustin Germany

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

How To Run A Power5 On A Powerbook On A Mini Computer (Power5) On A Microsoft Powerbook (Power4) On An Ipa (Power3) On Your Computer Or Ipa On A Minium (Power2

Step-by-Step Guide. to configure Open-E DSS V7 Active-Active iscsi Failover on Intel Server Systems R2224GZ4GC4. Software Version: DSS ver. 7.

Bosch Video Management System High Availability with Hyper-V

Dell High Availability Solutions Guide for Microsoft Hyper-V

Cloud Server. Parallels. Key Features and Benefits. White Paper.

Clustering ExtremeZ-IP 4.1

High Availability Solutions for MySQL. Lenz Grimmer DrupalCon 2008, Szeged, Hungary

Large Scale Storage. Orlando Richards, Information Services LCFG Users Day, University of Edinburgh 18 th January 2013

Architectures Haute-Dispo Joffrey MICHAÏE Consultant MySQL

SIOS Protection Suite for Linux v Postfix Recovery Kit Administration Guide

VMware vsphere-6.0 Administration Training

Achieve Automated, End-to-End Firmware Management with Cisco UCS Manager

HP Serviceguard Cluster Configuration for Partitioned Systems

Real-Time KVM for the Masses Unrestricted Siemens AG All rights reserved

Deploying Global Clusters for Site Disaster Recovery via Symantec Storage Foundation on Infortrend Systems

Server and Storage Virtualization with IP Storage. David Dale, NetApp

The future is in the management tools. Profoss 22/01/2008

EXPLORING LINUX KERNEL: THE EASY WAY!

Installation Guide. Step-by-Step Guide for clustering Hyper-V virtual machines with Sanbolic s Kayo FS. Table of Contents

The functionality and advantages of a high-availability file server system

Stretching A Wolfpack Cluster Of Servers For Disaster Tolerance. Dick Wilkins Program Manager Hewlett-Packard Co. Redmond, WA dick_wilkins@hp.

Parallels Virtuozzo Containers 4.7 for Linux Readme

This document may be freely distributed provided that it is not modified and that full credit is given to the original author.

PolyServe Matrix Server for Linux

Parallels Cloud Server 6.0 Readme

What s new in Hyper-V 2012 R2

High Availability Infrastructure of Database Cloud: Architecture, Best Practices. Kai Yu Oracle Solutions Engineering, Dell Inc.

Windows Host Utilities 6.0 Installation and Setup Guide

Delivering High Availability Solutions with Red Hat Cluster Suite

VMware High Availability (VMware HA): Deployment Best Practices

Course Venue :- Lab 302, IT Dept., Govt. Polytechnic Mumbai, Bandra (E)

Basics of Virtualisation

The Advantages of Multi-Port Network Adapters in an SWsoft Virtual Environment

Delivering High Availability Solutions with Red Hat Cluster Suite

Windows Host Utilities Installation and Setup Guide

IBM Security QRadar SIEM Version High Availability Guide IBM

Parallels Cloud Server 6.0

Rackspace Cloud Databases and Container-based Virtualization

Virtualization and Performance NSRC

Implementing SAN & NAS with Linux by Mark Manoukian & Roy Koh

High Availability for Databases Protecting DB2 Databases with Veritas Cluster Server

GlusterFS Distributed Replicated Parallel File System

SteelEye Protection Suite for Windows. v7.7. Release Notes

Distributed Operating Systems. Cluster Systems

Ultra-Scalable Storage Provides Low Cost Virtualization Solutions

Develop a process for applying updates to systems, including verifying properties of the update. Create File Systems

An Oracle White Paper November Oracle Real Application Clusters One Node: The Always On Single-Instance Database

SAP Solutions on VMware Infrastructure 3: Customer Implementation - Technical Case Study

StarWind iscsi SAN Software: Providing shared storage for Hyper-V's Live Migration feature on two physical servers

RedHat (RHEL) System Administration Course Summary

High Availability Implementation for JD Edwards EnterpriseOne

Hypervisor Competitive Differences: Beyond the Data Sheet. Chris Wolf Senior Analyst, Burton Group

VMware Virtual Machine File System: Technical Overview and Best Practices

Transcription:

HA clustering made simple with OpenVZ Werner Fischer, Thomas-Krenn.AG Profoss Virtualisation event 2008 Brussels, 23rd January 2008 slide 1/33

Short Bio Werner Fischer 2000-2004: Computer- and Media Security (Upper Austria University of Applied Sciences, Hagenberg Campus) 2004-2005: IBM Mainz, Linz, San Jose/CA, Raleigh/NC redbooks covering HA Clustering and Storage since 9/2005: Thomas-Krenn.AG, R&D (HA-Clustering, Virtualisation) relationship to OpenVZ project using OpenVZ for over two years focussing on OpenVZ clustering, written HOWTO http://wiki.openvz.org/ha_cluster_with_drbd_and_heartbeat slide 2/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 3/33

1) Cluster Technolgies Overview term clustering High Availability (HA) cluster Load Balancing cluster High Performance Computing (HPC) cluster Grid computing slide 4/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 5/33

2) HA clustering best practices High Availability (HA) cluster goal: increase availability of services elimination of all SPOFs (single points of failure) failover / switchover 2-node-clusters widely-used Uptime [%] 98 % 99 % 99,8 % 99,9 % 99,99 % 99,999 % 99,9999 % slide 6/33 Downtime per year 7,3 days 3,65 days 17 h 30 min 8 h 45 min 52,5 min 5,25 min 31,5 sec Downtime per week 3 h 22 min 1 h 41 min 20 min 10 sec 10 min 5 sec 1 min 6 sec 0,5 sec

2) HA clustering best practices active/passive vs. active/active with 2-node-clusters when would active/active bring advantages mainly when each of the two servers exceed an utilisation of 50% what would be the consquense in case of an outage? slide 7/33 the remaining node does not have enough free ressources, services cannot be provided reliable

2) HA clustering best practices cluster tests: manual switchover tests (2) power outage tests (7) serial connection tests (4) crossover network connection tests (4) public network connection tests (9) shutdown tests (2) reboot tests (2) hard drive outage tests (2) slide 8/33

2) HA clustering best practices Shared Storage (SAN) vs. Replicated Storgae Shared Storage Shared SCSI, Fibre Channel SAN, iscsi SAN storage system can be SPOF slide 9/33 Shared Resource Protection (Node/Resource Level Fencing (STONITH, SCSI Locking), Quorum) Replicated Storage eg. DRBD (Distributed Replicated Block Device) no dedicated storage system (no SPOF) cost-effective Shared Resource Protection less critical

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 10/33

3) Concept of HA cluster with OpenVZ challenges of traditional HA cluster systems node1 node2 / / bin/ etc/ home/ usr/ var/.../ most applications need to be customised bin/ etc/ home/ usr/ var/.../ /data traditional HA Cluster local data shared data slide 11/33 config files (/etc) must be synchronised manually (or be replaced by symbolic links to /data/...) keeping system config files like /etc/passwd in sync is complex time-consuming and error-prone -> causes additional costs

3) Concept of HA cluster with OpenVZ clustering of entire virtual machines node1 node2 / / bin/ etc/ home/ usr/ var/.../ bin/ etc/ home/ usr/ var/.../ /data traditional HA Cluster local data shared data slide 12/33 node1 node2 (basesystem) (basesystem) /vz/ private/101/root/ bin/ etc/ home/ var/.../ virtualised HA Cluster whole file system of a virtual machine is mirrored applications are only installed once (within the virtual machine), not twice (on each node)

3) Concept of HA cluster with OpenVZ slide 13/33

3) Concept of HA cluster with OpenVZ Operating System Community ENTerprise Operating System based on Red Hat Enterprise Linux strives to be 100% binary compatible with the upstream product www.centos.org slide 14/33

3) Concept of HA cluster with OpenVZ Cluster Manager Heartbeat cluster nodes communicate via three paths (eth0, eth1, ttys0) connectivity from outside is monitored via pingnode Internet core switch/router switch2 switch1 eth0 eth1 node1 slide 15/33 ttys0 eth0 eth1 node2 ttys0

3) Concept of HA cluster with OpenVZ Data replication RAID1 over network write operation (on both nodes) read operation (on primary node) file system, e.g. ext3 DRBD /dev/drbd0 primary slide 16/33 TCP/IP DRBD /dev/drbd0 secondary disk driver disk driver disk disk node1 node2

3) Concept of HA cluster with OpenVZ OS virtualisation containers-type virtualisation on Linux creates multiple secure, isolated containers (VEs, VPSs) single-kernel technology enables better server utilisation allows resource configuration http://openvz.org (other OS virtualisation tech.: VServer, FreeBSD Jails, Solaris Containers) slide 17/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 18/33

4) OpenVZ details OpenVZ components: Kernel Virtualization and Isolation Resource Management Checkpointing Tools vzctl: Virtual Environment (VE) control utility vzpkg: VE software package management Templates slide 19/33 precreated VE images for fast VE creation

4) OpenVZ details Each virtual environment has its own: Files System libraries, applications, virtualized /proc and /sys, virtualized locks etc. Process tree Featuring virtualized PIDs, so that the init PID is 1 Network Virtual network device, its own IP addresses, set of netfilter and routing rules Devices Plus if needed, any VE can be granted access to real devices like network interfaces, serial ports, disk partitions, etc. IPC objects shared memory, semaphores, messages slide 20/33

4) OpenVZ details OpenVZ Resource Management: User Beancounters is a set of per-ve resource counters, limits, and guarantees (kernel memory, network buffers, phys pages, etc.) Fair CPU scheduler (with shares and hard limits) Two-level disk quota (first-level: per-ve quota; second-level: ordinary user/group quota inside a VE) I/O scheduler (two-level, based on CFQ) slide 21/33

4) OpenVZ details OpenVZ Kernel Checkpointing/Migration: Complete VE state can be saved in a file running processes opened files network connections, buffers, backlogs, etc. memory segments VE state can be restored later VE can be restored on a different server slide 22/33

4) OpenVZ details OpenVZ Tools: # # # # vzctl vzctl vzctl vzctl create 101 --ostemplate fedora-core-5 set 101 --ipadd 192.168.4.45 --save start 101 exec 101 ps ax PID TTY STAT TIME COMMAND 1? Ss 0:00 init 11830? Ss 0:00 syslogd -m 0 11897? Ss 0:00 /usr/sbin/sshd 11943? Ss 0:00 xinetd -stayalive -pidfile... 12218? Ss 0:00 sendmail: accepting connections 12265? Ss 0:00 sendmail: Queue runner@01:00:00 13362? Ss 0:00 /usr/sbin/httpd 13363? S 0:00 \_ /usr/sbin/httpd... 13373? S 0:00 \_ /usr/sbin/httpd 6416? Rs 0:00 ps axf # vzctl enter 101 bash# logout # vzctl stop 101 # vzctl destroy 101 slide 23/33

4) OpenVZ details OpenVZ Tools: # vzpkgls fedora-core-5-i386-default centos-4-x86_64-minimal # vzpkgcache (creates templates from metadata/updates existing templates) # vzyum 101 install gcc (installs gcc and its deps to VE 101) slide 24/33

4) OpenVZ details Performance Evaluation of Virtualization Technologies for Server Consolidation (April 2007, HP Laboratories Palo Alto): For all the cases tested, the virtualization overhead observed in OpenVZ is limited, and can be neglected in many scenarios. (http://www.hpl.hp.com/techreports/2007/hpl-2007-59.pdf) slide 25/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 26/33

5) live switchover enhancement uses OpenVZ's checkpointing feature allows rolling kernel-upgrades without shutting down virtual environments the following scripts are necessary: cluster_freeze.sh cluster_unfreeze.sh live_switchover.sh an adjusted init script for openvz slide 27/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 28/33

6) outlook: LBVM LBVM (load balancing of virtual machines) allows sharing virtual machines among physical servers in a predefined cluster LB MONITOR: load balancer itself (uses different algorithms to decide which virtual machines should be moved or reported) LBM script: management interface to the load balancer (is used to view all balanced virtual machines, review log files and reports, manually migrate) LB LOG: small cronjob which runs regularly on each server to monitor predefined resources (the resource logs are stored on a shared storage and are evaluated by the load balancer) slide 29/33

6) outlook: LBVM slide 30/33

Agenda 1. Cluster Technolgies Overview 2. HA clustering best practices 3. Concept of HA cluster with OpenVZ 4. OpenVZ details 5. Live Switchover enhancement 6. Outlook: LBVM (load balancing of virtual machines) 7. Conclusion slide 31/33

7) Conclusion What is it? What does it do? Linux High Availability Cluster with OS-level virtualisation Who can use it? What are typical usage szenarios? slide 32/33 mirrors whole virtual environments on two cluster nodes restarts virtual environments in case of an outage on the second (remaining) node Linux administators Misson-Critical database server, mail server, web server,...

Resources http://openvz.org/ http://wiki.openvz.org/ha_cluster_with_drbd_and_heartbeat http://www.centos.org/ http://www.linux-ha.org/ http://www.drbd.org/ http://www.hpl.hp.com/techreports/2007/hpl-2007-59.pdf http://lbvm.sourceforge.net/ Thanks for your attention! slide 33/33