SharePoint 2010's Virtual Reality - SPC2C


Published on

SharePoint 2010 Server virtualization guidance from Michael Noel, author of SharePoint 2010 Unleashed.

Published in: Technology
1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

SharePoint 2010's Virtual Reality - SPC2C

  1. 1. Building the ‘Perfect’ SharePoint 2010 FarmBest Practices from the Field<br />Michael Noel<br />Convergent Computing (<br />@MichaelTNoel<br />
  2. 2. Michael Noel<br />Author of SAMS Publishing titles “SharePoint 2010 Unleashed,” “SharePoint 2007 Unleashed,” “SharePoint 2003 Unleashed”, “Teach Yourself SharePoint 2003 in 10 Minutes,” “Windows Server 2008 R2 Unleashed,” “Exchange Server 2010 Unleashed”, “ISA Server 2006 Unleashed”, and many other titles .<br />Partner at Convergent Computing ( / +1(510)444-5700) – San Francisco Bay Area based Infrastructure/Security specialists for SharePoint, AD, Exchange, Security<br />
  3. 3. What we will cover<br />Why Virtualize?<br />SharePoint 2010 Virtualization Guidelines and Models<br />Virtualization of SharePoint Roles<br />Virtualization of SQL Server<br />Memory Limitations and Guidelines for Guests<br />Microsoft Virtualization Software Options<br />Windows Server 2008 Hyper-V<br />System Center Virtual Machine Manager 2008<br />Third Party Virtualization Product Support<br />Microsoft Licensing for Virtual Servers<br />Demo: Quick Farm Provisioning with VMM 2008 R2<br />
  4. 4. Why Virtualize?<br />
  5. 5. Why Virtualize?<br />
  6. 6. SharePoint 2010 Virtualization Guidelines<br />
  7. 7. Virtual Host Guidelines<br />
  8. 8. SharePoint Guest Guidelines<br />
  9. 9. VM Guest Guidelines:SharePoint Roles<br />
  10. 10. VM Guest Guidelines:Database Roles<br />
  11. 11. SharePoint 2010 Virtualized Farm Architecture<br />
  12. 12. Virtualized Farm ArchitectureCost-effective Virtual Environment / No HA<br /><ul><li>Allows organizations that wouldn’t normally be able to have a test environment to run one
  13. 13. Allows for separation of the database role onto a dedicated server
  14. 14. Can be more easily scaled out in the future</li></li></ul><li>Virtualized Farm ArchitectureCost-effective Virtual Environment / No HA<br />
  15. 15. Virtualized Farm ArchitectureHighly Available Farm with only Two Servers<br /><ul><li>High-Availability across Hosts
  16. 16. All components virtualized
  17. 17. Uses only two Windows Ent Edition Licenses</li></li></ul><li>Virtualized Farm ArchitectureHighly Available Farm with only Two Servers<br />
  18. 18. Virtualized Farm ArchitectureBest Practice Virtual/Physical with HA/Perf<br /><ul><li>Highest transaction servers are physical
  19. 19. Multiple farm support, with DBs for all farms on the SQL cluster</li></li></ul><li>Virtualized Farm ArchitectureLarge Virtual Farms<br />
  20. 20. NUMA Memory Guidelines<br />
  21. 21. NUMA Memory Limitations and Guidelines<br />Non-Uniform Memory Access (NUMA) Boundaries exist at the hardware level.<br />Virtual guests that are allocated more memory than exist within a single NUMA memory boundary have significantly impacted performance<br />NUMA boundaries vary by processor and motherboard vendor, but good rule of thumb to calculate boundaries is to divide the amount of memory in the system by the total number of cores.<br />i.e. Dual Quad-core host (2x4 cores = 8 cores) with 64GB of RAM on the host would mean NUMA boundary is 64/8 or 8GB.<br />In this example, allocating more than 8GB for a single guest session would result in performance drops.<br />
  22. 22. NUMA Memory Limitations and Guidelines<br />Keeping NUMA boundaries in mind, this means that you will get significantly better performance provisioning two SharePoint front-ends with half the amount of RAM as a single front-end with twice as much RAM.<br />This applies to any virtualization platform, as the limitation is hardware specific. NUMA allocation specifics will vary by vendor, however.<br />Refer to MS Whitepaper on Virtualization of SharePoint ( for more specifics.<br />
  23. 23. NUMA Example: 2x Quad Core, 64GB RAM<br />Proc 1<br />Proc 2<br />
  24. 24. NUMA Example: 2x Quad Core, 8GB RAM<br />Proc 1<br />Proc 2<br />
  25. 25. Virtualization Performance Monitoring<br />
  26. 26. Virtualization Performance MonitoringCollect Performance Data<br />Manually with Perfmon counters<br />Collect data over a week minimum to look for trends throughout the week<br />Use to help prove performance problems are not because of virtualization <br />Consider using System Center Operations Manager 2007 R2 for long-term performance analysis and threshold alerting<br />
  27. 27. Virtualization Performance MonitoringPerformance Counters and Thresholds on Hosts and Guests<br />Network Bandwidth – Bytes Total/sec<br /><40% Utilization = Good<br />41%-64% = Caution<br />>65% = Trouble<br />Network Latency - Output Queue Length<br />0 = Good<br />1-2= OK<br />>2 = Trouble<br />Processor (Host Only)<br /><60% Utilization = Good<br />60%-90% = Caution<br />>90% = Trouble<br />Available Memory <br />50% and above = Good<br />10%-50% = OK<br /><10% = Trouble<br />Disk – Avg. Disk sec/Read or Avg. Disk sec/Write<br />Up to 15ms = fine<br />15ms-25ms = Caution<br />>25ms = Trouble<br />
  28. 28. SharePoint Virtualization Support<br />
  29. 29. Microsoft Support of SharePoint Virtualization<br />Microsoft’s official SharePoint support stance is that any SharePoint role or service is supported for hardware virtualization, including SQL Server 2005, SQL Server 2008, or SQL Server 2008 R2. There are only three requirements for virtualization that must be satisfied, these are as follows:<br />Hardware-assisted virtualization, which is available in processors that include a virtualization option—specifically processors with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology. <br />Hardware-enforced Data Execution Prevention (DEP) is available and enabled.<br />Either deployed on Microsoft Hyper-V (RTM or R2 version) or a validated third-party hypervisor that is part of the Server Virtualization Validation Program (SVVP) – KB 897615<br />
  30. 30. What does this mean for SharePoint on Third party?<br />SharePoint supported on VMware ESX/ESXi, Citrix XenServer, or others in the SVVP<br />This only covers Hypervisor products, so excludes products such as VMware Workstation or VMware Server <br />
  31. 31. Windows Server 2008 R2 Hyper-V<br />
  32. 32. Hyper-V R2 for SP2010Overview<br />
  33. 33. System Center Virtual Machine Manager 2008 R2<br />
  34. 34. System Center Virtual Machine Manager (VMM)<br />Virtualization Host and Guest Management Platform<br />Part of the System Center Management Suite, which includes the following:<br />System Center Operations Manager 2007 R2<br />System Center Data Protection Manager 2007<br />System Center Configuration Manager 2007 R2<br />System Center Mobile Device Manager 2007<br />System Center Essentials 2007<br />System Center Service Manager 2010<br />
  35. 35. System Center Virtual Machine Manager (VMM) 2008 R2<br />New version out (VMM 2008 R2)<br />VMM 2008 R2 has P2V (Physical to virtual migration) and V2V (VMware Guest migration to Hyper-V) tools<br />For SharePoint, allows for creation of SharePoint template servers that can be quickly provisioned for test farms or for new farm members in production<br />Can manage both Hyper-V and VMware guests (though must ‘go through’ a Virtual Center server to manage VMware guests.)<br />Self-Service Portal allows end users and remote admins to be able to provision their own virtual machines based on templates<br />
  36. 36. Quick SP2010 Farm Provisioning with VMM 2008 R2<br />Create new Virtual Guest (Windows Server 2008 R2)<br />Install SP2010 Binaries. Stop before running Config Wizard<br />Turn Virtual Guest into Template, modify template to allow it to be added into domain<br />Add PowerShell script to run on first login, allowing SP to be added into farm or to create new farm<br />Voila! 15 minute entire farm provisioning…<br />
  37. 37. Quick Farm Provisioning with VMM 2008 R2<br />Demo<br />
  38. 38. Farm Provisioning Scripts<br />Function Configure-SPSearch {<br /> PARAM($AppPool, $FarmName, $SearchServiceAccount)<br /> $searchServiceInstance = Get-SPEnterpriseSearchServiceInstance -local<br /> Start-SPEnterpriseSearchServiceInstance -Identity $searchServiceInstance<br /> $dbName = $FarmName + "_SearchServiceApplication"<br /> $searchApplication = New-SPEnterpriseSearchServiceApplication -Name "$FarmName Search Service Application" -ApplicationPool $AppPool -DatabaseName $dbName<br /> $searchApplicationProxy = New-SPEnterpriseSearchServiceApplicationProxy -name "$FarmName Search Service Application Proxy" -SearchApplication $searchApplication<br /> Set-SPEnterpriseSearchAdministrationComponent -SearchApplication $searchApplication -SearchServiceInstance $searchServiceInstance<br /> $crawlTopology = New-SPEnterpriseSearchCrawlTopology -SearchApplication $searchApplication<br /> $crawlDatabase = Get-SPEnterpriseSearchCrawlDatabase -SearchApplication $searchApplication<br /> New-SPEnterpriseSearchCrawlComponent -CrawlTopology $crawlTopology -CrawlDatabase $crawlDatabase -SearchServiceInstance $searchServiceInstance<br /> while($crawlTopology.State -ne "Active")<br /> {<br /> $crawlTopology | Set-SPEnterpriseSearchCrawlTopology -Active -ErrorActionSilentlyContinue<br /> if ($crawlTopology.State -ne "Active")<br /> {<br /> Start-Sleep -Seconds 10<br /> }<br /> }<br /> $queryTopology = New-SPenterpriseSEarchQueryTopology -SearchApplication $searchApplication -partitions 1<br /> $searchIndexPartition = Get-SPEnterpriseSearchIndexPartition -QueryTopology $queryTopology<br /> New-SPEnterpriseSearchQueryComponent -indexpartition $searchIndexPartition -QueryTopology $queryTopology -SearchServiceInstance $searchServiceInstance<br /> $propertyDB = Get-SPEnterpriseSearchPropertyDatabase -SearchApplication $searchApplication<br /> Set-SPEnterpriseSearchIndexPartition $searchIndexPartition -PropertyDatabase $propertyDB<br /> while ($queryTopology.State -ne "Active")<br /> {<br /> $queryTopology | Set-SPEnterpriseSearchQueryTopology -Active -ErrorActionSilentlyContinue<br /> if ($queryTopology.State -ne "Active")<br /> {<br /> Start-Sleep -Seconds 10<br /> }<br /> }<br />}<br />
  39. 39. Virtualization Licensing<br />$ £ ¥ €<br />
  40. 40. Virtualized Farm ArchitectureMicrosoft Virtualization Licensing Primer<br />Windows Server Virtualization Licensing<br />Standard Edition: One virtual guest (if host is dedicated to virtualization role)<br />Enterprise Edition: Four virtual guests (if host is dedicated to virtualization role) / Guests can be Std/Ent<br />DataCenter Edition: Unlimited Number of Virtual Guests / Per processor socket license<br />Virtualization OS licensing applies to Hyper-V or any virtual host software listed in SVVP (KB 897615)<br />System Center Virtualization Licensing<br />System Center Management Suite Standard Edition License: Gives DPM, OpsMgr, ConfigMgr, and VMM Agents for 1 server.<br />System Center Management Suite Enterprise Edition License: Gives unlimited DPM, OpsMgr, ConfigMgr, and VMM Agents for all virtual guests on the host.<br />Check with Microsoft for Specifics…<br />
  41. 41. Microsoft Virtualization Guest Licensing Model<br />Guests can run any combination of downlevel licenses (i.e. Datacenter host, Ent or Std edition guests)<br />Applies not only to OSes running virtualized with Windows Virtualization, but it also applies to 3rd party virtualization as well!<br />
  42. 42. For More Information<br />SharePoint 2007 Unleashed and SharePoint 2010 Unleashed (SAMS Publishing) (<br />Windows Server 2008 R2 Unleashed and/or Hyper-V Unleashed (<br />Microsoft ‘Virtualizing SharePoint Infrastructure’ Whitepaper ( <br />Microsoft ‘Virtualizing SQL Server’ Whitepaper<br />(<br />Microsoft SQL Mirroring Case Study<br /><br />Failover Mirror PowerShell Script<br /><br />Microsoft Edge Videos on Virtualization of SharePoint:<br /><br /><br />Contact us at<br />
  43. 43. Session Takeaways<br />Understand the architecture options for SharePoint 2010<br />Consider Virtualization for SharePoint, but architect host and guest environments very carefully.<br />Best performance comes from dedicated virtual hosts, dedicated passthrough NICs, and dedicated passthrough disks and by not overcommitting resources.<br />KB897615 outlines MS Support for 3rd Party Virtualization such as VMware and XenServer…<br />Windows Server 2008 R2 Hyper-V technology gives high performance and is a very cost competitive option<br />MS Licensing has new virtualization support, and Datacenter edition will provide for unlimited guests under a single host.<br />
  44. 44. Your Feedback is Important<br />Please fill out a session evaluation form drop it off at the conference registration desk.<br />Thank you!<br />
  45. 45. Thanks for attending!Questions?<br />Michael Noel<br />Twitter: @MichaelTNoel<br /><br />