SlideShare una empresa de Scribd logo
1 de 37
Virtualization for DBAs
Joey D’Antoni
June 27, 2012
Northern Virginia SQL Users Group
About Me
 Senior SQL Server DBA at Comcast
 Blog: joedantoni.wordpress.com
 Twitter @jdanton
 Email jdanton1@yahoo.com
3/18/2022
|
Footer Goes Here
2 |
Virtualization
 Major Players
 Terms
 Costs and Benefits
 Technology
 Optimizing SQL for a Virtual Environment
 Summary
Major Virtualization Players
It seemed like a good idea at the time…
Server Room Sprawl
 Server sprawl
 SQL sprawl
 Power and Cooling Issues in DCs
 Broader availability of SAN storage
Terminology
 Guest—The virtual server running
underneath the physical host and hypervisor
(instance of an Operating System)
 Host—The physical server that your virtual
machines run on
 Hypervisor—The underlying software that
performs the load balancing and sharing of
resources between guest operating systems
Terminology (cont’d)
 Thin Provisioning—Allowance in virtual
environments to overallocate physical
resources (more to come later)
 Deduplication—Process of compressing
memory/disk space by saving only one copy
of common bits
 vMotion/LiveMigration—Process which
moves guest OS’s from host with high
resource utilization to lower. Also an HA
function with the hypervisor
Terminology (cont’d)
 Snapshot—A full point in time backup of your
guest OS (very handy for
upgrades/patches/code releases)
 Cloning—The process of building a gold
guest image in order to rapid deployment
Costs
 VMWare isn’t cheap
 Licensing about $25k per server for a Enterprise
plus on a decent sized server
 Licensing changed from CPU—to CPU with
memory grants, allowed 96 GB per CPU license
 Hyper-V
 Included with your Windows Server Licenses
(amount of VMs vary based on edition)
 SCOM, while not required is recommended
Benefits of Virtualization
 Lower cooling and power
 Higher utilization of hardware
 Can be used for HA configurations
 Rapid Deployment of new environments
 Use Gold Standard servers and rollout
 SQL Server Licensing
 Snapshots
How this works…
Host
Hypervisor
Guest Guest Guest
One
Physical
Server
What does the hypervisor do?
 Manages resources between guest O/S
 Memory management
 Backups
 Failover and DR
VMWare Architecture
Snapshots
HA and DR
Typical Hardware
 Virtualization hosts are the typical servers
you might run SQL Server on.
 2 x 4-6 core processors (Dual socket servers
represent 80% of install base)
 A Lot of RAM
Thin Provisioning
 Allows over allocation
of resources
 Increases storage
provisioning
 Management console
allows for easy
management of this
along with SAN
 NOT GOOD FOR
PRODUCTION DB
SERVERS!!!
Shared Environment vs Dedicated
Environment
Multi-Tenant Environments
 This can make monitoring and baselining
your server more challenging
 You will want to have open communications
with your VM administrators
 Ask for view access into VCenter—it will
show you what else is going on in the
environment
CPUs
 Can be over allocated
 Use servers with the newest chips—they are
optimized for Virtual Workloads
 Maintain 1:1 ratio of physical cores to vCPU
for production boxes
 For production workloads you may want to
dedicate CPUs to the machine
Memory Management
 Memory can be
over allocated (but
don’t do it for
production!!!)
 Hypervisor handles
it by de-duplicating
memory.
 Host Page Files
Balloon Driver
Balloon Driver
 When hosts
comes under
memory pressure,
VMWare reclaims
memory from
guests
Storage
I/O Concerns
 Two choices of file types—VMFS (VMWare
File System) and RDM (Raw Device
Mapping)
 Performance between two is similar
 RDM is required for clustering
 VMFS generally more flexible
 Use Shared Storage (SAN) to get HA and DR
functionality
I/O Concerns
 Partition alignments still matters < Windows
2008
 Work with storage team to monitor I/O—
