Successfully Virtualizing SQL Server on vSphere: Straight from the Source M2 technical Deck (12-2017) Randy Knight SQL Solutions Group Founder.

Slides:



Advertisements
Similar presentations
Capacity Planning in a Virtual Environment
Advertisements

Implementing vSphere David J Young. Implementing vSphere Agenda Virtualization vSphere ESXi vSphere Client vCenter Storage Implementation Benefits Lessons.
Tag line, tag line SnapDrive for Windows 6.2 Customer Technical Presentation November 2009.
System Center 2012 R2 Overview
VSphere 4 Best Practices/ Common Support Issues Paul Hill Research Engineer, System Management VMware.
© 2010 VMware Inc. All rights reserved Confidential Performance Tuning for Windows Guest OS IT Pro Camp Presented by: Matthew Mitchell.
Denny Cherry MVP, MCSA, MCDBA, MCTS, MCITP.
Microsoft virtual machine converter
Lesson 7: Creating and Configuring Virtual Machine Settings
Introducing VMware vSphere 5.0
Yes, yes it does! 1.Guest Clustering is supported with SQL Server when running a guest operating system of Windows Server 2008 SP2 or newer.
Virtualization 101.
Virtualization Infrastructure Administration Cluster Jakub Yaghob.
Storage Management Module 5.
VMware vCenter Server Module 4.
Yes No Emulated Devices No Hyper-V integration Limited manageability Limited functionality OK CPU, weak disk/net.
Scalability Module 6.
VMware vSphere 4 Introduction. Agenda VMware vSphere Virtualization Technology vMotion Storage vMotion Snapshot High Availability DRS Resource Pools Monitoring.
Robert Larson Delivery Architect Microsoft Corporation SESSION CODE: WSV316 David Lef Principal Systems Architect Microsoft Corporation.
1 Some Context for This Session…  Performance historically a concern for virtualized applications  By 2009, VMware (through vSphere) and hardware vendors.

Virtual Machines Module 7.
How to Resolve Bottlenecks and Optimize your Virtual Environment Chris Chesley, Sr. Systems Engineer
Hands-On Virtual Computing
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2010 Seminar #1 VIRTUALIZATION EVERYWHERE.
Microsoft Virtual Academy. 2 Competitive Advantages I - Core VirtualizationII - Private Cloud.
Appendix B Planning a Virtualization Strategy for Exchange Server 2010.
VMware Infrastructure 3 The Next Generation in Virtualization.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
INTRODUCTION TO VIRTUALIZATION KRISTEN WILLIAMS MOSES IKE.
Running Linux on Hyper-V and in Azure Anurag Gupta M357.
Hyper-V Performance, Scale & Architecture Changes Benjamin Armstrong Senior Program Manager Lead Microsoft Corporation VIR413.
VMware vSphere Configuration and Management v6
Michael Kelley Virtualizing Linux and FreeBSD Workloads on Windows Server Hyper-V INF335 A.
1 | SharePoint Saturday Calgary – 31 MAY 2014 About Me.
© Copyright 2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HP Restricted Module 7.
Yes, yes it does! Weights & Reserves vNUMA (SQL & IIS 8) LP:VP Ratios: SQL – N/A SP – 1:1 (Max 2:1) Dynamic Memory SP – No SQL.
Hands-On Virtual Computing
1 Best Practices for Monitoring Databases on VMware Dean Richards Senior DBA, Confio Software.
REMINDER Check in on the COLLABORATE mobile app Best Practices for Oracle on VMware - Deep Dive Darryl Smith Chief Database Architect Distinguished Engineer.
Module Objectives At the end of the module, you will be able to:
© 2015 VMware Inc. All rights reserved. Creating Virtual Machines Module 3.
vSphere 6 Foundations Exam Training
“Geek Out”: DIY vSphere 5.1 Lab Hartford / CT VMware User Group March 28 th, 2013 Matt Kozloski.
VIRTUAL MACHINE – VMWARE. VIRTUAL MACHINE (VM) What is a VM? – A virtual machine (VM) is a software implementation of a computing environment in which.
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
Open Source Virtualization Andrey Meganov RHCA, RHCX Consultant / VDEL
PHD Virtual Technologies “Reader’s Choice” Preferred product.
Power Systems with POWER8 Technical Sales Skills V1
Virtualization for Cloud Computing
2V0-620 Real Questions with Correct Answers
vSphere 6 Foundations Beta Question Answer
VSPHERE 6 FOUNDATIONS BETA Study Guide QUESTION ANSWER
Deep Serucity 7.0 Training
OnCommand Insight Host File System Utilization
Welcome! Thank you for joining us. We’ll get started in a few minutes.
Windows Azure Migrating SQL Server Workloads
Creating a Windows Server 2016 Datacenter Virtual machine
Creating a Windows 7 Professional SP1 Virtual machine
Optimizing SQL Server Performance in a Virtual Environment
Xen Summit Spring 2007 Platform Virtualization with XenEnterprise
“Geek Out”: DIY vSphere 5.1 Lab
Presented by: Brandon Leach Senior DBA, SurveyMonkey Deck Written By:
Virtualization 101.
SQL Server performance tuning on Azure IaaS
Building continuously available systems with Hyper-V
Virtualization Charles Warren.
05 | Hyper-V Clustering Elden Christensen | Principal Program Manager Lead | Microsoft Symon Perriman | Vice President | 5nine Software.
PerformanceBridge Application Suite and Practice 2.0 IT Specifications
Managing and monitoring SQL Server on Linux from the command line
Presentation transcript:

