• No results found

SharePoint 2010 Performance and Capacity Planning Best Practices

N/A
N/A
Protected

Academic year: 2021

Share "SharePoint 2010 Performance and Capacity Planning Best Practices"

Copied!
44
0
0

Loading.... (view fulltext now)

Full text

(1)

Information Technology Solutions

SharePoint 2010 Performance

and Capacity Planning Best

Practices

Eric Shupps

(2)

Information Technology Solutions

About Me

• SharePoint Server MVP

• President, BinaryWave

(3)

Information Technology Solutions

(4)
(5)

Information Technology Solutions

(6)

Information Technology Solutions

Architecture

• Design to function

– Heavy read operations require more web servers – Heavy write operations

require increased SQL IOPS – Heavy services (i.e. Search)

require additional application servers

• Design to Locality

– Global distribution with heavy write may require localized farms

Web Servers

Application Servers

(7)

Information Technology Solutions

Boundaries

Farm Services Service Applications Databases System Application Configuration Content Web

Applications Site Collections Sites Lists Items

(8)
(9)

Information Technology Solutions

(10)
(11)
(12)

Information Technology Solutions

Database Types

Configuration Central Admin Subscription Social Tagging Search Admin

Synchronization Profile Managed Metadata Properties

Usage Web Analytics

Search Crawl

Reporting

(13)

Information Technology Solutions

Database Calculations

Variable Value # Documents 1,000,000 Average Size 150 KB # List Items 3,000,000 # Versions 3

Formula: Database size = ((D × V) × S) + (10 KB × (L + (V × D)))

Database Size Estimates

Content DB Size 486.5 GB Crawl 22.4 GB Property 7.3 GB Profile 48.8 GB Sync 30 GB All other DB’s 269.5 GB

Number of User Profiles 50,000

Total Database Sizing Estimate

(14)

Information Technology Solutions

Content Databases

• Practical limit is 100GB

– Max supported limit is 200GB • Create separate databases

for:

– Site collections with large lists – Large numbers of subsites

– Intensive read/write operations

– Data isolation (security) • Consider amount of time it

takes to backup/restore

(15)

Information Technology Solutions

Search Databases

• Crawl databases can be

extremely large

• High index sensitivity

• Heavy transactional

volume

• Isolate crawl and temp

databases

– Distribute across spindles and LUN’s

• Highest performance disk

Admin

Crawl

(16)

Information Technology Solutions

Application Databases

• Small to moderate size

• Moderate transactional

volume

• Group on moderate

cost/performance disk

• Analytics

(17)

Information Technology Solutions

Database Management

• Manually configure auto-growth settings

• Defragment indexes

• Limit content database size per site

collection

• Implement regular backup schedule to

reduce log file size

(18)

Information Technology Solutions

Database Performance

– IOPS

• Throughput • Latency • Seek Time • Disk Speed • Cache Size • Queuing

– Contention

– Fragmentation

– Locks

(19)
(20)
(21)

Information Technology Solutions

Page Data Queries

Page

Master Page Layout Page Navigation Controls Permissions Menu Options Web Parts Data Sources File

(22)

Information Technology Solutions

SharePoint Caching

Page

First request served from content database, output written to memory

Subsequent requests for same resource read from

(23)

Information Technology Solutions

Managing Cache Settings

(24)
(25)

Information Technology Solutions 0 0.05 0.1 1 2 3 4 5 6 7 8 9 10 Uncustomized Customized

Average Performance Delta: ~10%

(26)

Information Technology Solutions

IIS Compression

• Reduces size of files

transmitted across the

wire

• Configurable for various

file types

• Increases CPU utilization

on WFE’s

(27)

Information Technology Solutions

CSS, Images and HTML

• Start with a minimal master page

• Use CSS overrides – do not modify core CSS files!

• Minify and consolidate CSS files

• Use image stitching (CSS sprites) on pages with a

lot of small images to reduce number of requests

• Store resources (style sheets, master pages,

layout pages, images) on the PHYSICAL file

