Download SPC270: Microsoft Virtualization Best Practices for SharePoint

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Database model wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Tandem Computers wikipedia , lookup

SQL wikipedia , lookup

Microsoft Access wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Clusterpoint wikipedia , lookup

Object-relational impedance mismatch wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Transcript
Best Practices for SharePoint
• Brief description of key business critical application
concepts for virtualized environments
• Overview of virtualization and Microsoft Windows
Server® 2008 R2 Hyper-V™
• Show how Windows Server® 2008 Hyper-V™ provides
an ideal platform for deployments using virtualization
• Demonstrate how Microsoft and partners are
providing “better together” solutions for SharePoint in
virtualized environments
• Resources:
o
http://www.microsoft.com/virtualization/partners.aspx
external, customer facing site with a range of partner
solutions and case studies
Virtualization Drivers for Business
Critical Applications
Increased
management
workload while
reducing cost
Fast changing
business
requirements
Underutilization and
proliferation of
application servers
Increased need
for service
uptime
Virtualization is the next level of IT optimization for business critical applications
3
Virtualization Trends
“What types of workloads have you deployed virtualization technology for 2006 vs. 2008”
79%
Test and Development
74%
74%
Production Application Servers
64%
51%
Disaster Recovery Systems
29%
Production Databases
50%
30%
47%
Data/Storage Mgmt Systems
21%
47%
Production Web Servers
47%
End-User Desktops
45%
5%
2008
Production Middleware Systems
41%
26%
0%
20%
40%
2006
60%
80%
Source: Virtualization and Management: Trends, Forecasts, and Recommendations; Enterprise Management Associates (EMA); April 2008
5
Server
Virtualization
Application
Virtualization
Presentation
Virtualization
Desktop
Virtualization
“Having one vendor for the
hypervisor, operating system,
and much of our application
software was very appealing
to us from a support and cost
perspective.”
Bert Van Pottelberghe,
Sales Director, Hostbasket
User State
Virtualization
Document redirection
Offline files
Highlight of Windows Server 2008
R2 Hyper-V Improvements
Windows
Server 2008 R2
Hyper-V
Windows
Server® 2008
Hyper-V™ RTM
Windows Server
2008 Hyper-V
SP2
16
24
64
Address Space Management
Software Only
Software Only
Hardware
(SLAT Processors)
Core Parking/Deeper Sleep States
(C3)
No – Limited C
States
No – Limited C
States
Yes
IPv6 offloads
No
No
Yes
Chimney
No
No
Yes – Off by
default in RC
Jumbo Frames
No
No
Yes
Virtualization Feature
Logical Processor Support
(aka Win7 HyperV)
Virtual NIC interrupts
VP0
VP0
VP0 receive/
distributed for
send
IO Sizes (Virtual SCSI)
64KB
64KB
8MB
VHD Block Size
512KB
512KB
2MB
No
No
Yes
Hot add of storage
Delivers high levels of availability for production workloads via flexible and dynamic
management while reducing overall costs through efficient server consolidation via:
Processor Compatibility Mode
2.8 GHz Dual
Core Processor
P-State Percent Frequency
0
100
2.800 GHz
1
90
2.520 GHz
P-State=0
2
85
2.380 GHz
Processor
Processor
3
75
2.100 GHz
Core 1 Active
Core
2
Inactive
4
60
1.680
Storage
Area GHz
Processor
5
50Network
1.400 GHz
Core 1
P-State Percent Frequency
0
100
2.800 GHz
Processor
Processor
1
90
2.520 GHz
P-State=4
Core 3 Inactive 2
Core
85 4 Inactive
2.380 GHz
3
75
2.100 GHz
4
60
1.680 GHz
Processor
5
50
1.400 GHz
Core 2
Reads Per Second for Data Volumes
2000
Average Disk Latency in Seconds
0.009
1800
0.008
1600
0.007
1400
0.006
1200
0.005
1000
0.004
800
0.003
600
0.002
400
0.001
200
0
0
Low OLTP
Workload
Med OLTP
Workload
High OLTP
Workload
Low OLTP
Workload
Med OLTP
Workload
High OLTP
Workload
Root OS - Hyper-V Disabled
Root OS - Hyper-V Enabled
Root OS - Hyper-V Disabled
Root OS - Hyper-V Enabled
Single VM (Passthrough Disks)
Single VM (Fixed Size VHD)
Single VM (Passthrough Disks)
Single VM (Fixed Size VHD)
Microsoft Business Critical Applications
Virtualization Benefits for Microsoft
Server Applications
Customer Challenges
Microsoft Virtualization
Benefits
Underutilization of hardware
Increase server utilization
Lead time to provision new servers
Rapidly provision servers
Multiple, disparate tools to manage both
physical and virtual environments
End-to-end management across both physical
and virtual environments
Managing planned and unplanned downtime
Improve uptime with clustering and migration
Overhead of setting up a test environment
Streamline development, testing and staging
15
Reaping the Benefits of Virtualization
Save Costs: Improve Resource Utilization
• Reduce server sprawl, save space
• Save on power and cooling costs
• Optimize usage of current hardware resources
Enhanced Business Continuity
• Increase availability of business applications
• Delivers cost effective high availability
• Improve service levels, less downtime
Agile and Efficient Management
• Rapidly provision business applications
• Quickly test applications
• Increase administrative flexibility
“By the time we hit our fifth virtual machine on a
host, we’ve usually paid for the host. Long term,
we will be able to reduce our total data center
holdings by 75 percent.”
Robert McSkinsky, Senior Systems Administrator,
Dartmouth-Hitchcock Medical Center
“We can no longer tolerate service interruptions.
With virtualization, we are creating a redundant
data center in Normandy to ensure business
continuity”
Amaury Pitrou, Projects Architecture,
Desktops and Mobility Director Bouygues Constructions
“Building a physical server took almost four
hours before virtualization. Hyper-V™ has
helped decrease this time to 20 minutes.”
Vito Forte, Chief Information Officer
WorleyParsons
17
Microsoft Business Server Applications
Deployment Scenarios – SharePoint
Understanding the Environment for
Virtualization – SharePoint Farm
What is a SharePoint® Farm?
A collection of one or more SharePoint Servers
and SQL Servers® providing a set of basic
SharePoint services bound together by a single
configuration database in SQL Server
Key Components:
• Web Front End (WFE) Servers:
o Windows® SharePoint Services
o Web Application Service
• Application Servers:
o Office SharePoint Server Search Service
(Index or Query)
o Document Conversion Launcher Service
o Document Conversion Load Balancer Service
o Excel Calculation Services
• SQL Server
19
SharePoint Key Roles and
Virtualization Considerations
Role
Virtualization
Decision
Considerations and Requirements
Ideal
• Easily provision additional servers for load balancing and fault
tolerance
Query Role
Process Search Queries
Ideal
• For large indexes, use physical volume over dynamic expanding
VHD
• Requires propagated copy of local index
Application Role
Excel Forms Services
Ideal
• Provision more servers as resource requirements for individual
applications increase
Web Role
Render Content
Index Role
Crawl Index
Database Role
Consider
Consider
• Environments where significant amount of content is not crawled
• Requires enough drive space to store the index corpus
• Environments with lower resource usage requirements
• Implement SQL Server® alias for the farm required
For details, see SharePoint Virtualization whitepaper at
http://www.microsoft.com/virtualization/solutions/business-critical-applications
20
Non Production – Development, Test, and QA
Virtualization Benefits:
•
•
•
•
•
•
•
•
Rapidly provision and teardown virtual machines
Reduce hardware costs and increase utilization
Easy and flexible testing―ex: high availability
Improve the software development and test lifecycle
Development
Test and QA
Web/Query
Web/Query
Index
Excel
Database
Web/Query
Web/Query
Index
Excel
Database
VM
Click Here for More Information
21
Production – Virtual Only
Virtualization Benefits:
•
•
•
•
• Reduce hardware costs, save power and space
• Improve server utilization
• Easier set up and provisioning
VM
Web/Query
Shared Storage
Web/Query
Excel Services
Database
Failover
Server
iSCSI, SAS, Fibre
Web/Query
Click Here for More Information
Index
Document
Conversions
System Center
VMM
Database
22
Production – Physical & Virtual Mix
VM
Scenario Description:
• Optimized scenario for high-end
production is mixed physical and virtual
• Index and database roles on dedicated
physical servers to provide very high
scalability
• Virtual web, query, and application roles
• All servers managed by System Center
Suite
DEV
TEST
Virtualization Benefits:
• Unified management: physical and
virtual
• Dynamic data center: scale dynamically
and on-demand provisioning
Click Here for More Information
Failover
Server
Shared Storage
iSCSI, SAS,
Fibre
PRODUCTION
Index
23
Partner Evidence: SharePoint Performance
Enabled by Hyper-V
Description:
• Deployment with mix of physical &
virtual servers
• Web, Query and Application roles
are deployed virtual; database role
is deployed physical
• Managed with System Center
Virtual Machine Specification:
• 1 Index server dedicated for
crawling (each VM with 4 CPUs, 6
GB RAM)
• 10 Web Front End & Query servers
(each VM with 4 CPUs, 4 GB RAM)
• 2 Application servers (each VM with
2 CPUs, 2 GB RAM)
• Domain controllers (each VM with 2
CPUs, 2 GB RAM)
Test Results:
• With a heavy user load profile of
over 300K user capacity – an
average response time of under 3-5
seconds with 1% concurrency
Click here for more information
Source: EMC Virtual Architecture for Microsoft Office SharePoint Server 2007
Enabled by Hyper-V (whitepaper)
Best Practices for Configuring
SharePoint with Hyper-V
Best Practices and Recommendations
CPU
• Configure a 1-to-1 mapping of virtual processor to logical processors for best performance
• Be aware of “CPU bound” issues
Memory
• Ensure enough memory is allocated to each virtual machine
Disk
• Be aware of underlying disk read write contention between different virtual machines to their virtual
hard disks
• Ensure SAN is configured correctly
Network
• Use VLAN tagging for security
• Associate SharePoint® virtual machines to the same virtual switch
Others
• Ensure that integration components are installed on the virtual machine
• Do not use other host roles (use server core)
• Avoid single point of failure: load balance your virtual machines across hosts and cluster virtual machines
25
See it in Booth 1008
Microsoft Server Applications
Deployment Scenarios – SQL Server
SQL Server Consolidation with Virtualization
CPU utilization
Scenario Description:
• Reduce servers by consolidating virtualized
SQL Server® instances on fewer servers
File Server
• Start with departmental applications with low
server utilization
Applications Server
CRM Applications
• Deploy mission critical apps – evaluate case-bycase and determine if Service Level Agreement
(SLA) is met after virtualization
Web Server
SQL Server + Print Server
Solution Benefits:
• Help realize a higher ROI and lower TCO by
reducing:
o Hardware costs
o Energy costs
o Data center space
o Management overheads
• SQL Server Enterprise Edition offers unlimited
virtualized SQL Server instances if licensed for
all processors on physical server, therefore
potentially reducing licensing costs
• Fewer licenses due to greater licensing
mobility across servers in a farm
• Centralize data services on fewer servers
Click Here For More Information
Consolidate from 5 to 2 Physical Servers
CPU utilization
File Server
Applications Server
Web Server
1
2
CRM Applications
SQL Server + Print Server
VM
29
Virtualization for BI Infrastructure
High Availability with Live Migration
Remote Site Consolidation with DB
Mirroring
High Availability with Guest Clustering
Using iSCSI
Optimizing for SQL Server
Running SQL Server workloads within Hyper-V guest VM’s is a viable
option for production environment
Assuming limitations of Guest VM meet requirements of the workload.
Hyper-V guest VMs are limited to a maximum of 4 virtual CPU’s (limit of
2 virtual CPU’s on Windows 2003 guest VMs)
When compared against native the same throughput can be
achieved within a guest VM at a cost of slightly increased CPU
utilization
Assuming comparable hardware resources
Proper hardware sizing is critical to SQL Server performance
Ensure that cumulative physical CPU resources on a server are adequate
to meet the needs the guest VMs
Test/Monitor your workloads
Important to scale the performance to the total workload required of
each VM
Don’t migrate 20 physical servers with 40 spindles each to a Hyper-V host
with 10 spindles
Summary
Microsoft Virtualization: The Best Choice for
Microsoft Server Applications
Microsoft Server
Applications Built
for Windows
Complete
Management
Solution
*Built-in Virtualization
with One-stop Support
*Deep Application
Knowledge
Low Cost
Complete Solution
*A comparable solution
can cost up to six
times more†
*Large Partner
Ecosystem
*Physical & Virtual
Management
*Lower Ongoing
Costs
Increased
Deployment Options
*Cross Platform and
Hypervisor Support
Virtualization-friendly
Licensing
*Only available with Microsoft Virtualization
†Based on a comparison of Microsoft® System Center Server Management Suite Datacenter with VMware® vSphere Enterprise Plus with VMware vCenter Server.. Assumes a five host configuration,
2 processors on each host, 2 years support costs for both products, and no operating system costs included.. The Microsoft solution can use either the free Microsoft Hyper-V Server
2008 R2 hypervisor or an existing Windows Server 2008 R2 hypervisor. Based on Microsoft estimated retail prices and published VMware prices available at https://www.vmware.com/vmwarestore
as of 08/04/2009 for purchases in the United States. Actual reseller prices may vary.
33
Useful Links:

SQL Server®
http://www.microsoft.com/sqlserver/2008/en/us/white-papers.aspx
o http://www.microsoft.com/sqlserver/2008/en/us/virtualization.aspx
o

SharePoint®
o
o
o
o
o
o
http://blogs.msdn.com/uksharepoint/archive/2009/03/04/topic-1recommendations-for-optimizing-the-performance-of-a-virtualizedsharepoint-environment.aspx
http://support.microsoft.com/kb/909840
http://www.microsoft.com/systemcenter/en/us/managing-microsoftapplications/optimizing-sharepoint.aspx
http://www.docstoc.com/docs/6623366/SharePoint-Virtualization-BestPractices
http://h20195.www2.hp.com/V2/GetPDF.aspx/4AA2-1877ENW.pdf
Virtualization
http://www.microsoft.com/virtualization
http://www.microsoft.com/windowsserver2008/en/us/virtualizationconsolidation.aspx
Additional Material;
not presented, but referenced
Additional Virtualization Resources
http://technet.microsoft.com/en-us/virtualization/default.aspx
http://blogs.technet.com/virtualization/default.aspx
http://www.microsoft.com/virtualization/case-studies.mspx
http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/defaul
t.aspx
http://www.microsoft.com/hvs
http://www.microsoft.com/windowsserver2008/en/us/hyperv-faq.aspx
http://www.microsoft.com/windows/products/windowsvista/enterprise/default
.mspx
Virtualization for BI Infrastructure
Scenario Description:
• Business Intelligence (BI) components with lower
resource requirements such as Data Mart (DM), OLAP
Cube, Reporting Servers are good candidates for scale
out and ideal for virtualization
• Operational Data Store (ODS), Data Warehouse (DW),
SQL Server® Integration Services could be physical or
virtual depending on scale up requirements
Virtualization Benefits:
• Increase agility by rapidly provisioning and
scaling-out BI components on demand
• Reduce the number of physical servers, save
on power and space
• If virtual, put SSIS and Data Warehouse on the same
Virtual Machine (VM)
External
ERP
Web
VM
Legacy
Reporting
Server
Operational
Data Store
SQL Server®
Integration
Services
(SSIS)
Data
Warehouse
(DW)
Reporting
Server
Click Here For More Information
Data Mart &
OLAP Cube
Data Mart &
OLAP Cube
37
High Availability with Live Migration
Scenario Description:
• Manage high availability with multipathing and live
migration for planned downtime situations, such as
hardware and software maintenance
• Failover individual virtual machines (VMs) to other
hosts within a cluster by using Cluster Shared
Volume (in Windows Server® 2008 R2)
• Use Microsoft ® System Center Virtual Machine
Manager for migrations. System Center VMM can
perform host compatibility checks before migrations
and manage multiple Live Migrations with queues.
• Nodes in cluster can be active-active
• Ensure there is enough CPU capacity for the failover
nodes in cluster
Virtualization Benefits:
• No loss of service during failover with live
migration. Migration is completely transparent to
the user
• Improve availability with less complexity
• Better server utilization due to consolidation
VM
11
Live
Migration
2
Host cluster
Shared Storage
iSCSI, SAS, Fibre
• Easier set up and management through System
Center VMM
Click Here For More Information
38
SAN Migration with SCVMM
Scenario Description:
• N-Port ID Virtualization (NPIV) is a Fiber Channel
facility that allows administrators to migrate
VMs between host by remapping World Wide
Port Name (WWPN)
• Recommended for high levels of security
• Support high performance SQL Server®
workloads
• Deploy Hyper-V™ while preserving Fiber
Channel security infrastructure
• System Center VMM orchestrates virtual
machine (VM) Migration
VM
SAN
Migration
2
1
1
2
3
2
3
2
 NPIV HBA