Successfully Virtualizing SQL Server on vSphere: Straight from the Source M2 technical Deck (12-2017) Randy Knight SQL Solutions Group Founder

Agenda vSphere supports of SQL Server High Availability Options vSphere Platform Configuration Recommendations

Clustering SQL Server on vSphere

SQL Server High Availability Options SQL Server FCI (Failover Cluster Instances) Provides HA on the SQL Server Instance level with WSFC Require a shared disk(s) between VMs Require support of SCSI3 Persistent Reservations by Storage Array Supported on VMware vSphere: Use vSphere 6.x (preferably 6.5 or higher) Use pRDMs in physical compatibility mode as shared storage Configure vSCSI controller to use physical SCSI Bus Sharing Require DRS Anti-Affinity Groups vSphere 6.7 enables use of VVOLs instead of pRDMs vSphere 6.X supports vMotion of a VM with pRDMs in physical compatibility mode NOTES: Multi-writer flag is no supported no required! Support for shared VMDK on VMFS/vSAN is not there yet, but coming soon!

SQL Server FCI / WSFC

SQL Server High Availability Options SQL Server Always On Availability Groups Provides HA on the database level (SQL Server 2016 and higher recommended) Relies on SQL Server replication over network (sync/async) to synchronize databases between members of AGs Use a components of WSFC but does not require a shared storage Supported on VMware vSphere with no restrictions / special configurations requirements: DRS Anti-Affinity Groups are recommended Tuning Heartbeat settings of WSFC is recommended 10 GB or higher network circuit for the vMotion network is required

vSphere Platform Configuration Recommendations

“A problem thoroughly understood is always fairly simple “A problem thoroughly understood is always fairly simple. Found your opinions on facts, not prejudices. We know too many things that are not true.” Oleg complains about app performance decrease! Charles Kettering Inventor and philosopher General Motors

Ensuring Microsoft SQL Server Performance on vSphere Physical Hardware VMware HCL BIOS / Firmware Power / C-States Hyper-threading NUMA ESXi Host Power Policy Virtual Switches vMotion Portgroups Virtual Machine Resource Allocation Storage Memory CPU / vNUMA Networking vSCSI Controller Guest Operating System Power CPU Storage IO

vCenter objects vCenter Server Configuration: Statistic levels ESXi Cluster Compute Resource Configuration: vSphere High Availability -- ON Admission control – Failover Host DRS Cluster - ON (Fully automated) VMware Enhanced vMotion Compatibility -- OFF Resource Pools – AVOID !should not be used as folders for virtual machines!