Hypervisors can have strange I/O patterns
Datastores
• It can be easy to overwhelm
storage if not enough storage
devices are presented
• Modern SANs tend to be
designed with this in mind
Windows Server 2012
 Introduces concept of “Storage Spaces”
 Allows storage to be pooled and shared
between multiple VM hosts
 Can be created from non Microsoft platforms
Storage Spaces
Virtual Server
Virtualizing SQL Server
 Use Trace Flag –T834—large pages enabled
 Set min and max memory—this will lock SQL’s
memory to prevent possible balloon driver
impact
 Also reserve memory in HyperVisor for Prod
Servers
 Follow the same storage best practices you
would for a physical box (Separate TempDB,
Data, Logs)
 Test out I/O performance before beginning
Monitoring SQL Server
 From the server perspective everything stays
the same
 Everything may not match at times
 Ask for access to the vSphere client!
 It’s the only way to have an overview into the
broader system
Performance Issues
 Troubleshoot as you normally would, then
check VMWare
 Similarly with a SAN—try to identify what you
apps are sharing your resources
 Can adjust load on the fly by using vMotion
(or Live Migration)
Summary
 Virtualization is the future, and the future is
now!
 Virtual servers work from a shared resource
pool and that can impact your workloads
 Identify changes you need to make to your
SQL Servers for Virtual Environments
 Get access to your virtualization
management layer
Questions?
Contact Info
 Twitter: @jdanton
 Email: jdanton1@yahoo.com
 Blog (slides): joedantoni.wordpress.com

Más contenido relacionado

La actualidad más candente

Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesNuno Alves
 
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееxen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееDenis Gundarev
 
Veeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General OverviewVeeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General OverviewVeeam Software
 
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use CasesVMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use CasesVMworld
 
Integrating your network with windows azure
Integrating your network with windows azureIntegrating your network with windows azure
Integrating your network with windows azureMorgan Simonsen
 
Real world experience with provisioning services
Real world experience with provisioning servicesReal world experience with provisioning services
Real world experience with provisioning servicesCitrix
 
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Andrew Miller
 
Virtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowVirtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowAndrew Miller
 
My notes on vCenter charge back manager
My notes on vCenter charge back managerMy notes on vCenter charge back manager
My notes on vCenter charge back managertechstarts
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...VMworld
 
Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015Duncan Epping
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirionsthirion
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStackEDB
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices Filip Verloy
 
Oracle Virtualization Best Practices
Oracle Virtualization Best PracticesOracle Virtualization Best Practices
Oracle Virtualization Best PracticesEMC
 

La actualidad más candente (20)

Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning services
 
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущееxen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
 
IT Virtualization Presentation
IT Virtualization PresentationIT Virtualization Presentation
IT Virtualization Presentation
 
Veeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General OverviewVeeam Backup & Replication v8 for VMware — General Overview
Veeam Backup & Replication v8 for VMware — General Overview
 
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use CasesVMworld Europe 2014: Virtual SAN Best Practices and Use Cases
VMworld Europe 2014: Virtual SAN Best Practices and Use Cases
 
Managing Hyper-V on a Compellent SAN
Managing Hyper-V on a Compellent SANManaging Hyper-V on a Compellent SAN
Managing Hyper-V on a Compellent SAN
 
Exchange Server 2013 High Availability - Site Resilience
Exchange Server 2013 High Availability - Site ResilienceExchange Server 2013 High Availability - Site Resilience
Exchange Server 2013 High Availability - Site Resilience
 
Integrating your network with windows azure
Integrating your network with windows azureIntegrating your network with windows azure
Integrating your network with windows azure
 
Real world experience with provisioning services
Real world experience with provisioning servicesReal world experience with provisioning services
Real world experience with provisioning services
 
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
 
Double-Take Software
Double-Take SoftwareDouble-Take Software
Double-Take Software
 
Virtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - VarrowVirtualizing Tier One Applications - Varrow
Virtualizing Tier One Applications - Varrow
 
My notes on vCenter charge back manager
My notes on vCenter charge back managerMy notes on vCenter charge back manager
My notes on vCenter charge back manager
 
Windows Azure Virtual Machines
Windows Azure Virtual MachinesWindows Azure Virtual Machines
Windows Azure Virtual Machines
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
 
Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirion
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStack
 
Oracle on vSphere best practices
Oracle on vSphere best practices Oracle on vSphere best practices
Oracle on vSphere best practices
 
Oracle Virtualization Best Practices
Oracle Virtualization Best PracticesOracle Virtualization Best Practices
Oracle Virtualization Best Practices
 

Destacado

Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaJoseph D'Antoni
 
Sql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanSql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanJoseph D'Antoni
 
Always on availability groups way too deep
Always on availability groups way too deepAlways on availability groups way too deep
Always on availability groups way too deepJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonJoseph D'Antoni
 
Center Stone Presentation
Center Stone PresentationCenter Stone Presentation
Center Stone PresentationJuliBaecker
 
Ejec gir&calend pagos feb12
Ejec gir&calend pagos feb12Ejec gir&calend pagos feb12
Ejec gir&calend pagos feb12MarKCreative
 
Prezentacja projektu #mostyWRO podczas SMD'2015
Prezentacja projektu #mostyWRO podczas SMD'2015Prezentacja projektu #mostyWRO podczas SMD'2015
Prezentacja projektu #mostyWRO podczas SMD'2015Agencja Publicon
 
Ejec girad&calend pago may120001
Ejec girad&calend pago may120001Ejec girad&calend pago may120001
Ejec girad&calend pago may120001MarKCreative
 
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015Agencja Publicon
 
Holistic Health Dr. Shriniwas Kashalikar
Holistic Health Dr. Shriniwas KashalikarHolistic Health Dr. Shriniwas Kashalikar
Holistic Health Dr. Shriniwas Kashalikardralka
 
AMO LOS GIRASOLES-I LOVE THE SUN
AMO LOS GIRASOLES-I LOVE THE SUNAMO LOS GIRASOLES-I LOVE THE SUN
AMO LOS GIRASOLES-I LOVE THE SUNMiryana P.
 
Perkupa local action plan en
Perkupa local action plan enPerkupa local action plan en
Perkupa local action plan enmandika
 

Destacado (20)

Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dc
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampa
 
Pass bac jd_sm
Pass bac jd_smPass bac jd_sm
Pass bac jd_sm
 
Sql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanSql saturday powerpoint dc_san
Sql saturday powerpoint dc_san
 
Always on availability groups way too deep
Always on availability groups way too deepAlways on availability groups way too deep
Always on availability groups way too deep
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday boston
 
Center Stone Presentation
Center Stone PresentationCenter Stone Presentation
Center Stone Presentation
 
Formas Basicas
Formas BasicasFormas Basicas
Formas Basicas
 
This Month in Real Estate - October 2009
This Month in Real Estate - October 2009This Month in Real Estate - October 2009
This Month in Real Estate - October 2009
 
Barca Volante 2-1
Barca Volante 2-1Barca Volante 2-1
Barca Volante 2-1
 
Ejec gir&calend pagos feb12
Ejec gir&calend pagos feb12Ejec gir&calend pagos feb12
Ejec gir&calend pagos feb12
 
Test
TestTest
Test
 
Prezentacja projektu #mostyWRO podczas SMD'2015
Prezentacja projektu #mostyWRO podczas SMD'2015Prezentacja projektu #mostyWRO podczas SMD'2015
Prezentacja projektu #mostyWRO podczas SMD'2015
 
Ejec girad&calend pago may120001
Ejec girad&calend pago may120001Ejec girad&calend pago may120001
Ejec girad&calend pago may120001
 
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015
Prezentacja "Muzeum w świecie hyperconnected" podczas SMD'2015
 
Holistic Health Dr. Shriniwas Kashalikar
Holistic Health Dr. Shriniwas KashalikarHolistic Health Dr. Shriniwas Kashalikar
Holistic Health Dr. Shriniwas Kashalikar
 
AMO LOS GIRASOLES-I LOVE THE SUN
AMO LOS GIRASOLES-I LOVE THE SUNAMO LOS GIRASOLES-I LOVE THE SUN
AMO LOS GIRASOLES-I LOVE THE SUN
 
Mortgage Crisis Explained
Mortgage Crisis ExplainedMortgage Crisis Explained
Mortgage Crisis Explained
 
Revista 123 página001
Revista 123 página001Revista 123 página001
Revista 123 página001
 
Perkupa local action plan en
Perkupa local action plan enPerkupa local action plan en
Perkupa local action plan en
 

Similar a Virtualizing SQL Server for DBAs

Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Best Practices For Virtualised Share Point T02 Brendan Law Nathan MercerBest Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Best Practices For Virtualised Share Point T02 Brendan Law Nathan MercerFlamer
 
Building your first sql server cluster
Building your first sql server clusterBuilding your first sql server cluster
Building your first sql server clusterJoseph D'Antoni
 
The have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesThe have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesSolarWinds
 
Virtualizing SharePoint Components
Virtualizing SharePoint ComponentsVirtualizing SharePoint Components
Virtualizing SharePoint Componentswebhostingguy
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerRafał Hryniewski
 
Server Virtualization Seminar Presentation
Server Virtualization Seminar PresentationServer Virtualization Seminar Presentation
Server Virtualization Seminar Presentationshabi_hassan
 
70-410 Practice Test
70-410 Practice Test70-410 Practice Test
70-410 Practice Testwrailebo
 
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2013: Maximize Database Performance in Your Software-Defined Data CenterVMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2013: Maximize Database Performance in Your Software-Defined Data CenterVMworld
 
Cio Breakfast Roundtable 05142009 Final Virtualization
Cio Breakfast Roundtable 05142009 Final VirtualizationCio Breakfast Roundtable 05142009 Final Virtualization
Cio Breakfast Roundtable 05142009 Final Virtualizationguestc900809
 
Azure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosAzure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosBrian Benz
 
Server virtualization and cloud computing
Server virtualization and cloud computingServer virtualization and cloud computing
Server virtualization and cloud computingJoseph D'Antoni
 
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011Michael Noel
 
Hyper v® 2012 vs v sphere™ 5.1 understanding the differences
Hyper v® 2012 vs v sphere™ 5.1 understanding the differencesHyper v® 2012 vs v sphere™ 5.1 understanding the differences
Hyper v® 2012 vs v sphere™ 5.1 understanding the differencesSolarWinds
 
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...VMware
 
Big App Workloads on Microsoft Azure - TechEd Europe 2014
Big App Workloads on Microsoft Azure - TechEd Europe 2014Big App Workloads on Microsoft Azure - TechEd Europe 2014
Big App Workloads on Microsoft Azure - TechEd Europe 2014Brian Benz
 

Similar a Virtualizing SQL Server for DBAs (20)

Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Best Practices For Virtualised Share Point T02 Brendan Law Nathan MercerBest Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
 
Building your first sql server cluster
Building your first sql server clusterBuilding your first sql server cluster
Building your first sql server cluster
 
The have no fear guide to virtualizing databases
The have no fear guide to virtualizing databasesThe have no fear guide to virtualizing databases
The have no fear guide to virtualizing databases
 
Del 1
Del 1Del 1
Del 1
 
Virtualizing SharePoint Components
Virtualizing SharePoint ComponentsVirtualizing SharePoint Components
Virtualizing SharePoint Components
 
Azure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL ServerAzure SQL - more or/and less than SQL Server
Azure SQL - more or/and less than SQL Server
 
Server Virtualization Seminar Presentation
Server Virtualization Seminar PresentationServer Virtualization Seminar Presentation
Server Virtualization Seminar Presentation
 
70-410 Practice Test
70-410 Practice Test70-410 Practice Test
70-410 Practice Test
 
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2013: Maximize Database Performance in Your Software-Defined Data CenterVMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
 
Cio Breakfast Roundtable 05142009 Final Virtualization
Cio Breakfast Roundtable 05142009 Final VirtualizationCio Breakfast Roundtable 05142009 Final Virtualization
Cio Breakfast Roundtable 05142009 Final Virtualization
 
