+ All Categories
Home > Documents > SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for...

SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for...

Date post: 19-Dec-2015
Category:
Upload: hortense-preston
View: 240 times
Download: 2 times
Share this document with a friend
47
park the future. May 4 – 8, 2015 Chicago, IL
Transcript
Page 1: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Spark the future.

May 4 – 8, 2015Chicago, IL

Page 2: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Microsoft SharePoint Server with SQL Server: Now Better Than EverBrian Alderman

Page 3: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

About meBrian Alderman (MCSE: SharePoint, MCT / Author / Speaker)CBT Nuggets – www.cbtnuggets.com [email protected]@brianalderman @cbtnuggetswww.microtechpoint.com – Brian’s BlogCo-Author SharePoint 2010 Administrator’s CompanionCo-Author SharePoint 2013 Administration Inside OutEnjoy travel and golf

Page 4: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

AgendaSharePoint and SQL

Server integration

Demo: SQL Server Optimizing

Configurations

SQL Server 2014 for SharePoint 2013

Avoiding ginormous

transaction logsSharePoint and SQL Server best practices

SQL Server Configurations

Page 5: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SharePoint and SQL Server integration

Page 6: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

All SQL Server versions and SharePoint versionsMajority of SharePoint data stored in SQL ServerSharePoint farm configuration info stored in Config_DB Central Administration content stored in own content database (Blog on how to rename)Every web application minimum of one content DB (Blog on how to rename)Most service applications have at least one DBRecommended dedicated instance of SQL for SharePoint

Page 7: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SQL Server Instance DatabasesConfiguration database of SQL Server instance

Storage of SQL Server automation configuration information

Temporary work storage area

Template used to create all new databases

Master

Msdb

Tempdb

Model

Page 8: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SharePoint farm requires several databases (>20 DB’s if spousal installation and run Configuration Wizard) Content database contains several site collectionsSite collection resides in only one content databaseUse Full Recovery model on production databasesControl size of database (Recommended 200GB) Site collection quota templates Maximum number of site collections per database

Page 9: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Controlling Size of Content Databases

Web Application

200GB 200GB 200GB

200GB

Site Collections Site Collections Site Collections Site Collections

ProjectSites

DepartmentSites

HRSites

MarketingSites

Require 800 Site Collections with 500 MB Quota400 x 500MB = 200GB

750mb X 250 = 187,500mb / 1024 = 183gb

250 250 250 250

Page 10: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SQL Server configurations