Power Management Change BIOS Power setting to “OS controlled” Default Hardware Power Scheme Unsuitable for Virtualization Change BIOS Power setting to “OS controlled” Set ESXi Power Management Policy to “High Performance” Enable Turbo Boost (or Equivalent) Disable Processor C-states / C1E halt State

Virtual Machine CPU Configuration Cores per Socket: Total vCPU = (Number of virtual Socket) * (Number of virtual Cores per socket) Reflect your hardware configuration while configuring cores per socket ratio CPU Hot Plug – Disabled CPU Affinity - Disabled CPU Reservations - might be used in the overcommitted environment Per Virtual Machine EVC Mode – For Cross-migrations! vNUMA – stay with one pNUMA and check the resulting configuration

Check NUMA topology For ESXi host: For Virtual Machine (VM): esxcli hardware memory get | grep NUMA sched-stats -t ncpus For Virtual Machine (VM): vmdumper -l | cut -d \/ -f 2-5 | while read path; do egrep -oi “DICT.*(displayname.*|numa.*|cores.*|vcpu.*|memsize.*|affinity.*)= .*|numa:.*|numaHost:.*” “/$path/vmware.log”; echo -e; done

Virtual Machine Memory Configuration Avoid overcommitment of memory at the ESXi host level Consider setting the memory reservation equal to the provisioned memory. Consider using SQL Server native performance metrics (available using SQL Server DMVs) Consider checking the hardware pNUMA memory allocation (% of Remote Memory) Always install VMware Tools (leave the balloon driver enabled) Memory Hot Plug - has no performance impact When a SQL Server deployment is virtualized, the hypervisor performs virtual memory management without the knowledge of the guest OS and without interfering with the guest OS’s own memory management subsystem

Virtual Machine Storage Options VMFS (VMWARE VIRTUAL MACHINE FILE SYSTEM) VMFS version 6, used as the default in vSphere 6.5 and 6.7: Do not use VMFS3 or VMFS3 upgraded DS NFS: Fully Supported both by VMware and Microsoft except for shared cluster disks RDM (RAW DEVICE MAPPING): directly access a volume on the physical storage subsystem without formatting it with VMFS Virtual Volumes: Direct interaction and exposing capabilities of a storage system Require VASA provider

VMFS vs. RDM

Storage Best Practices Partition Alignment (default to 1 MB boundaries) Magnetic Disk Always eager zeroed thick SSD / Flash Storage Follow vendor Best Practices Separate the workload between VMDKs (up to 256 in vSphere 6.7) Use PVSCSI virtual controller (up to 4 per VM) LSI SAS (default) okay for OS Drive Limit the use of snapshots VM based backup using snapshots should be avoided Short Term is okay

Networking Recommendations Separate traffic between different port groups and physical NICs Use jumbo frame for vMotion (not needed/hard to consistently configure for VM networks) 10 GB vMotion network or higher VMXNET3 and latest VMware Tools Separate iSCSI and Network traffic

Maintaining a Virtual Machine Upgrade VMware Tools - use the latest version, tools are de-coupled from ESXi host Upgrade the Virtual Machine Compatibility – vHardware to match your ESXi host version

Windows Server Configuration Power Policy – use High-Performance Power Plan to avoid core parking Enable Receive Side Scaling (RSS) / check with Netsh int tcp show global Increase PVSCSI queue depth Configure exceptions for Antivirus Software Other Applications – do not use together with SQL Server Always Install VMware tools

Linux Server Configuration Supported distro: Red Hat Enterprise Linux (RHEL) 7.3 or 7.4; • SUSE Linux Enterprise Server (SLES) v12 SP2; • Ubuntu 16.04. VMware Tools Configure Power Scheme Enable Receive Side Scaling

SQL Server Configuration Maximum / Minimum Server Memory Lock Pages in Memory Large Pages CXPACKET, MAXDOP, and CTFP Instant File Initialization

Thank you

Resources Running SQL Server on VMware vSphere: https://blogs.vmware.com/apps/microsoft/sql SQL Server Configuration Recommendation: http://www.vmw.re/sql-arch SQL Server on vSphere: Resources: https://blogs.vmware.com/apps/microsoft-resources