this presentation may contain vmwaredownload3.vmware.com/vmworld/2005/pac177.pdf · machine2...

41

Upload: others

Post on 06-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont
Page 2: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

This presentation may contain VMware confidential information.

Copyright © 2005 VMware, Inc. All rights reserved. All other marks and names mentioned herein may be trademarks of their respective

companies.

Page 3: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

PAC177Distributed Availability Service

(DAS) Architecture

Sridhar RajagopalVMware

Page 4: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

What Is It?

Provides high availability to virtual machines through automatic failover, on a cluster of ESX Server hosts Easy configuration, management and

monitoring of the high availability service Customizable behavior for individual

virtual machines

Page 5: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Outline

Overview Traditional failover Failover of virtual machines Distributed Availability Service (DAS) Example Conclusion

Page 6: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Availability

High availability Immediate response to failure, at the

application or machine level

Proactive availability Responding to events as system maintenance,

load fluctuations, workflow cycles, errors

Availability continuum Improved, high, continuous availability

Page 7: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Active-Passive

X

192.168.1.1 192.168.1.1

Page 8: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Active-Active

X

192.168.1.1

192.168.1.1

192.168.1.2

Page 9: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Advanced Configurations

N-to-one N+1 N-to-N

X

Page 10: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Traditional Failover

Need to cluster important applications Need to configure each node and application,

with additional setup on each node Non-clustered applications have no guarantees Application compatibility Planning spare capacity is not easy

Page 11: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Failover in Virtual Infrastructure

Cluster Server running inside the virtual machine Cluster Server running in the console OS

X

Page 12: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Advantages

Increased application availability at no extra cost No extra application setup

needed on each node. Clustered continuously available

applications get faster resurrection of resources

Page 13: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Issues

Each virtual machine will have to be set up for clustering

Not fully integrated with VirtualCenter(VC), VMotion

VC does not know about failover

Cluster server does not know about planned VC operations like Power-offs, VMotions

VC

VC

?

?

Page 14: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Solution

For a transparent solution VC needs to understand cluster server Virtual machine might change hosts

Cluster Server needs to know about VC Power off, VMotion

Hide the complexity of the interaction from the user VC as a management framework

Page 15: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Distributed Availability Service

A fully integrated, scalable virtual machine failover solution from VMware All virtual machines get transparent

failover support Integrated with VMotion, Distributed Resource

Scheduler (DRS), VC

Page 16: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Architecture DiagramVC Server

Agent

VirtualMachine

Agent Agent

High level architecture with black-box view of Agent

VirtualMachine

VirtualMachine

Page 17: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

VC Planned Operations

Power off Power off will not be construed as failure Powered off, and specifically marked virtual machines

will not be failed over

VMotion: There is a brief window of vulnerability DAS has enough information to restart virtual machine

on origin, target, or another suitable host (if both go down)

Page 18: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Distributed Resource Scheduler

React to dynamic load changes Balance load across the cluster by automatic

virtual machine placement and VMotion

Specify complex resource policies across your cluster with hierarchical resource pools Easily manage and view resource policies

and cluster balance recommendations

Page 19: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

DRS and DAS

The first priority is restarting of failed virtual machines DRS will kick in and rectify sub­optimal

placements DRS has affinity/anti-affinity rules DRS + DAS = proactive + reactive

solution

Page 20: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

DAS

Virtual Machine

Virtual Machine

Virtual Machine

Virtual Machine

Virtual Machine

Virtual Machine

Virtual Machine Virtual Machine

X

VC

Page 21: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Planning and Configuring

Planning your cluster (admission control) Admission control ensures that enough spare

capacity is maintained across the cluster for failover Each host has some available headroom in terms of

memory and CPU Each virtual machine has some minimum memory

and CPU requirements

Page 22: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Capacity Planning

Specify number of host failures If N biggest hosts fail, the virtual machines

should still be relocated Determine worst case failure scenario with

max of the host and virtual machine sizes

Page 23: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Capacity Planning Example

VirtualMachine1

VirtualMachine2

VirtualMachine3

VirtualMachine6

VirtualMachine5

Failover capacity: 1 host failure

VirtualMachine1

VirtualMachine2

VirtualMachine3

VirtualMachine4

Failover capacity: 2 host failure

Virtual Machine1Virtual

Machine2Virtual

Machine2Virtual Machine1

Slot size

VirtualMachine4

Page 24: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Capacity Planning, cont.

Assumes a relatively homogenous cluster This is a conservative scheme Advanced users that want to do their own

planning can turn it off

Virtual machines have priorities If sufficient capacity is not available, more

important virtual machines get failed over first

Page 25: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Failover and errors scenarios

Number of host failures exceeds configured spare capacity Virtual machines with higher priority get

failed over first An alarm is generated

Clustering service is monitored and appropriate events/alarms are raised Integrated with standard VC framework

Page 26: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Example

Create a cluster Plan your cluster: set cluster properties Add hosts to the cluster Create virtual machines Power on virtual machines, set virtual

machine specific policies, if needed Sleep well!

Page 27: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Example

VC

Page 28: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Create Cluster

Page 29: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Configure Cluster

Page 30: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Configure Cluster

Page 31: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Add Hosts to Cluster

Page 32: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Add Host

Page 33: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Move Host into Cluster

Page 34: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Set Virtual Machine Specific Overrides

Page 35: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Power On Virtual Machine

Page 36: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Failover

Page 37: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Example 2: VirtualCenter

VirtualCenter is an application Needs to be highly available to ensure

management and monitoring Can VirtualCenter provide failover for itself? Solution: Run VirtualCenter in a virtual

machine in a DAS cluster

Page 38: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Clustered VirtualCenter, 2

Running VirtualCenter inside a virtual machine, in a cluster that it manages, provides high availability to itself!

VC VC

Page 39: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Conclusion

DAS Automatic failover for all virtual machines Fully integrated with VC, VMotion, DRS Applications running in such virtual machines

get increased availability Configuration and management are simplified Scalable Works with traditional application level failover

and enhances it

Page 40: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

Questions?

Page 41: This presentation may contain VMwaredownload3.vmware.com/vmworld/2005/pac177.pdf · Machine2 Virtual Machine2 Virtual Machine1 Slot size Virtual Machine4. Capacity Planning, cont

PAC879: The Next Phase of Virtual Infrastructure: Introducing ESX Server 3.0 and VirtualCenter 2.0

PAC177: Distributed Availability Services ArchitecturePAC484: Consolidated Backup with ESX Server:

In­Depth ReviewPAC485: Managing Data Center Resources Using the

VirtualCenter Distributed Resource SchedulerPAC532: iSCSI and NAS in ESX Server 3

Details about future releases of our products are available in select sessions at VMworld,

including: