mythbusting goes v irtual

55
MYTHBUSTING GOES VIRTUAL MATTIAS SUNDLING ERIC SLOOF

Upload: darius

Post on 25-Feb-2016

37 views

Category:

Documents


0 download

DESCRIPTION

Mythbusting Goes V irtual. Mattias Sundling Eric Sloof. Mythbusting Goes Virtual. Eric Sloof VMware Certified Instructor NTPRO.NL @ esloof. Mattias Sundling Evangelist Dell Software @ msundling. Agenda/Myths. VMware HA works out-of-the-box VMware s napshots impacts performance - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Mythbusting Goes  V irtual

MYTHBUSTING GOES VIRTUALMATTIAS SUNDLINGERIC SLOOF

Page 2: Mythbusting Goes  V irtual

MYTHBUSTING GOES VIRTUAL

Mattias SundlingEvangelistDell Software@msundling

Eric SloofVMware Certified InstructorNTPRO.NL@esloof

Page 3: Mythbusting Goes  V irtual

AGENDA/MYTHS

1. VMware HA works out-of-the-box2. VMware snapshots impacts performance3. Disk provisioning type doesn’t affect performance4. Always use VMware tools to sync the time in your VM

Page 4: Mythbusting Goes  V irtual

VMware HA works out-of-the-box

MYTH 1

Page 5: Mythbusting Goes  V irtual

MOST CONFIGURED ADMISSION CONTROL POLICY

WHY?

Page 6: Mythbusting Goes  V irtual

ENABLING VMWARE HIGH AVAILABILITY

Page 7: Mythbusting Goes  V irtual

HOST FAILURES A CLUSTER TOLERATES

ESX01 ESX02 ESX03

Shared storage – vm.vmdk

Page 8: Mythbusting Goes  V irtual

DEFAULT MINIMUM SLOT SIZE

• If you have not specified a CPU reservation for a virtual machine, it is assigned a default value of 32MHz.

• When the memory reservation is 0, the slot size equals the virtual machine overhead.

32 MHz69 MB

VM1 VM2 VM3 VM4 VM..n

Page 9: Mythbusting Goes  V irtual

SLOT SIZE BASED ON RESERVATION

• vSphere HA calculates the CPU and memory slot size by obtaining the largest CPU and memory reservation of each powered-on virtual machine.

512 MHz1093 MB

VM1 VM2 VM3 VM4 VM…n

Page 10: Mythbusting Goes  V irtual

HA ADVANCED SETTINGS

• das.slotcpuinmhz• das.vmcpuminmhz

Memory reservation

CPU reservation

SLOT

SLOT

• das.slotmeminmb• das.vmmemoryminmb

Page 11: Mythbusting Goes  V irtual

SPECIFY A FIXED SLOT SIZE EXPLICITLY

Page 12: Mythbusting Goes  V irtual

VMS REQUIRING MULTIPLE SLOTS

512 MHz512 MB

VM1 VM2 VM3 VM4 VM5 VM6

Reservation

Slot size

• You can also determine the risk of resource fragmentation in your cluster by viewing the number of virtual machines that require multiple slots.

• VMs might require multiple slots if you have specified a fixed slot size or a maximum slot size using advanced options.

Page 13: Mythbusting Goes  V irtual

FRAGMENTED FAILOVER CAPACITY

ESX1 ESX2 ESX3

Shared storage – vm.vmdk

Page 14: Mythbusting Goes  V irtual

WORST CASE SCENARIO

ESX01 3.6 GHz 16 GB

ESX02 3.6 GHz16 GB

ESX03 3.6 GHz32 GB

Shared storage – vm.vmdk

Page 15: Mythbusting Goes  V irtual

KEEP HOSTS THE SAME SIZE

Host memory: 3 * 16 GB Host memory: 2 * 16 GB

1 * 32 GB

Page 16: Mythbusting Goes  V irtual

PERCENTAGE OF CLUSTER RESOURCES RESERVED

ESX01 ESX02 ESX03

Shared storage – vm.vmdk

Page 17: Mythbusting Goes  V irtual

PERCENTAGE RESERVED AS FAILOVER CAPACITY

Page 18: Mythbusting Goes  V irtual

ADMISSION CONTROL BASED ON RESERVATIONS

• vSphere HA uses the actual individual reservations of the virtual machines.

• The CPU component by summing the CPU reservations of the powered-on VMs.

Page 19: Mythbusting Goes  V irtual

