Virtualization for DBAs
Joe D’Antoni
July 23, 2012
South Jersey SQL Users Group
About Me

      Senior SQL Server DBA at Comcast
      Blog: joedantoni.wordpress.com
      Twitter @jdanton
      Email jdanton1@yahoo.com




      7/23/2012
2 |             Footer Goes Here
      |
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
One Physical Server




                                   Hypervisor


                          Guest         Guest   Guest
What does the hypervisor do?

   Manages resources between guest O/S
   Memory management
   Backups
   Failover and DR
VMWare Architecture
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
Snapshots
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

More Related Content

PPTX
Sql saturday dc vm ware
PPTX
Virtualization for DBA
PPTX
DBA Fundamentals VC
PPT
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
PPTX
VDI Design Guide
PDF
VMworld 2014: Virtualize Active Directory, the Right Way!
PPT
Double-Take Software
PPTX
Секреты виртуализации - Windows Server 2012 Hyper-V
Sql saturday dc vm ware
Virtualization for DBA
DBA Fundamentals VC
xen server 5.6, provisioning server 5.6 — технические детали и планы на будущее
VDI Design Guide
VMworld 2014: Virtualize Active Directory, the Right Way!
Double-Take Software
Секреты виртуализации - Windows Server 2012 Hyper-V

What's hot (18)

PDF
Vsphere esxi-vcenter-server-55-troubleshooting-guide
PPTX
Storage and performance- Batch processing, Whiptail
PDF
Veeam Backup & Replication v8 for VMware — General Overview
PPTX
Managing Hyper-V on a Compellent SAN
PDF
Advancedtroubleshooting 101208145718-phpapp01
PDF
VMworld 2013: Performance and Capacity Management of DRS Clusters
PDF
VMworld 2013: DRS: New Features, Best Practices and Future Directions
PPTX
Veeam webinar - Deduplication best practices
PPT
VMWare Performance Tuning by Virtera (Jan 2009)
PPTX
Scott Schnoll - Exchange server 2013 high availability and site resilience
PPTX
Windows Server "10": что нового в кластеризации
PPTX
INF7827 DRS Best Practices
PDF
12 best practices for virtualizing active directory DCs
PDF
The have no fear guide to virtualizing databases
PPTX
And the new System Center is here... what's actually new?
PPTX
VMware Performance Troubleshooting
PPTX
02 Dell Blade Server Day 1
PDF
PostgreSQL Scaling And Failover
Vsphere esxi-vcenter-server-55-troubleshooting-guide
Storage and performance- Batch processing, Whiptail
Veeam Backup & Replication v8 for VMware — General Overview
Managing Hyper-V on a Compellent SAN
Advancedtroubleshooting 101208145718-phpapp01
VMworld 2013: Performance and Capacity Management of DRS Clusters
VMworld 2013: DRS: New Features, Best Practices and Future Directions
Veeam webinar - Deduplication best practices
VMWare Performance Tuning by Virtera (Jan 2009)
Scott Schnoll - Exchange server 2013 high availability and site resilience
Windows Server "10": что нового в кластеризации
INF7827 DRS Best Practices
12 best practices for virtualizing active directory DCs
The have no fear guide to virtualizing databases
And the new System Center is here... what's actually new?
VMware Performance Troubleshooting
02 Dell Blade Server Day 1
PostgreSQL Scaling And Failover
Ad

Viewers also liked (6)

PPTX
Sql saturday powerpoint dc_san
PPTX
Sql Server 2012 HA and DR -- SQL Saturday Richmond
PPTX
Sql server 2012 ha dr 24_hop_final
PPTX
Sql server 2012 ha and dr sql saturday dc
PPTX
Sql server 2012 ha dr 24_hop_final
PPTX
San presentation nov 2012 central pa
Sql saturday powerpoint dc_san
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha dr 24_hop_final
San presentation nov 2012 central pa
Ad

Similar to South jersey sql virtualization (20)