system (i.e. /_layouts/) not the VIRTUAL file

system (Style Library, Publishing Images)

– Assets in libraries are stored in database

(28)

Information Technology Solutions

Javascript

• Ribbon requires extensive script

• Load only necessary linked script files for

target users

– Script on Demand framework handles delay

loading for common scripts

– Custom scripts must be delay-loaded manually

• Minify and consolidate files

(29)

Information Technology Solutions

Measuring Page Performance

(30)
(31)

Information Technology Solutions

Large Lists

• Just because a list CAN hold millions of

items doesn’t mean it SHOULD

• All user content in all lists throughout entire

site collection is stored in a single table in

the content database

• Folders improve view performance NOT

query performance

• List view web parts are now XSLT based;

(32)

Information Technology Solutions

List Definitions

• Rows

– More than 5,000 rows in a list is “large”

• Index the columns • Use search

• Columns

– More columns = more SQL rows

– More SQL rows will slow down performance up to 35%

• Storage

(33)

Information Technology Solutions

Throttling and Locks

• SQL Server escalates row locks to table locks

(> 5000)

• Query throttling reduces the impact of any single request by limiting the amount of data queried

• Throttling is configurable and can be altered for

administrators and specific time periods

• Bit rate throttling controls download speeds of large

objects (video, Flash, Silverlight)

(34)

Information Technology Solutions

(35)

Information Technology Solutions

Resource Throttling

(36)
(37)

Information Technology Solutions

Data Access

• Server Object Model

• Client Object Model

• CAML (LINQ)

• PortalSiteMapProvider

• Web Services

(38)

Information Technology Solutions

The Need for Speed

Client OM Web Services

REST CAML Search

(39)

Information Technology Solutions

Managing Large Data Sets

• Leverage search for mass data retrieval

• Use CAML queries for targeted item

selection

– Joins reduce performance

• Maintain SQL indexes for optimal query

execution

(40)

Information Technology Solutions

Data Aggregation

• SPSiteDataQuery

– Allows data to be retrieved across multiple list objects. – Provides moderate scalability but has performance

implications for large datasets.

• LINQ to SharePoint

– Does not work with external (BCS) lists.

– Can result in suboptimal queries—test for performance.

• Search

– Data is indexed and not real time (only valid as of last indexing operation).

– Does not provide context of results (no SPListItem, SPList, SPWeb, etc.).

• PortalSiteMapProvider

(41)

Information Technology Solutions

Developer Dashboard

• Developer Dashboard provides metrics on

object execution for individual pages

• Displays code-level request data for events

• Includes related database queries

• Identifies request allocations and control

event offsets

(42)

Information Technology Solutions

(43)

Information Technology Solutions

Code Instrumentation

Custom Code

Events Methods Service Calls Queries

SPMonitoredScope

• Microsoft.SharePoint.Utilities.SPMonitoredScope provides instrumentation for custom code

(44)

Information Technology Solutions

Using the Developer Dashboard

to Isolate Performance Issues

References

Related documents

The Business Value of Microsoft® SharePoint® Server 2010 Enterprise Content Management Server 2010 Enterprise Content Management Server 2010 Enterprise Content Management Server

If the foreign currency appreciates (i.e. the home currency depreciates), a market entry may become profitable, namely under consideration of the sunk entry costs. After a firm

SharePoint 2010 Adoption Best Practices | White Paper Page | 18 Another key role that you should be sure to consider in your training plan is your Help Desk.. You will need to

Mission is travel to allianz insurance policy terms and international health insurance company can i able to work with your date by selecting just make the schengen country?.

On 14 December 1989, the parties therein agreed to submit

The treatment concludes with a relaxing aroma oil massage using our Mizuki signature “Yuzu citrus and hinoki cypress” oil to provide a sense of deep relaxation and

In sites based on SharePoint Server 2010, each default list item or library item — such as Contact, Task, or Document — has a corresponding core content type in the site's content

As you learn best practices for configuring and securing SharePoint 2010 BI applications and planning and implementing your SharePoint BI project plan, you'll be well on your way