COMPUTING THE CURRENT FAILOVER CAPACITY

• If you have not specified a CPU reservation for a VM, it is assigned a default value of 32MHz

Page 20: Mythbusting Goes  V irtual

RESOURCES RESERVED IS NOT UTILIZATION

• The Current CPU Failover Capacity is computed by subtracting the total CPU resource requirements from the total host CPU resources and dividing the result by the total host CPU resources.

Page 21: Mythbusting Goes  V irtual

PERCENTAGE RESERVED ADVANCED SETTING

• The default CPU reservation for a VM can be changed using the das.vmcpuminmhz advanced attribute

• das.vmmemoryminmb defines the default memory resource value assigned to a VM

Page 22: Mythbusting Goes  V irtual

WHAT ABOUT THE WEB CLIENT

Page 23: Mythbusting Goes  V irtual

SPECIFY FAILOVER HOSTS ADMISSION CONTROL POLICY

ESX01 ESX02 ESX03

Shared storage – vm.vmdk

Page 24: Mythbusting Goes  V irtual

SPECIFY FAILOVER HOSTS ADMISSION CONTROL POLICY

• Configure vSphere HA to designate specific hosts as the failover hosts

Page 25: Mythbusting Goes  V irtual

THE FAILOVERHOST

To ensure that spare capacity is available on a failover host, you are prevented from powering on virtual machines or using vMotion to migrate VMs to a failover host.

Also, DRS does not use a failover host for load balancing

If you use the Specify Failover Hosts admission control policy and designate multiple failover hosts, DRS does not attempt to enforce VM-VM affinity rules for virtual machines that are running on failover hosts.

Page 26: Mythbusting Goes  V irtual

STATUS OF THE CURRENT FAILOVER HOSTS

Red - The host is disconnected, in maintenance mode, or has vSphere HA errors.

Green - The host is connected, not in maintenance mode, and has no vSphere HA errors. No powered-on VMs reside on the host.

Yellow - The host is connected, not in maintenance mode, and has no vSphere HA errors. However, powered-on VMs reside on the host.

Page 27: Mythbusting Goes  V irtual

MYTH BUSTED

• VMware High Availability needs to be configured• Be careful with reservations• Always check run-time information

Page 28: Mythbusting Goes  V irtual

VMware snapshots impacts performance

MYTH 2

Page 29: Mythbusting Goes  V irtual

WHAT IS A SNAPSHOT?

• Preserves state and data of a VM at a specific point in time

• Data includes virtual disks, settings, memory (optionally)• Allows you to revert to a previous state• Typically used by VM admins when doing changes and

by backup software• ESX3, ESX(i)4 had issues with deleting snapshots• ESXi5 improved snapshot consolidation

Page 30: Mythbusting Goes  V irtual

WHAT IS A SNAPSHOT?

File Description

.vmdk Original virtual disk

delta.vmdk Snapshot delta disk

.vmsd DB file with relations between snapshots

.vmsn Memory file

• Snapshot grows in 16MB chunks– Requires locking

Page 31: Mythbusting Goes  V irtual

LOCKS

• Locks are necessary when creating, deleting and growing snapshot, power on/off, create VMDK

• ESX(i)4 used SCSI-2 reservation– Locks entire LUN

Page 32: Mythbusting Goes  V irtual

LOCKS

• ESXi5 uses Atomic Test & Set (ATS) VAAI primitive– Locks only individual VM– Requires VAAI enabled array and VMFS-5

Page 33: Mythbusting Goes  V irtual

PERFORMANCE

• Locking– ATS increase performance up to 70% compared to

SCSI-2 reservation • Normal operations

– Snapshot age– Number of snapshots– Snapshot size

• Be careful with snapshots in production!

Page 34: Mythbusting Goes  V irtual

• Improvements to snapshots management and locking• Snapshots still have impact on performance

NOT

MYTH NOT BUSTED

Page 35: Mythbusting Goes  V irtual

Disk provisioning type doesn’t affect performance

MYTH 3

Page 36: Mythbusting Goes  V irtual

DISK TYPES

Page 37: Mythbusting Goes  V irtual

BLOCK ALLOCATION

VMDK

Block Block Block

VMDK File Size

Written BlocksThick Provision Lazy Zeroed

VMDK

Block Block Block

VMDK File Size

Written BlocksThin Provision

VMDK

Block Block Block

VMDK File Size

Written BlocksThick Provision Eager Zeroed

VMDKVMDK

Page 38: Mythbusting Goes  V irtual