PPTX
Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
PPT
Server Virtualization Seminar Presentation
PPT
PPT
DataCore Solutions Overview
PPT
prezentációt
PDF
Azure Virtual Machines Deployment Scenarios
PPT
Virtualizing SharePoint Components
PDF
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
PDF
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
PPTX
Server virtualization and cloud computing
PPTX
Building your first sql server cluster
PPTX
70-410 Practice Test
PPTX
Best Practices for Virtualizing Hadoop
PPT
Cio Breakfast Roundtable 05142009 Final Virtualization
PPT
PPTX
Azure IaaS
PPTX
Hyper v® 2012 vs v sphere™ 5.1 understanding the differences
PPT
Hardware VDI vs. Software VDI
PDF
Hyper-V Best Practices & Tips and Tricks
PPTX
Varrow madness 2013 virtualizing sql presentation
Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Server Virtualization Seminar Presentation
DataCore Solutions Overview
prezentációt
Azure Virtual Machines Deployment Scenarios
Virtualizing SharePoint Components
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
Server virtualization and cloud computing
Building your first sql server cluster
70-410 Practice Test
Best Practices for Virtualizing Hadoop
Cio Breakfast Roundtable 05142009 Final Virtualization
Azure IaaS
Hyper v® 2012 vs v sphere™ 5.1 understanding the differences
Hardware VDI vs. Software VDI
Hyper-V Best Practices & Tips and Tricks
Varrow madness 2013 virtualizing sql presentation

More from Joseph D'Antoni (16)

PPTX
The modern analytics architecture
PPTX
Building perfect sql servers, every time -oops
PPTX
Pass 2013 dantoni azure a gs
PPTX
Accelerating Database Performance Using Compression
PPTX
Pass bac jd_sm
PPTX
Sql server 2012 ha and dr sql saturday boston
PPTX
Accelerating Database Performance with Compression
PPTX
Sql server 2012 ha and dr sql saturday tampa
PPTX
Windows server 2012 failover clustering new features
PPTX
Always on availability groups way too deep
PPTX
Sql server 2012 ha dr nova
PPTX
Sql server 2012 ha dr
PPTX
Deploying your Application to SQLRally
PPTX
Deploying data tier applications sql saturday dc
PPTX
Deploying data tier applications sql saturday dc
PPTX
Management data warehouse
The modern analytics architecture
Building perfect sql servers, every time -oops
Pass 2013 dantoni azure a gs
Accelerating Database Performance Using Compression
Pass bac jd_sm
Sql server 2012 ha and dr sql saturday boston
Accelerating Database Performance with Compression
Sql server 2012 ha and dr sql saturday tampa
Windows server 2012 failover clustering new features
Always on availability groups way too deep
Sql server 2012 ha dr nova
Sql server 2012 ha dr
Deploying your Application to SQLRally
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
Management data warehouse

Recently uploaded (20)

PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
A review of recent deep learning applications in wood surface defect identifi...
Consumable AI The What, Why & How for Small Teams.pdf
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
UiPath Agentic Automation session 1: RPA to Agents
Build Your First AI Agent with UiPath.pptx
Credit Without Borders: AI and Financial Inclusion in Bangladesh
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Custom Battery Pack Design Considerations for Performance and Safety
A proposed approach for plagiarism detection in Myanmar Unicode text
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
CloudStack 4.21: First Look Webinar slides
Flame analysis and combustion estimation using large language and vision assi...
sustainability-14-14877-v2.pddhzftheheeeee
OpenACC and Open Hackathons Monthly Highlights July 2025
Microsoft Excel 365/2024 Beginner's training
Convolutional neural network based encoder-decoder for efficient real-time ob...
A review of recent deep learning applications in wood surface defect identifi...

South jersey sql virtualization

  • 1. Virtualization for DBAs Joe D’Antoni July 23, 2012 South Jersey SQL Users Group
  • 2. About Me  Senior SQL Server DBA at Comcast  Blog: joedantoni.wordpress.com  Twitter @jdanton  Email [email protected] 7/23/2012 2 | Footer Goes Here |
  • 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 One Physical Server Hypervisor Guest Guest Guest
  • 13. What does the hypervisor do?  Manages resources between guest O/S  Memory management  Backups  Failover and DR
  • 16. 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: [email protected]  Blog (slides): joedantoni.wordpress.com

Editor's Notes

  • #4: 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.
  • #5: 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.
  • #6: 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.
  • #7: 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.
  • #8: The next few slides are about the terminology we use in virtualization. I’ll slow down for a minute to let you take notes.
  • #11: 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)
  • #12: 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.
  • #13: 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.
  • #14: 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.
  • #15: 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.
  • #16: This is a picture of how VMWare’s DR scenario works—it’s relatively straightforward. If you lose a server VMWarevmotions 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.
  • #17: So the hardware on theseVMWare 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.
  • #18: 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.
  • #19: 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.
  • #21: 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.
  • #22: 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.
  • #23: 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.
  • #24: 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.
  • #25: 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.
  • #27: One of a the caveats with raw device mapping is that your are limited to 256 RDMs in a given VM cluster.
  • #28: 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