Page 11: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Default file locations (Move off C:\ Drive)Minimum and maximum Memory settingsMax Degree of Parallelism (MAXDOP) set to 1 Create SQL Server alias for SharePoint SQL instance (Not used by FAST search SKU (SharePoint 2010, use DNS alias)SharePoint collation – Latin1_General_CI_AS_KS_WS

During installation of SQL Server hosting SharePoint contentDuring creation of content database in SQL Server

Page 12: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Model database file settingsIncrease initial size of data and log filesIncrease Autogrowth settings (Use MB not %)

Tempdb database file settings Increase initial size of data and log filesIncrease Autogrowth settings (Use MB not %) Use Simple Recovery model Place files on different drive from content databases

Page 13: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Steps for AlwaysOn Setup

Create SharePoint

farm

Prepare databases for

AlwaysOn

Be sure set to Full Recovery model

Backup all SharePoint databases

Prepare SQL Server cluster

Use created AlwaysOn

cluster with SharePoint

Prepare SharePoint 2013

with SP1

Create SQL alias and point to SQL

node

Create new farm with DB’s & SA’s using SQL alias

Create new AlwaysOn

Availability Group

Create listener

Update SQL alias on each server to

use listener

Test SQL Server failover with SharePoint

Page 14: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Demo: SQL Server Configurations

Brian Alderman

Page 15: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SQL Server 2014 for SharePoint 2013

Page 16: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Performance Standard edition supports up to 128GB of RAM opposed to 64 in SQL Server 2012AlwaysOn Availability Groups Enhancements Supports 8 secondary replicas as opposed to 4 Read-only secondary’s still available if lose primary or quorum Azure support for hosting availability group data files, entire replica, and backing up to a URL to store in Azure Blob StorageSecurity Support for native backup encryption

Page 17: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SQL Server 2014 with SharePoint 2013, must have May CU Access Services 2013 not supported on SQL Server 2014 CTP

New deployments should specify Availability Group Listener name that will host the CA and configuration DB’sAppFabric 1.1 installation https://www.microsoft.com/en-us/server-cloud/products/sql-server/Comparison.aspxSharePoint 2016 will require SQL Server 2014

Page 18: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Avoiding ginormous transaction logs

Page 19: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

SQL Server Transaction Log Process

Modification is sent byapplication to SQL Server1

Data pages are located in, or read into the buffer cache and then modified

2

Buffer Cache

Modification is recorded in transaction log on disk3

Later, CHECKPOINT writesdirty pages to database4

LDF

MDF

Page 20: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Avoiding Ginormous Transaction Logs

mdf ldf

Sunday

Full Backup

mdf ldf

Tuesday

Differential

mdf ldf

Differential

Monday

mdf ldf

Differential

Wednesday

You lose mdf file of database on Thursday at 4:00pm

(1) BACKUP LOG DB_Name TO D:\SQLBackups\TempBackup.Bak WITH NORECOVERY

(2) Restore Full Backup from Sunday (3) Restore Differential Backup from Wednesday

(4) RESTORE LOG FROM D:\SQLBackups\TempBackup.Bak

BACKUP LOG DB_Name TO D:\SQLBackups\Weekly_T_Log.Bak WITH INIT

Page 21: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Best practices

Page 22: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Dedicated SQL Server 2014 instance / serverNo spousal installations of SQL Server or SharePointDatabase size should not exceed 200GBMax Degree of Parallelism (MAXDOP) set to 1Create SQL alias for SQL Server SharePoint instanceModify Model and Tempdb system database settings Don’t enable Auto_Create or Auto_Update Statistics Avoid auto-shrinking databasesUse database Autogrowth sparingly

Reduces fragmentationImproves data entry performance

Page 23: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Spread data files and transaction log files across multiple drives or place on RAID 5/10Create multiple Tempdb files (.ndf) on multiple drives or RAID 10 for drives hosting Tempdb filesGenerate Database Maintenance PlansDefragment drives containing content database filesDon’t rebuild or manage indexes of SharePoint DB’sPerform regular backups of database and t-logsMonitor SQL Server storage and performancePerform DBCC CHECKDB operations regularlySay NO to Simple Recovery model

Page 24: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

ReviewSharePoint and SQL

Server integration

Demo: SQL Server Optimizing

Configurations

SQL Server 2014 for SharePoint 2013

Avoiding ginormous

transaction logsSharePoint and SQL Server best practices

SQL Server Configurations

Page 25: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

© 2015 Microsoft Corporation. All rights reserved.

Page 26: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Slides below this are the Microsoft template slides

Page 27: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

AgendaSharePoint and SQL Server integrationSQL Server configurations Demo: Optimizing SQL Server for SharePoint SQL Server instance configurations Database configurationsSQL Server 2014 for SharePoint 2013Avoiding ginormous transaction logsSQL Server best practices

Page 28: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

ReviewSharePoint and SQL Server integrationSQL Server configurations Demo: Optimizing SQL Server for SharePoint SQL Server instance configurations Database configurationsSQL Server 2014 for SharePoint 2013Avoiding ginormous transaction logsSQL Server best practices

Page 29: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

ATTENTION: PLEASE READPhotography and copyright infringement.

Using imagery from movies, television, music and pop-culture is illegal, unless purchased, licensed or by express written consent from the owner. Please do not include unlicensed imagery in your presentation.

Sessions with questionable imagery will not be published until resolved. The speaker will be contacted via email for immediate resolution. If additional costs are incurred in editing, an I/O Code will be required.

If you have any questions regarding your imagery please contact Media Acquisitions Inquiries: [email protected].

The PPT deck and Recording will not be published until the editing is complete.

Page 30: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

If an image is on the Internet/Bing it is in the public domain.

If there is no copyright notice on the image, I don’t need permission.

If I don’t profit from the use, I don’t need permission.

If I remove the image after notice, I don’t owe any money to the copyright.

If I alter the image X%, I don’t need permission.

If I only use a part of the image, I don’t need permission.

If I only include a hyperlink in my presentation and click it to show the image, I don’t need permission.

Common Copyright Myths

Page 31: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Resources for Microsoft employees

MediaacqMicrosoft Brand ToolsPresentation guidelinesMicrosoft photographyMicrosoft illustrations

Can’t find the image that you have in mind for your presentation? The Media Acquisitions team can help you find and license imagery through our stock photography providers. You will also find imagery and information via these links:

For information on the use of third-party copyrighted content: http://lcaweb/CTP/Copyrights/Third-Party-Content-Use/Pages/default.aspx

(Media Acquisitions alias) www.superstock.com/www.gettyimages.com/creativeimages/royaltyfreewww.corbisimages.com/stock-photo/royalty-free

There are agreements in place with these providers.

Page 32: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Preferred text layout (no bullets)Main topic 1: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 2: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 3: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Page 33: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Preferred text layout (no bullets)Main topic 1: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 2: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 3: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Page 34: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Adjusting list levelsMain topic 1: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 2: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Main topic 3: size 40ptSize 20pt for the subtopicsSize 20pt for the subtopics

Use the “Decrease List Level” and “Increase List Level” tools on the Home Menu to change text levels.

Try this: 1. Place your cursor in any row of

text to the left that says “Size 20pt for subtopics”

2. Next click the Home tab, and then on the “Decrease List level” tool. Notice how the line moves up one level.

3. Now try placing your cursor in one of the “Main topic…” lines of text. Click the “Increase List Level” tool and see how the text is pushed in one level

Use these 2 tools to adjust your text levels as you work

Page 35: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Example of a bulleted slide with a subhead Set the slide title to “Sentence case” Set subheads to “Sentence case”

Hyperlink style www.microsoft.com

Bullet points layout with subtitleSubtitle

Page 36: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Slide palette info

Accent 3Accent 2Accent 1 Accent 6Accent 5Accent 4Text

Light 2

Accent colors 1-6 – (6 Theme Colors to the far right)

The PowerPoint palette for this template has been built for you and is shown below. Avoid using too many colors in your presentation.

Use Accent 1 as the main accent color. Use Accent 2 and Accent 3 when additional colors are needed.

Use Accents 4-6 sparingly – only when more colors are necessary.

Page 37: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Video

Page 38: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Demo

Speaker name

Page 39: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Photo layout 1

Click icon to add picture

Page 40: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Microsoft brand guidelinesLooking for more slide resources?

Brand guidelines for PowerPoint templates is a separate slide deck that provides an overview of the Microsoft brand, guidelines, resources, tips and much more.

A few of the slides are shown at right.

Download from: https://brandtools.microsoft.com/Resources/Presentations/Pages/StoryBoard.aspx?section=Elements1

Page 41: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Section title

Page 42: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Section title

Page 43: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Section title

Page 44: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Section title

Page 45: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Section title

Page 46: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

Software code slideThis slide layout uses Consolas, a monotype font which is ideal for showing software code.

Page 47: SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.

© 2015 Microsoft Corporation. All rights reserved.


Recommended