3487570
34875703487570
3487570
 
Azure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment ScenariosAzure Virtual Machines Deployment Scenarios
Azure Virtual Machines Deployment Scenarios
 
Azure IaaS
Azure IaaSAzure IaaS
Azure IaaS
 
Server virtualization and cloud computing
Server virtualization and cloud computingServer virtualization and cloud computing
Server virtualization and cloud computing
 
prezentációt
prezentációtprezentációt
prezentációt
 
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
Building the Perfect SharePoint 2010 Farm - SPS Brisbane 2011
 
SQL Saturday San Diego
SQL Saturday San DiegoSQL Saturday San Diego
SQL Saturday San Diego
 
Hyper v® 2012 vs v sphere™ 5.1 understanding the differences
Hyper v® 2012 vs v sphere™ 5.1 understanding the differencesHyper v® 2012 vs v sphere™ 5.1 understanding the differences
Hyper v® 2012 vs v sphere™ 5.1 understanding the differences
 
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...
Accelerate Your Sales with Application-Centric Storage-as-a-Service Using VMw...
 
Big App Workloads on Microsoft Azure - TechEd Europe 2014
Big App Workloads on Microsoft Azure - TechEd Europe 2014Big App Workloads on Microsoft Azure - TechEd Europe 2014
Big App Workloads on Microsoft Azure - TechEd Europe 2014
 

Más de Joseph D'Antoni

The modern analytics architecture
The modern analytics architectureThe modern analytics architecture
The modern analytics architectureJoseph D'Antoni
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsJoseph D'Antoni
 
Pass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsPass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsJoseph D'Antoni
 
Accelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionAccelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionJoseph D'Antoni
 
Accelerating Database Performance with Compression
Accelerating Database Performance with CompressionAccelerating Database Performance with Compression
Accelerating Database Performance with CompressionJoseph D'Antoni
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondJoseph D'Antoni
 
Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresJoseph D'Antoni
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central paJoseph D'Antoni
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Sql server 2012 ha dr nova
Sql server 2012 ha dr novaSql server 2012 ha dr nova
Sql server 2012 ha dr novaJoseph D'Antoni
 
Deploying your Application to SQLRally
Deploying your Application to SQLRallyDeploying your Application to SQLRally
Deploying your Application to SQLRallyJoseph D'Antoni
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcJoseph D'Antoni
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcJoseph D'Antoni
 
Management data warehouse
Management data warehouseManagement data warehouse
Management data warehouseJoseph D'Antoni
 

Más de Joseph D'Antoni (16)

The modern analytics architecture
The modern analytics architectureThe modern analytics architecture
The modern analytics architecture
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
 
Pass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsPass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gs
 
Accelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionAccelerating Database Performance Using Compression
Accelerating Database Performance Using Compression
 
Accelerating Database Performance with Compression
Accelerating Database Performance with CompressionAccelerating Database Performance with Compression
Accelerating Database Performance with Compression
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday Richmond
 
Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new features
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central pa
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
Sql server 2012 ha dr nova
Sql server 2012 ha dr novaSql server 2012 ha dr nova
Sql server 2012 ha dr nova
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 
Deploying your Application to SQLRally
Deploying your Application to SQLRallyDeploying your Application to SQLRally
Deploying your Application to SQLRally
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
 
Management data warehouse
Management data warehouseManagement data warehouse
Management data warehouse
 