THE ISCSI LABORATORY

• Iomega StorCenter px6-300d with 6 SATA 7200 Disks

• Windows 2008 R24096 MB – 1 vCPUHardware Version 9

• VMware vSphere 5.1• Single Intel 1GB Ethernet• Cisco 2960 switch

MTU Size 1500

Page 39: Mythbusting Goes  V irtual

3 DIFFERENT DISKS• Thick Provision Lazy Zeroed

• Thin Provision

• Thick Provision Eager Zeroed

Page 40: Mythbusting Goes  V irtual

THICK PROVISION LAZY ZEROED

Average Write 13.3 MB/s - Access time: 44.8 ms

Page 41: Mythbusting Goes  V irtual

THIN PROVISION

Average Write 13.7 MB/s - Access time: 46.8 ms

Page 42: Mythbusting Goes  V irtual

THICK PROVISION EAGER ZEROED

Average Write 86.6 MB/s - Access time: 9.85 ms

Page 43: Mythbusting Goes  V irtual

COMPARISION

Average Write 13.3 MB/s - Access time: 44.8 ms

Average Write 13.7 MB/s - Access time: 46.8 ms

Average Write 86.6 MB/s - Access time: 9.85 ms

THICK PROVISION LAZY ZEROED

THIN PROVISION

THICK PROVISION EAGER ZEROED

Page 44: Mythbusting Goes  V irtual

MIGRATION

• Storage vMotion is able to migrate the disk format of a Virtual Machine

Page 45: Mythbusting Goes  V irtual

MYTH BUSTED

• Thin and Lazy Zeroed disks have the same speed• Once allocated, these disks are as fast as Zeroed disks• Thick Provision Eager Zeroed offer best performance

from first write on

Page 46: Mythbusting Goes  V irtual

Always use VMware tools to sync the time in your VM

MYTH 4

Page 47: Mythbusting Goes  V irtual

TIME SYNC PROBLEMS

• VMs have not access to native physical HW timers

• Scheduling can cause time to fall behind• CPU / Memory overcommit increases risk• People are mixing different time sync options

Page 48: Mythbusting Goes  V irtual

VMWARE TOOLS

• ESX(i) 4 and prior – not possible to adjust time backwards

• ESXi 5 – Improved time sync to be more accurate and can also adjust time backwards

• Enable/Disable periodic sync in VMware Tools GUI, vCenter or VMX file

Page 49: Mythbusting Goes  V irtual

VMWARE TOOLS

• Default periodic sync interval is 60 sec• Sync is forced even when periodic sync is disabled:

– Resume, Revert Snapshot, Disk Shrink and vMotion

• In order to disable completely configure vmx file– Testing scenariostools.syncTime = FALSE time.synchronize.continue = FALSE time.synchronize.restore = FALSE time.synchronize.resume.disk = FALSE time.synchronize.shrink = FALSE time.synchronize.tools.startup = FALSE time.synchronize.resume.host = FALSE

Page 50: Mythbusting Goes  V irtual

GUEST OS SERVICES

• Windows (W32Time service)– Windows 2000 uses SNTP– Windows 2003+ uses NTP and provides better sync

options and accuracy– Domain joined VMs sync from DC– Use Group Policy to control settings

• Linux (NTP)– Configure ntpd.conf– Start ntpd

• chkconfig ntpd on• /etc/init.d/ntpd start

Page 51: Mythbusting Goes  V irtual

BEST PRACTICES

• ESX(i) hosts:– Configure multiple NTP servers– Start NTP Service

• Virtual Machines:– Disable VMware Tools periodic sync– DC: Configure multiple NTP servers (same as ESX(i)

host)– Domain joined will sync with DC– If not domain joined then configure W32Time or NTP

manually• Do not use both VMware Tools periodic sync and Guest

OS time sync simultaneously!

Page 52: Mythbusting Goes  V irtual

MYTH BUSTED

• Use W32Time or NTP • Do not use VMware Tools period sync

Page 53: Mythbusting Goes  V irtual

SUMMARY

• Myth 1: VMware High Availability needs to be configured, be careful with reservations and always check run-time information

• Myth 2:Improvements to snapshot management and locking but still performance impact

• Myth 3: Use Thick Eager Zeroed disks for best I/O performance

• Myth 4: Use W32Time or NTP to sync time instead of VMware Tools

Page 54: Mythbusting Goes  V irtual

VMWORLDTV

• http://www.youtube.com/VMworldTV