15
Tuning SQL Server for SharePoint Jump Start Bill Baer | Senior Product Marketing Manager, Microsoft Brian Alderman | Chief Executive Officer | MicroTechPoint

Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Embed Size (px)

Citation preview

Page 1: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Tuning SQL Server for SharePoint Jump StartBill Baer | Senior Product Marketing Manager, MicrosoftBrian Alderman | Chief Executive Officer | MicroTechPoint

Page 2: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Course TopicsTuning SQL Server 2012 for SharePoint 2013 Jump Start01 | Key SQL Server and SharePoint Server Integration Concepts (50

minutes) Dedicated Server or Instance; SQL Database & database files; ldf to mdf checkpoint process; Recovery

model (Simple vs. Full)

02 | Best Practices: SQL Server Database Settings (50 minutes)Model Database; TempDB (Location); Initial size, Autogrowth, and Collation; Recovery model

03 | Server Settings for SQL Server (50 minutes)Default Database File Locations; Memory Settings; MAXDOP

04 | SQL Server and SharePoint Availability (50 minutes)Avoiding large log files; Backups and Location of Backups; SQL Server 2012 AlwaysOn; Best Practices

Page 3: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Module Agenda

• Model & Tempdb Database Settings• Database File Placement • Determining Number of Content Databases

Page 4: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Model & Tempdb Database Settings

Page 5: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Model System Database Settings

• Increase Initial Size Setting• Increase Autogrowth Settings (Use MB Not %)• Cannot Modify Collation on Model DB • Use Full Recovery Model

Page 6: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Full Recovery Model

.LDF

Data

Data

.MDFAdd

Content

Content Database Located on Hard Drive

Checkpoint

Data

Data

Full Recovery Model (Recommended)

Page 7: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Simple Recovery Model

.MDF .LDFAdd

Content

Content Database Located on Hard Drive

Checkpoint

Data

Data

Simple Recovery Model

Page 8: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Tempdb System Database Settings• Configure Tempdb Data Files = No of Proc. Cores• Configure Tempdb Size

−At Least 10% of Total Content DB’s Size or −Size of Largest Table - Whichever Greater

• Tempdb Database Settings−Increase Initial Size Setting−Increase Autogrowth Settings (Use MB Not %)−Use Simple Recovery Model−Place on Different Drive Than Content Databases

Page 9: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

DEMOModifying Model DB SettingsCreating Additional Databases

Page 10: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Database File Placement Determining Number of Databases

Page 11: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Recommended Database File Placement• Priority (Fastest to Slowest Drive)

−Tempdb Data and Transaction Log Files−DataBase Transaction Log Files−Search Database Data Files−Content Database Data Files

• Use Multiple Data Files for Content and Search DB’s−Distribute Equally-Sized Data Files Across Separate Disks−Number of Data Files Should Be <= Number of Processor Cores−Multiple Data Files Not Supported for Other DBs

Page 12: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Planning Site Collections and DatabasesNeed 800 Site Collections at 500MB Each

250 250 250 250

Site Collection Site Collection Site Collection

200GB 200GB 200GB

200GB

HRSites

ProjectsSites

SalesSites

StudentSites

Web Application

Site Collection

Page 13: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

DEMOConfiguring Content Databases

Page 14: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

Summary

• Modify Model Database to Reflect Configuration of New Databases

• Configure Tempdb for Improve Performance• Place Database Files on Recommended Drives• Control Size of Databases Using Quota

Templates and Maximum Site Collection per Database Setting

Page 15: Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. 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 provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.