Último

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Virtualizing SQL Server for DBAs

  • 1. Virtualization for DBAs Joey D’Antoni June 27, 2012 Northern Virginia SQL Users Group
  • 2. About Me  Senior SQL Server DBA at Comcast  Blog: joedantoni.wordpress.com  Twitter @jdanton  Email jdanton1@yahoo.com 3/18/2022 | Footer Goes Here 2 |
  • 3. Virtualization  Major Players  Terms  Costs and Benefits  Technology  Optimizing SQL for a Virtual Environment  Summary
  • 5. It seemed like a good idea at the time…
  • 6. Server Room Sprawl  Server sprawl  SQL sprawl  Power and Cooling Issues in DCs  Broader availability of SAN storage
  • 7. Terminology  Guest—The virtual server running underneath the physical host and hypervisor (instance of an Operating System)  Host—The physical server that your virtual machines run on  Hypervisor—The underlying software that performs the load balancing and sharing of resources between guest operating systems
  • 8. Terminology (cont’d)  Thin Provisioning—Allowance in virtual environments to overallocate physical resources (more to come later)  Deduplication—Process of compressing memory/disk space by saving only one copy of common bits  vMotion/LiveMigration—Process which moves guest OS’s from host with high resource utilization to lower. Also an HA function with the hypervisor
  • 9. Terminology (cont’d)  Snapshot—A full point in time backup of your guest OS (very handy for upgrades/patches/code releases)  Cloning—The process of building a gold guest image in order to rapid deployment
  • 10. Costs  VMWare isn’t cheap  Licensing about $25k per server for a Enterprise plus on a decent sized server  Licensing changed from CPU—to CPU with memory grants, allowed 96 GB per CPU license  Hyper-V  Included with your Windows Server Licenses (amount of VMs vary based on edition)  SCOM, while not required is recommended
  • 11. Benefits of Virtualization  Lower cooling and power  Higher utilization of hardware  Can be used for HA configurations  Rapid Deployment of new environments  Use Gold Standard servers and rollout  SQL Server Licensing  Snapshots
  • 12. How this works… Host Hypervisor Guest Guest Guest One Physical Server
  • 13. What does the hypervisor do?  Manages resources between guest O/S  Memory management  Backups  Failover and DR
  • 17. Typical Hardware  Virtualization hosts are the typical servers you might run SQL Server on.  2 x 4-6 core processors (Dual socket servers represent 80% of install base)  A Lot of RAM
  • 18. Thin Provisioning  Allows over allocation of resources  Increases storage provisioning  Management console allows for easy management of this along with SAN  NOT GOOD FOR PRODUCTION DB SERVERS!!!
  • 19. Shared Environment vs Dedicated Environment
  • 20. Multi-Tenant Environments  This can make monitoring and baselining your server more challenging  You will want to have open communications with your VM administrators  Ask for view access into VCenter—it will show you what else is going on in the environment
  • 21. CPUs  Can be over allocated  Use servers with the newest chips—they are optimized for Virtual Workloads  Maintain 1:1 ratio of physical cores to vCPU for production boxes  For production workloads you may want to dedicate CPUs to the machine
  • 22. Memory Management  Memory can be over allocated (but don’t do it for production!!!)  Hypervisor handles it by de-duplicating memory.  Host Page Files
  • 24. Balloon Driver  When hosts comes under memory pressure, VMWare reclaims memory from guests
  • 26. I/O Concerns  Two choices of file types—VMFS (VMWare File System) and RDM (Raw Device Mapping)  Performance between two is similar  RDM is required for clustering  VMFS generally more flexible  Use Shared Storage (SAN) to get HA and DR functionality
  • 27. I/O Concerns  Partition alignments still matters < Windows 2008  Work with storage team to monitor I/O— Hypervisors can have strange I/O patterns
  • 28. Datastores • It can be easy to overwhelm storage if not enough storage devices are presented • Modern SANs tend to be designed with this in mind
  • 29. Windows Server 2012  Introduces concept of “Storage Spaces”  Allows storage to be pooled and shared between multiple VM hosts  Can be created from non Microsoft platforms
  • 32. Virtualizing SQL Server  Use Trace Flag –T834—large pages enabled  Set min and max memory—this will lock SQL’s memory to prevent possible balloon driver impact  Also reserve memory in HyperVisor for Prod Servers  Follow the same storage best practices you would for a physical box (Separate TempDB, Data, Logs)  Test out I/O performance before beginning
  • 33. Monitoring SQL Server  From the server perspective everything stays the same  Everything may not match at times  Ask for access to the vSphere client!  It’s the only way to have an overview into the broader system
  • 34. Performance Issues  Troubleshoot as you normally would, then check VMWare  Similarly with a SAN—try to identify what you apps are sharing your resources  Can adjust load on the fly by using vMotion (or Live Migration)
  • 35. Summary  Virtualization is the future, and the future is now!  Virtual servers work from a shared resource pool and that can impact your workloads  Identify changes you need to make to your SQL Servers for Virtual Environments  Get access to your virtualization management layer
  • 37. Contact Info  Twitter: @jdanton  Email: jdanton1@yahoo.com  Blog (slides): joedantoni.wordpress.com