• VM boot and data disks migrate transparently
Virtualization Benefits:
• Provides redundancy without requiring failover
cluster
• NPIV allows administrators to migrate VMs
between host by remapping world wide name
• Data only needs to be exposed to specific virtual
ports (WWPNs) to ensure security
• Reduces network overhead of migrating VMs
 NPIV Switch
FC Switch
(NPIV supported)
Storage LUNS
Key:
NPIV Switch: N-Port ID Virtualization Switch
FC Switch: Fiber Channel Switch
NPIV HBA: N-Port ID Virtualization Host Bus Adapter
39
Remote Site Consolidation with DB
Mirroring
Scenario Description:
• Help protect from data loss with SQL Server®
Database Mirroring. Automatically, failover
from primary to standby using witness.
• Consolidate mirrored database servers on
standby site with virtualization
• Use mirrored databases with database
snapshots for reporting
• Ensure there is enough CPU capacity at the
standby site to provide acceptable SLA upon
failover
VM
SQL Server Database
Mirroring
1
Reporting Server
(DB Snapshot)
2
1
Virtualization Benefits:
• Better server utilization on standby site due
to consolidation
• Cost effective disaster recovery solution
without using costly specialized hardware
• Management efficiency based on SQL Server
and System Center management tools
2
3
SQL Server Database
Mirroring
1
Click Here For More Information
40
HA with Guest Clustering Using iSCSI
Scenario Description:
• Improve high availability with a combination of
guest clustering and host clustering
• Only iSCSI is supported for guest clustering
• iSCSI Initiator runs within the VM allowing storage
to be fully visible to the VM
• Storage is fully visible to the guest cluster and
enables high-availability of services and applications
in the virtual layer
• Support the use of multiple redundant paths using
Microsoft Multipath IO (MPIO) or MCS (multiple
connections per session) from within the VM
VM
Guest
Cluster
Guest
Cluster
2
1
Virtualization Benefits:
• Provide fault tolerance both at application and
host level
• All applications can run in the context of the VM
• Management efficiency based on SQL Server® and
System Center management tools
• Backup applications have full visibility to data
within the application context
• Storage providers such as MPIO, VDS, VSS run
within the VM
Click Here For More Information
Shared Storage
Redundant
Paths to storage
iSCSI
41
Recommendations for Configuring SQL
Server with Hyper-V
Best Practices for SQL Server® with Hyper-V™
• Guest virtual machines limited to 4 CPU cores
• Configure a 1-to-1 mapping of virtual processor to logical processors for
best performance
• Network intensive applications should be tested for acceptable SLAs
• Use multipathing on host or within the VM to ensure maximum throughput
and high availability for VM workloads
• Utilize either pass-through disk or fixed-size VHD for guest virtual machines
Pass-through disk configuration provides the best I/O performance and
predictability
o Pass-through disks allow movement of data by remapping disks vs. copy
overhead on network infrastructure
o Virtual Machines using VHDs are easier to move around than pass-through disks
o
• Storage size should be considered with workload and response time
requirements
• Avoid using emulated devices. Instead, ensure integration components are
installed and synthetic devices are being used.
42
http://www.windowsservercatalog.com/svvp.aspx
http://support.microsoft.com/kb/957006/
http://support.microsoft.com/?id=956893
The information contained in this document represents the current view of Microsoft Corporation on the issues
discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not
be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any
information presented after the date of publication.
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR
STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under
copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted
in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose,
without the express written permission of Microsoft Corporation.
2009 Microsoft Corporation. All rights reserved. Microsoft ® SQL Server®, Microsoft ® Exchange, Microsoft
® Office SharePoint® Server, Microsoft® System Center 2008, Microsoft® System Center Virtual Machine
Manager 2008, Windows Server® 2008 Hyper-V™ are trademarks of the Microsoft group of companies. All
other trademarks are property of their respective owners.