vs5icm_m12_scalability

Upload: jose-nivaldo-valderrama-ortiz

Post on 14-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 VS5ICM_M12_Scalability

    1/29

    Scalability

    Module 12

    2011 VMware Inc. All rights reserved

  • 7/27/2019 VS5ICM_M12_Scalability

    2/29

    You Are Here

    Course Introduction

    Introduction to Virtualization

    Virtual Machines

    Data Protection

    Access & Authentication Control

    Resource Management and Monitoring

    12-2

    2011 VMware Inc. All rights reserved

    Configure and Manage Virtual Networks

    Configure and Manage Virtual Storage

    Managing Virtual Machines

    Scalability

    Patch Management

    Installing vSphere Components

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    3/29

    Importance

    As you scale your VMware vSphere environment, you need to beaware of the vSphere features and functions that will help youmanage your growing environment.

    12-3

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    4/29

    Learner Objectives

    After this lesson, you should be able to do the following:

    Describe the functions of a vSphere Distributed Resource Scheduler(DRS) cluster.

    Explain the benefits of Enhanced vMotion Compatibility (EVC).

    Create a DRS cluster.

    View information about a DRS cluster.

    12-4

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    5/29

    What Is a Cluster?

    A cluster is a collection ofVMware ESXi hosts andassociated virtual machines

    with vSphere High Availabilityand vSphere DistributedResource Scheduler (DRS)enabled.

    12-5

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    A DRS cluster is managed byVMware vCenter Server andhas these resourcemanagement capabilities:

    Initial placement

    Load balancing

    Power management

  • 7/27/2019 VS5ICM_M12_Scalability

    6/29

    What is Storage DRS?

    Storage DRS is used to automatically load balance across multipledatastores.

    Datastores are grouped.

    Performs automatic placement of virtual machines upon creation.

    Storage DRS runs infrequently and does analysis to determine longterm load balancing.

    -

    12-6

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    balancing.

    I/O load history is checked once every 8 hours.

    Storage DRS requires that Storage I/O Control be enabled on all thedatastores.

  • 7/27/2019 VS5ICM_M12_Scalability

    7/29

    DRS Cluster Prerequisites

    DRS works best if the virtual machines meet VMware vSpherevMotion migration requirements.

    To use DRS for load balancing, the hosts in the cluster must be partof a vMotion migration network.

    If not, DRS can still make initial placement recommendations.

    To use shared storage, configure all hosts in the cluster.

    Volumes must be accessible by all hosts.

    12-7

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Volumes must be large enough to store all virtual disks for your virtualmachine.

  • 7/27/2019 VS5ICM_M12_Scalability

    8/29

    DRS Cluster Settings: Automation Level

    Automationlevel

    Initial VMplacement

    Dynamicbalancing

    Configure automation levelfor initial placement of virtualmachines and dynamicbalancing while virtualmachines are running.

    12-8

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Manual Manual Manual

    Partiallyautomated

    Automatic Manual

    Fullyautomated

    Automatic Automatic

    Migration threshold determineshow quickly virtual machines

    are migrated.

  • 7/27/2019 VS5ICM_M12_Scalability

    9/29

    DRS Cluster Settings: EVC

    12-9

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    EVC is a clusterfeature that preventsvMotion migrations

    from failing because of

    incompatible CPUs.

  • 7/27/2019 VS5ICM_M12_Scalability

    10/29

    CPU Baselines for an EVC Cluster

    EVC works at the cluster level, using CPU baselines to configure allprocessors included in the cluster enabled for EVC.

    A baseline is a set ofCPU features supported

    by every host in thecluster.

    12-10

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    cluster enabled for EVC

    CPU baseline feature set

    CPUIDCPUIDCPUID CPUID

    X X X K

  • 7/27/2019 VS5ICM_M12_Scalability

    11/29

    EVC Cluster Requirements

    All hosts in the cluster must meet the following requirements:

    Use CPUs from a single vendor (either Intel or AMD)

    Use Intel CPUs with Core 2 micro architecture and newer

    Use AMD first-generation Opteron CPUs and newer Run ESX 3.5 Update 2 or later

    Be connected to vCenter Server

    12-11

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    e ena e or ar ware v r ua za on - or n e

    Be enabled for execution-disable technology (AMD No eXecute (NX)or Intel eXecute Disable (XD))

    Be configured for vMotion migration

    Applications in virtual machines must be well-behaved.

  • 7/27/2019 VS5ICM_M12_Scalability

    12/29

    DRS Cluster Settings: Swap File Location

    Store the virtual machines swap file with the virtual machine or in aspecified datastore.

    12-12

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    VMware recommends that

    you store the swap file inthe same directory as thevirtual machine.

  • 7/27/2019 VS5ICM_M12_Scalability

    13/29

    DRS Cluster Settings: Affinity Rules for Virtual Machines

    Affinity rules for virtualmachines specify thateither selected virtualmachines be placed onthe same host (affinity)or on different hosts(anti-affinity).

    12-13

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Affinity rules:

    Use for multivirtual machine systems where performance

    benefits virtual machines communicating heavily with one

    another.

    Anti-affinity rules:

    Use for multivirtual machine systems that load-balance

    or require high availability.

    Two rules:

    Keep virtualmachinestogether

    Separate virtualmachines

  • 7/27/2019 VS5ICM_M12_Scalability

    14/29

    DRS Cluster Settings: DRS Groups

    A DRS group is: A group of

    virtualmachines

    A group ofhosts

    A virtualmachine can

    12-14

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    belong tomultiple virtualmachine DRSgroups.

    A host canbelong tomultiple hostDRS groups.

    groups are use n

    defining VirtualMachines to Hosts

    affinity rules.

  • 7/27/2019 VS5ICM_M12_Scalability

    15/29

    DRS Cluster Settings: Virtual Machines to Hosts Affinity Rules

    A Virtual Machinesto Hosts affinity rule:

    Specifies anaffinity relationshipbetween a virtualmachine DRSgroup and a hostDRS group

    Other options:Must run on hosts in group,

    Must Not run on hosts in rou

    12-15

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Is either a requiredrule or apreferential rule

    Should Not run on hosts in group

  • 7/27/2019 VS5ICM_M12_Scalability

    16/29

    Virtual Machines to Hosts Affinity Rule: Preferential

    A preferential rule is softly enforced and can be violated ifnecessary.

    Example:

    Group A

    12-16

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    machineson different bladesystems.

    Blade Chassis A Blade Chassis B

    DRS cluster

  • 7/27/2019 VS5ICM_M12_Scalability

    17/29

    Virtual Machines to Hosts Affinity Rule: Required

    A required rule is strictly enforced and can never be violated.

    Example:

    Group A

    12-17

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    n orce

    host-basedISV licensing.

    ISV-licensed

    DRS cluster

  • 7/27/2019 VS5ICM_M12_Scalability

    18/29

    DRS Cluster Settings: Automation at the Virtual Machine Level

    Optionally, set automation level per virtual machine.

    12-18

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    19/29

    Adding a Host to a Cluster

    When adding a new host or moving a host into the cluster, you cankeep the resource pool hierarchy of the existing host.

    For example, add sc-quail04 to Lab Cluster.

    When addingthe host

    12-19

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    choose tocreate aresource

    pool for thishosts virtual

    machinesand resource

    pools.

  • 7/27/2019 VS5ICM_M12_Scalability

    20/29

    Viewing DRS Cluster Information

    The cluster Summary tab alsoprovides information specific toDRS.

    The View Resource DistributionChart link displays CPU andmemory utilization per host.

    12-20

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    21/29

    Viewing DRS Recommendations

    Edit cluster properties.

    Refresh recommendations.

    12-21

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Apply a subset of

    recommendations.

    Apply all

    recommendations.

  • 7/27/2019 VS5ICM_M12_Scalability

    22/29

    Monitoring Cluster Status

    View the inventory hierarchy for the cluster state.

    View the clusters Tasks & Events tab for more information.

    12-22

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    23/29

    Maintenance Mode and Standby Mode

    To service a host in a cluster (for example, to install more memory)or remove a host from a cluster, you must place the host inmaintenance mode.

    Virtual machines on the host should be migrated to another host orshut down.

    You cannot power on virtual machines or migrate virtual machines toa host entering maintenance mode.

    12-23

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    While in maintenance mode, the host does not allow you to deploy orpower on a virtual machine.

    When a host is placed in standby mode, it is powered off.

    This mode is used by VMware Distributed Power Management to

    optimize power usage.

  • 7/27/2019 VS5ICM_M12_Scalability

    24/29

    Removing a Host from the DRS Cluster

    Before removing a host froma DRS cluster, consider thefollowing issues:

    The resource pool hierarchy

    remains with the cluster. Because a host must be in

    maintenance mode, allvirtual machines running on

    12-24

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    .

    The resources available forthe cluster decrease.

  • 7/27/2019 VS5ICM_M12_Scalability

    25/29

    Improving Virtual Machine Performance

    Methods forimproving virtualmachineperformance Fine Use network

    traffic shaping.

    Modify the virtualmachines CPU and memory

    12-25

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    Broad

    Use a DRS cluster.

    Use storage multipathing.

    Use NIC teaming.

    Modify the resource pools CPU andmemory limits and reservations.

    reservations.

  • 7/27/2019 VS5ICM_M12_Scalability

    26/29

    Using vSphere High Availability and DRS Together

    Reasons why vSphere HA might not be able to fail over virtualmachines:

    vSphere HA admission control is disabled

    Required Virtual Machines to Hosts affinity rule prevents vSphere HAfrom failing over.

    Sufficient aggregated resources exist, but they are fragmented acrosshosts.

    12-26

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

    In such cases, vSphere HA uses DRS to try to adjust the cluster bymigrating virtual machines to defragment the resources

  • 7/27/2019 VS5ICM_M12_Scalability

    27/29

    Lab 19

    In this lab, you will implement a DRS cluster.

    1. Create a DRS cluster.

    2. Verify proper DRS cluster functionality.

    3. Create, test, and disable affinity rules.

    4. Create, test, and disable anti-affinity rules.

    5. Create, test, and disable virtual machine to host affinity rules.

    12-27

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    28/29

    Review of Learner Objectives

    You should be able to do the following:

    Describe the functions of a DRS cluster.

    Explain the benefits of EVC.

    Create a DRS cluster.

    View information about a DRS cluster.

    Remove a host from a DRS cluster.

    12-28

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A

  • 7/27/2019 VS5ICM_M12_Scalability

    29/29

    Key Points

    DRS clusters provide automated resource management for multipleESXi hosts.

    12-29

    2011 VMware Inc. All rights reserved

    VMware vSphere: Install, Configure, Manage Revision A