Notas del editor

  1. This is what we’re going to discuss today—the major players in Virtualization (warning—this talk will be VMWare centric). We’ll go through all of the terminology involved in virtualization, then discuss some of the costs and benefits. Next we’ll take a dive into the technology underlying virtualization. Lastly we will talk about what you need to consider when running SQL Server on a VM. My goal for this session is for you to have a good understanding of Virtualization and how it works.
  2. Typically the push for Virtualization comes from your data centre and Windows folks, who hear it from their management, who wants to get higher server and CPU utilization out of their hardware investment. These are the major players in the space—VMWare is by far the market leader, and I’ll do most of my talking about them today. Hyper V is catching up, but is still pretty far behind on the feature set. Most of the terminology in this presentation will be VMWare centric—it’s the market leader, and it’s what I have the most experience with. If you just want to play with Virtualization, Virtual Box is a really good solution, it’s free and easy to play with.
  3. So in the 2000s as we were starting to try and consolidate SQL servers, something else happened, our application server environments started to sprawl tremendously. Each new project needed a new app server for each of its environments. And we ended up with server rooms that look like bad subdivisions.
  4. So what did this lead to? More servers needed more power, and servers got more power hungry in recent years. Most servers now come with 2 750w power supplies—that’s a lot of juice. It also cranks out a lot of heat—this might not be an issue in a small environment, but as you start to reach capacity in any data center, it’s hard to add more a/c and more power capacity after the fact. The other thing that lead us to virtualization was that servers have gotten WAY more powerful—we can have 16 cores in a standard two-socket server that we get for under $10,000. Additionally, having a SAN has become way more common in the last decade. You don’t NEED a SAN for virtualization, but many of the advanced features take advantage of shared storage.
  5. The next few slides are about the terminology we use in virtualization. I’ll slow down for a minute to let you take notes.
  6. So what does this cost you? There has been some controversy in this space in the last few months, as VMWare changed it’s pricing model. It used to be purely CPU based, and the change was to take it in the direction of using memory+cpu based licensing. It’s a more confusing model, but it hasn’t seem to have hurt VMWare sales much. Hyper-V is included in the cost of your Windows licensing. So it’s basically free, but it’s feature set isn’t as robust as VMWare’s, and has less multi-platform support (it doesn’t support RedHat)
  7. So here is what you gain by going with a virtualization solution. You get higher density of servers—so you get benefits there. Your power and cooling is reduce for that. As I’ll show in a few slides this can be used for HA solutions and even DR—you have some level of hardware protection. You can have a new server built in less than 10 minutes—VMWare allows you to create a template image and rename it to create a server. For example you could have a Windows Server with SQL installed with all of your best practices implemented, and it will spin up while you are getting coffee. Additionally, it’s a great place to park an app that requires a legacy version of Windows or SQL Server. O/S snapshots are also a wonderful thing—more on that later.
  8. This is a pretty simplified example of a server, running 3 VMs. Host, will always refer to the physical box you are running on—the Hypervisor is the software that allows guest creation, and manages host resources amongst the guest servers. In this case we are running 3 guest O/Ss. They could be running any version of Windows, Linux, mix or match, it doesn’t matter.
  9. So the hypervisor does a number of things—the guest O/S’s are operating out of a shared resource pool, so it allocates CPU and memory resources between them. In the case of VMWare, it may move a guest from a high utilization host to a low utilization host. This process is basically seamless (there are a few seconds of degraded performance). It can also manage failover and DR, I’ll go into details on that in a few slides. Backups can also be managed through the VMWare layer—this is the most efficient way to backup VMs.
  10. This is a better picture of what a VMWare architecture looks like—the density here could be pushed more. vMotion is the process of moving VMs between servers. DRS is VMWares multi-site DR solution, which requires SAN replication, and if any of you were in my last session, you’ll know that it’s expensive and complicated to set up, but pretty cool.
  11. Snapshots are a wonderful technology that’s built into the virtualization solution. In a nutshell it’s a way of rapidly doing a full backup of your systems. The hypervisor takes a block level snapshot of the guest O/S and tracks the changes in a snapshot file. This is great for patching, Cus, code deployments, SQL upgrades, and whatever. The one caveat to this is that you need to delete your snapshots as soon as you are done needing them. As they are capturing the delta of your server, they can grow very big very quickly.
  12. This is a picture of how VMWare’s DR scenario works—it’s relatively straightforward. If you lose a server VMWare vmotions the VMs to another host. This is seemless to the VM and your app. Also, just in case you wondering you can set up clustering within VMWare.
  13. So the hardware on these VMWare boxes are pretty similar to what you run your SQL Servers on—standard 2 socket x86 servers, with a lot of RAM. CPU isn’t the biggest deal, though it is important to be on the newer processing lines which have much better processor support for virtualization.
  14. Thin provisioning mostly applies in the storage world (your SAN folks can do it as well). In a nutshell, if you ask for 100Gb drive thin provisioning may only give out 10 Gb, until you need it. And much like expanding a data file in SQL Server is an expensive task, expanding a VMWare disk, is an expensive proposition. I think this is fine for non-production environments, but if you are doing production work, make sure you are fully provisioned up front.
  15. In a virtual environment by definition, you are in a multi-tenant environment. It’s like living in that big building in that last slide. So you don’t want to have noisy neighbors. The big consideration here is that this can make your baselining and monitoring processes more challenging than just a straight physical server. This is a little bit political, especially in big organizations. Ask your VMWare admins, about what servers you are sharing your environment (and storage) with. As your environment grows, you may want to have a dedicated cluster of VMWare for your database servers. Also, and I will bring this up again you will want to have visibility into vCenter—this way you can see what’s going on in your entire VMWare infrastructure.
  16. CPUs may be overallocated—what this means is that you can grant more CPUs to VMs than are physically available to the box—this can be a bad idea under high loads. For development it’s less of an issue. Another interesting thing to notes is that VMWare gets slightly less efficient as you add more CPUs to servers—their ideal number is 4. Basically each processor you add becomes progressively less powerful when compared to a physical processor. Like I mentioned earlier, you want to use processors that are optimized for virtual workloads—any new server will be, but keep this in mind if you are deploying to older hardware. And lastly on production VMs, maintain a 1:1 of vCPUs to Physical Cores. You can also reserve the CPUs in VMWare so that they aren’t allocated to other VMs.
  17. So through the magic of VMWare we can over allocate memory to a servers. Much like CPU what that means is we can allocate more memory than is physically available. The hypervisor handles it behind the scenes, by deduplicating blocks in memory. NEVER DO THIS IN PRODUCTION!!!! If your environment comes under memory pressure the host server will begin paging and performance will degrade very rapidly.
  18. Ah, balloons we all loved them as children, but as we know they can be very dangerous—this gentleman’s house was stolen by a bunch of balloons.
  19. What the balloon driver does is reclaims memory from guests that VMWare thinks isn’t using it. If your SQL Server wants to use this memory, that is a very very bad thing. To prevent this from happening, use the lock pages in memory option in SQL, and for production VMs have your VMWare admin set a memory reservation for your server. Additionally, I recommend setting the min and max memory in SQL to the same value—that’s not a guarantee though.
  20. One of a the caveats with raw device mapping is that your are limited to 256 RDMs in a given VM cluster.
  21. Partitions alignment still matters if you running an OS that is below Windows 2008. VMWare tends to do a lot of random I/O when you think it should be sequential. So pay attention to I/O related perfmon counters