SlideShare a Scribd company logo
blog.eardley.org.uk
SharePoint Databases
What you need to know
Alan Eardley - @al_eardley
SQL & SharePoint Saturday
12 September 2015
blog.eardley.org.uk
Who Am I?
• Lead SharePoint Technical Architect at CPS
• Developer, DBA, Business Analyst, Project Manager, Architect
• SQL Server 7.0 - 2014
• SharePoint 2003 – 2013
• Office 365, Azure, Project Server/Online, Dynamics CRM
• Twitter: @Al_Eardley
• E-mail: Alan.Eardley@Outlook.com
• Blog: http://blog.eardley.org.uk
blog.eardley.org.uk
What will I cover?
• What does it do?
• How does it work?
• How does it use SQL?
What is SharePoint?
• How many databases does it need?
• How does it grow?
• HA & DR
Planning
• Are there any pre-requisites?
• How do I help with the build?
Roll-out
This relates to on-premises SharePoint
NOT Office 365
blog.eardley.org.uk
SharePoint – What does it do?
Document
Management
Content
Management
Process
Management
Search
Publishing Social Collaboration
Business
Intelligence
blog.eardley.org.uk
SharePoint – How does it work?
Lists & LibrariesSitesSite CollectionsWeb Applications
Intranet
Departments
HR
IT
Documents
Knowledge Base
Help Desk
Issues
Sales
Projects
Upgrade to
SP2013
Risks
Issues
Tasks
Upgrade
My Sites
Client Extranet
blog.eardley.org.uk
SharePoint – How does it work?
Business
Connectivity
Services
Managed
Metadata
Services
Excel Services
PerformancePoint
Services
PowerPivot for
SharePoint
Project Server Search
User Profile
Service
blog.eardley.org.uk
SharePoint – How does it use SQL?
• Most Service Applications utilise at least
one database
Service
Applications
• At least one database per Web Application
• Each site collection can have a database
Content
Databases
• Multiple DatabasesMy Sites
Databases should not exceed 200GB in
size
With the exception of Records Centre
databases
blog.eardley.org.uk
Planning – How many databases does it
need?
• Types of Database
– Administration
– Content
– Service Applications
• How many databases will be required?
• How large do they need to be?
• How fast will they grow?
blog.eardley.org.uk
Admin & Content Databases
Default Database Name Location Size Initial Size Growth Read/write Scaling
SharePoint_Config
Must be co-located with
the Central Administration
database Small 2GB Log files grow rapidly 90/10 Up
SharePoint_AdminContent_
<GUID>
Must be located on the
same database engine
instance with the
configuration database Small 1GB
Will grow if PowerPivot
for SharePoint is
installed with default
settings 90/10 Up
WSS_Content None <200GB Varies Varies Up or Out
blog.eardley.org.uk
Service Applications
Default Database Name Location Size
Initial
Size Growth
Read/writ
e Scaling
Bdc_Service_DB_<GUID> None Small Very slow 90/10 Up
Managed Metadata Service
Application_Metadata_<GUID> None Medium
Growth factors include
the amount of managed
metadata 80/20
Up per service
application
PerformancePoint Service
_<GUID> None Small 1GB Very slow 80/20
Up per service
application
DefaultPowerPivotServiceApplicatio
nDB_<GUID> None Small Very slow 80/20 Up only
ProjectWebApp None
Small to
Medium Very slow 80/20
Up per web
application
blog.eardley.org.uk
Search
Default Database Name Location Size
Initial
Size Growth Read/write Scaling
Search_Service_Application_DB_<
GUID>
The Administration database should fit into RAM on
the server so that the server can handle the end-user
query load most efficiently. Because of this
requirement, it is usually best not to have the
Administration and Crawl databases located on the
same server. Medium 10GB
The factors that influence
growth include the number of
best bets, the number of
content sources and crawl
rules, the security descriptions
for the corpus, and how much
traffic. 50/50 Mostly Up
Search_Service_Application_Analy
ticsReportingStoreDB_<GUID> None
Medium to
Large
Write-intensive during analytics
update 90/10
Scale out by creating additional
Analytics Reporting database
using a split operation when the
main database becomes >200
GB.
Search_Service_Application_Crawl
StoreDB_<GUID> None Medium
Depends on the growth of the
document corpus 90/10
Scale out by creating additional
Crawl database per every 20
million items crawled.
Search_Service_Application_LinkS
toreDB_<GUID>
We recommend that if you have sites that have heavy
traffic, the Link database should use separate spindles
from other databases
Medium to
Large
The Link database grows on
disk by 1 GB per 1 million
documents fed. The click
through data grows linearly with
query traffic, 1 GB per million
queries. 30/70
Scale out by creating additional
Link database per every 60
million documents crawled. Also
add additional Link database per
100 million expected queries per
year.
blog.eardley.org.uk
Single Farm
• Web Front EndPresentation
• Application Server
• Workflow Manager
• Office Web Apps
Application
• SQL ServerData
On-PremisesResources
SharePointSharePoint
WorkflowManagement
DataLayer
OfficeWebApplications
ApplicationPresentation
SharePoint -
WFE
SharePoint -
WFE
SharePoint -
App
SharePoint -
App
Office Web
Apps
Office Web
Apps
Domain
Controller
Database
Server
Database
Server
Load Balancer
WorkFlow
Manager
WorkFlow
Manager
WorkFlow
Manager
SQL Cluster
Load Balancer
Load Balancer
blog.eardley.org.uk
High Availability
• Mirroring
– SharePoint supports mirroring
• Clustering
– Preferable to mirroring as it is at server level
• Always On Availability Groups
– Builds on the benefits of Clustering
blog.eardley.org.uk
Backup
• As a DBA, same as any other application
– Full backups
– Differential backups
– Transaction backups
• Check consistency
• Fragmentation
– Check for index fragmentation
– Check for drive fragmentation
blog.eardley.org.uk
Recovery Overview
Site
• Everyone
• 30 days
• Items and documents
• Automatically moved
to site collection
recycle bin
Site Collection
• Site collection
administrator
• First in – first out
• Includes sites
blog.eardley.org.uk
Recovery
• When a site is required to be restored
• When a site collection has been deleted
Content
Databases
• When a Service application needs to
rebuilt
Service
Application
• When a farm needs to be recoveredCentral Admin
blog.eardley.org.uk
Shared Services
• SharePoint Service Applications
– Search
– User Profile
– Managed Metadata
– Secure Store
– Business Connectivity
blog.eardley.org.uk
Multiple Farms, Multiple Data Centres
Data Centre A
AuxiliaryServices
AppProviderHosts
Data Centre B
Storage
Layer
Data
Layer
Data
Layer
ContentFarm
ServicesFarm
WebFrontEnds
WebFrontEnds
Index&Query
HA
Crawl&Analysis
HA
DistributedCache
HA
BatchProcessing
HA
BI:Excel&SSRS
HA
BatchProcessing
HA
OfficeWebApps
WorkflowFarm
Storage
Layer
Always On
Availability
Groups
Config–AG
Content-AG
Auxiliary-AG
Storage
Layer
Data
Layer
Scheduled
Backup &
Restore
WarmStandby-AuxiliaryServices
WarmStandby–ContentFarm
WarmStandby–ServicesFarm
Project
ServerFarm
Legacy
Application
Farm
TMG TMG
blog.eardley.org.uk
Data Level
ActiveDirectory
Data Centre BData Centre A
AGListener
AGListener
Synchronous
Asynchronous
WindowsServer
FailoverCluster Synchronous
WindowsServer
FailoverCluster
Scheduled
Backup &
Restore
blog.eardley.org.uk
How Can I Help?
• Set up SQL Instance correctly
• Understand the database usage profilesConfiguration
• Standards and processes
• PowerShellInstallation
• Monitor
• Plan for growth
• Backup
Maintenance
blog.eardley.org.uk
Configuration
• Used a dedicated instance
• Default Collation - Latin1_General_CI_AS_KS_WS
• MAXDOP = 1
• Disable auto-create statistics
• Define the maximum memory
• Make a note of the Port Number the Instance is listening on
• Single filegroup per DB
blog.eardley.org.uk
Support
• The general rules to not invalidate Microsoft Support are:
– Do not add anything to the SharePoint databases
• Stored Procedures
• Triggers
• Tables
• Indexes
– Do not run frequent queries against the SharePoint Databases
blog.eardley.org.uk
Summary
• The number of databases depends on the service applications
• The size of the databases will depend on
– The number of users
– The number of documents and the amount of content
– The amount of usage of SharePoint
• A database instance for SharePoint has specific requirements
• HA and DR strategies are a combination of SharePoint and SQL approaches
• SharePoint databases are the same as any other databases
blog.eardley.org.uk
SharePoint Database References
blog.eardley.org.uk/2015/03/sharepoint-databases-knowledge-base/
• A combination of Microsoft documentation
– SQL based
– SharePoint based
• Initial sizes
• Growth
• Usage
• HA/DR
• Links to PoSh to create the databaes
blog.eardley.org.uk
blog.eardley.org.uk
Stick around for SWAG! (Prize drawing at 5.00 p.m)
• All our volunteers and organisers do not get paid for running SPS
SQLSaturday Cambridge and do it because they believe in the power of
community (or are just plain nuts). Please show your gratitude for making this
possible by:
– Giving them a hug
– Shaking their hand
– Saying thank you
– Coming back next year
– Consider getting your company to pay for a precon next year
– Speading the word
– Getting involved yourself
– But most of all, by enjoying the day!
• Don’t forget to thank the sponsors for their support
• Thank the speakers for donating their time, energy and expenses
blog.eardley.org.uk
Stick around for SWAG! (Prize drawing at 5.00 p.m)
SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!)
SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here
Microsoft — MCP Voucher
Data Idols — Supercar Driving Experience
Profisee — Signed MDS Book and £50 Amazon Voucher
SQLSentry — Plan Explorer PRO License
Pyramid Analytics—Coffee Machine
Effektor — Lego Big Ben
Rencore — SPCAF Professional License (valued at $2099!)
Axioworks — Amazon Fire TV and £75 Amazon Voucher
DELL — Beats by Dr Dre Headphones
Redgate — DLM Workshop
Pluralsight — Annual Plus subscriptions
All Your Base Conference — 3 x Conference Tickets
VisualSP—Annual training subscription
Loads of books and much much more!!!
blog.eardley.org.uk
Thank-you
Alan Eardley – Alan.Eardley@outlook.com
blog.eardley.org.uk
@al_Eardley
http://1drv.ms/1Oj0jj6
Office 365 | SharePoint | Project Server | CRM | Recruitment

More Related Content

PPTX
SharePoint Databases: What you need to know (201504)
PDF
SharePoint 2016 Upgrade Planning
PPTX
What Makes for a Successful Migration to SharePoint Online
PPTX
Mastering SharePoint Migration Planning
PDF
Office 365 and share point online ramp up in 60 minutes for on-premises share...
PPTX
SharePoint Upgrade or Migration, or is it both? - SPS London 2016
PPTX
Bringing your data to life using Power BI - SPS London 2016
PPSX
Replacing your fileshare with SharePoint 2013 Farm - SharePoint User Group UK...
SharePoint Databases: What you need to know (201504)
SharePoint 2016 Upgrade Planning
What Makes for a Successful Migration to SharePoint Online
Mastering SharePoint Migration Planning
Office 365 and share point online ramp up in 60 minutes for on-premises share...
SharePoint Upgrade or Migration, or is it both? - SPS London 2016
Bringing your data to life using Power BI - SPS London 2016
Replacing your fileshare with SharePoint 2013 Farm - SharePoint User Group UK...

What's hot (20)

PPTX
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
PPTX
Power Users Guide to Office 365 - Collab365 Summit 2016
PPT
SharePoint 2010: Business Insights
PPTX
SharePoint Saturday Madrid 2016 - SharePoint Upgrade or Migration, or is it b...
PPTX
Securing SharePoint Environment and its Content - SharePoint User Group UK Ca...
PPTX
DotNetNuke Urls - Best practice for administrators, editors and developers
PPTX
SharePoint 2016 Why Upgrade: Top 10 Compelling Features
PPTX
SharePoint Saturday Paris 2015 Validating SharePoint 2013 Farm Before Go-Live
PPTX
SharePoint Upgrades For The Business
PPTX
SPS Toronto 2015
PPTX
SPS Kansas City: What SharePoint Admin need to know about SQL
PDF
Share point 2013 migration solutions
PDF
Anatomy of an Intranet (SPSATL 2014)
PPTX
Migrate to share point 2016 (presentation)
PPTX
SPS Twin Cities - Congratulations You Inherited a SharePoint Site
PDF
Benefits of Upgrading to SharePoint 2013
PPTX
Avoiding 10 common SharePoint Administration mistakes
PPTX
What SharePoint Admins need to know about SQL-Cinncinati
PPTX
Tips in migrating to SharePoint 2016 or O365, to avoid a migration headache
PPTX
Spsbe 18-04-15 - should i move my network folders to office 365
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
Power Users Guide to Office 365 - Collab365 Summit 2016
SharePoint 2010: Business Insights
SharePoint Saturday Madrid 2016 - SharePoint Upgrade or Migration, or is it b...
Securing SharePoint Environment and its Content - SharePoint User Group UK Ca...
DotNetNuke Urls - Best practice for administrators, editors and developers
SharePoint 2016 Why Upgrade: Top 10 Compelling Features
SharePoint Saturday Paris 2015 Validating SharePoint 2013 Farm Before Go-Live
SharePoint Upgrades For The Business
SPS Toronto 2015
SPS Kansas City: What SharePoint Admin need to know about SQL
Share point 2013 migration solutions
Anatomy of an Intranet (SPSATL 2014)
Migrate to share point 2016 (presentation)
SPS Twin Cities - Congratulations You Inherited a SharePoint Site
Benefits of Upgrading to SharePoint 2013
Avoiding 10 common SharePoint Administration mistakes
What SharePoint Admins need to know about SQL-Cinncinati
Tips in migrating to SharePoint 2016 or O365, to avoid a migration headache
Spsbe 18-04-15 - should i move my network folders to office 365
Ad

Similar to SharePoint Databases: What you need to know (201509) (20)

PPTX
SharePoint Databases: What you need to know (201512)
PPTX
SharePoint Databases: What you need to know (201609)
PPT
Large Scale SQL Considerations for SharePoint Deployments
PPTX
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
PDF
Introduction to SharePoint for SQLserver DBAs
PPTX
What SQL DBA's need to know about SharePoint
PPTX
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
PPTX
What SQL DBA's need to know about SharePoint-St. Louis 2013
PPTX
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
PPT
Sql And Storage Considerations For Share Point Server 2010
PPTX
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
PPTX
What SQL DBAs need to know about SharePoint-Indianapolis 2013
PPTX
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
PDF
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
PPT
Automating SQL Server Database Creation for SharePoint
PDF
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
PPTX
Establishing Environment Best Practices T12 Brendan Law
PPTX
Sql Health in a SharePoint environment
PPTX
SharePoint 2010 database maintenance
PPTX
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
SharePoint Databases: What you need to know (201512)
SharePoint Databases: What you need to know (201609)
Large Scale SQL Considerations for SharePoint Deployments
1. SQL Server forSharePoint geeksA gentle introductionThomas Vochten • Septem...
Introduction to SharePoint for SQLserver DBAs
What SQL DBA's need to know about SharePoint
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
Sql And Storage Considerations For Share Point Server 2010
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
What SQL DBAs need to know about SharePoint-Indianapolis 2013
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
Automating SQL Server Database Creation for SharePoint
ECS19 - Thomas Vochten - ESSENTIAL DATABASE ADMINISTRATION SKILLS FOR SHAREPO...
Establishing Environment Best Practices T12 Brendan Law
Sql Health in a SharePoint environment
SharePoint 2010 database maintenance
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Ad

More from Alan Eardley (20)

PPTX
Security & Compliance: Core Concepts Explained
PPTX
Model driven Power Apps for Dummies (and non-Dynamics Folks)
PPTX
Inclusion by Design - Scottish Summit 2020
PPTX
SPS Oslo - To-Do: How to manage tasks effectively
PPTX
Productivity in an age of collaboration sps leicester
PPTX
Productivity in an age of collaboration sps london 2019
PPTX
Security in an age of collaboration 201903 - tvaug
PPTX
Cloud First: Be Prepared
PPTX
To-Do: How to manage tasks effectively
PPTX
Cloud First: Be Prepared
PPTX
Cloud First: Be Prepared
PPTX
How did we do? Feedback Made Easy
PPTX
To Do: How to manage tasks effectively
PPTX
Cloud First: Be Prepared
PPTX
Office 365: The Art of the Possible (201603)
PPTX
201509 sp sat-cambridge-o365-theartofthepossible
PPTX
Office 365 Intranet
PPTX
How does SharePoint access data
PPTX
To-Do: How to manage tasks effectively
PPTX
Office 365 Groups vs. Teams (201705)
Security & Compliance: Core Concepts Explained
Model driven Power Apps for Dummies (and non-Dynamics Folks)
Inclusion by Design - Scottish Summit 2020
SPS Oslo - To-Do: How to manage tasks effectively
Productivity in an age of collaboration sps leicester
Productivity in an age of collaboration sps london 2019
Security in an age of collaboration 201903 - tvaug
Cloud First: Be Prepared
To-Do: How to manage tasks effectively
Cloud First: Be Prepared
Cloud First: Be Prepared
How did we do? Feedback Made Easy
To Do: How to manage tasks effectively
Cloud First: Be Prepared
Office 365: The Art of the Possible (201603)
201509 sp sat-cambridge-o365-theartofthepossible
Office 365 Intranet
How does SharePoint access data
To-Do: How to manage tasks effectively
Office 365 Groups vs. Teams (201705)

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPT
Teaching material agriculture food technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation theory and applications.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
Teaching material agriculture food technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
sap open course for s4hana steps from ECC to s4
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Review of recent advances in non-invasive hemoglobin estimation
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

SharePoint Databases: What you need to know (201509)

  • 1. blog.eardley.org.uk SharePoint Databases What you need to know Alan Eardley - @al_eardley SQL & SharePoint Saturday 12 September 2015
  • 2. blog.eardley.org.uk Who Am I? • Lead SharePoint Technical Architect at CPS • Developer, DBA, Business Analyst, Project Manager, Architect • SQL Server 7.0 - 2014 • SharePoint 2003 – 2013 • Office 365, Azure, Project Server/Online, Dynamics CRM • Twitter: @Al_Eardley • E-mail: Alan.Eardley@Outlook.com • Blog: http://blog.eardley.org.uk
  • 3. blog.eardley.org.uk What will I cover? • What does it do? • How does it work? • How does it use SQL? What is SharePoint? • How many databases does it need? • How does it grow? • HA & DR Planning • Are there any pre-requisites? • How do I help with the build? Roll-out This relates to on-premises SharePoint NOT Office 365
  • 4. blog.eardley.org.uk SharePoint – What does it do? Document Management Content Management Process Management Search Publishing Social Collaboration Business Intelligence
  • 5. blog.eardley.org.uk SharePoint – How does it work? Lists & LibrariesSitesSite CollectionsWeb Applications Intranet Departments HR IT Documents Knowledge Base Help Desk Issues Sales Projects Upgrade to SP2013 Risks Issues Tasks Upgrade My Sites Client Extranet
  • 6. blog.eardley.org.uk SharePoint – How does it work? Business Connectivity Services Managed Metadata Services Excel Services PerformancePoint Services PowerPivot for SharePoint Project Server Search User Profile Service
  • 7. blog.eardley.org.uk SharePoint – How does it use SQL? • Most Service Applications utilise at least one database Service Applications • At least one database per Web Application • Each site collection can have a database Content Databases • Multiple DatabasesMy Sites Databases should not exceed 200GB in size With the exception of Records Centre databases
  • 8. blog.eardley.org.uk Planning – How many databases does it need? • Types of Database – Administration – Content – Service Applications • How many databases will be required? • How large do they need to be? • How fast will they grow?
  • 9. blog.eardley.org.uk Admin & Content Databases Default Database Name Location Size Initial Size Growth Read/write Scaling SharePoint_Config Must be co-located with the Central Administration database Small 2GB Log files grow rapidly 90/10 Up SharePoint_AdminContent_ <GUID> Must be located on the same database engine instance with the configuration database Small 1GB Will grow if PowerPivot for SharePoint is installed with default settings 90/10 Up WSS_Content None <200GB Varies Varies Up or Out
  • 10. blog.eardley.org.uk Service Applications Default Database Name Location Size Initial Size Growth Read/writ e Scaling Bdc_Service_DB_<GUID> None Small Very slow 90/10 Up Managed Metadata Service Application_Metadata_<GUID> None Medium Growth factors include the amount of managed metadata 80/20 Up per service application PerformancePoint Service _<GUID> None Small 1GB Very slow 80/20 Up per service application DefaultPowerPivotServiceApplicatio nDB_<GUID> None Small Very slow 80/20 Up only ProjectWebApp None Small to Medium Very slow 80/20 Up per web application
  • 11. blog.eardley.org.uk Search Default Database Name Location Size Initial Size Growth Read/write Scaling Search_Service_Application_DB_< GUID> The Administration database should fit into RAM on the server so that the server can handle the end-user query load most efficiently. Because of this requirement, it is usually best not to have the Administration and Crawl databases located on the same server. Medium 10GB The factors that influence growth include the number of best bets, the number of content sources and crawl rules, the security descriptions for the corpus, and how much traffic. 50/50 Mostly Up Search_Service_Application_Analy ticsReportingStoreDB_<GUID> None Medium to Large Write-intensive during analytics update 90/10 Scale out by creating additional Analytics Reporting database using a split operation when the main database becomes >200 GB. Search_Service_Application_Crawl StoreDB_<GUID> None Medium Depends on the growth of the document corpus 90/10 Scale out by creating additional Crawl database per every 20 million items crawled. Search_Service_Application_LinkS toreDB_<GUID> We recommend that if you have sites that have heavy traffic, the Link database should use separate spindles from other databases Medium to Large The Link database grows on disk by 1 GB per 1 million documents fed. The click through data grows linearly with query traffic, 1 GB per million queries. 30/70 Scale out by creating additional Link database per every 60 million documents crawled. Also add additional Link database per 100 million expected queries per year.
  • 12. blog.eardley.org.uk Single Farm • Web Front EndPresentation • Application Server • Workflow Manager • Office Web Apps Application • SQL ServerData On-PremisesResources SharePointSharePoint WorkflowManagement DataLayer OfficeWebApplications ApplicationPresentation SharePoint - WFE SharePoint - WFE SharePoint - App SharePoint - App Office Web Apps Office Web Apps Domain Controller Database Server Database Server Load Balancer WorkFlow Manager WorkFlow Manager WorkFlow Manager SQL Cluster Load Balancer Load Balancer
  • 13. blog.eardley.org.uk High Availability • Mirroring – SharePoint supports mirroring • Clustering – Preferable to mirroring as it is at server level • Always On Availability Groups – Builds on the benefits of Clustering
  • 14. blog.eardley.org.uk Backup • As a DBA, same as any other application – Full backups – Differential backups – Transaction backups • Check consistency • Fragmentation – Check for index fragmentation – Check for drive fragmentation
  • 15. blog.eardley.org.uk Recovery Overview Site • Everyone • 30 days • Items and documents • Automatically moved to site collection recycle bin Site Collection • Site collection administrator • First in – first out • Includes sites
  • 16. blog.eardley.org.uk Recovery • When a site is required to be restored • When a site collection has been deleted Content Databases • When a Service application needs to rebuilt Service Application • When a farm needs to be recoveredCentral Admin
  • 17. blog.eardley.org.uk Shared Services • SharePoint Service Applications – Search – User Profile – Managed Metadata – Secure Store – Business Connectivity
  • 18. blog.eardley.org.uk Multiple Farms, Multiple Data Centres Data Centre A AuxiliaryServices AppProviderHosts Data Centre B Storage Layer Data Layer Data Layer ContentFarm ServicesFarm WebFrontEnds WebFrontEnds Index&Query HA Crawl&Analysis HA DistributedCache HA BatchProcessing HA BI:Excel&SSRS HA BatchProcessing HA OfficeWebApps WorkflowFarm Storage Layer Always On Availability Groups Config–AG Content-AG Auxiliary-AG Storage Layer Data Layer Scheduled Backup & Restore WarmStandby-AuxiliaryServices WarmStandby–ContentFarm WarmStandby–ServicesFarm Project ServerFarm Legacy Application Farm TMG TMG
  • 19. blog.eardley.org.uk Data Level ActiveDirectory Data Centre BData Centre A AGListener AGListener Synchronous Asynchronous WindowsServer FailoverCluster Synchronous WindowsServer FailoverCluster Scheduled Backup & Restore
  • 20. blog.eardley.org.uk How Can I Help? • Set up SQL Instance correctly • Understand the database usage profilesConfiguration • Standards and processes • PowerShellInstallation • Monitor • Plan for growth • Backup Maintenance
  • 21. blog.eardley.org.uk Configuration • Used a dedicated instance • Default Collation - Latin1_General_CI_AS_KS_WS • MAXDOP = 1 • Disable auto-create statistics • Define the maximum memory • Make a note of the Port Number the Instance is listening on • Single filegroup per DB
  • 22. blog.eardley.org.uk Support • The general rules to not invalidate Microsoft Support are: – Do not add anything to the SharePoint databases • Stored Procedures • Triggers • Tables • Indexes – Do not run frequent queries against the SharePoint Databases
  • 23. blog.eardley.org.uk Summary • The number of databases depends on the service applications • The size of the databases will depend on – The number of users – The number of documents and the amount of content – The amount of usage of SharePoint • A database instance for SharePoint has specific requirements • HA and DR strategies are a combination of SharePoint and SQL approaches • SharePoint databases are the same as any other databases
  • 24. blog.eardley.org.uk SharePoint Database References blog.eardley.org.uk/2015/03/sharepoint-databases-knowledge-base/ • A combination of Microsoft documentation – SQL based – SharePoint based • Initial sizes • Growth • Usage • HA/DR • Links to PoSh to create the databaes
  • 26. blog.eardley.org.uk Stick around for SWAG! (Prize drawing at 5.00 p.m) • All our volunteers and organisers do not get paid for running SPS SQLSaturday Cambridge and do it because they believe in the power of community (or are just plain nuts). Please show your gratitude for making this possible by: – Giving them a hug – Shaking their hand – Saying thank you – Coming back next year – Consider getting your company to pay for a precon next year – Speading the word – Getting involved yourself – But most of all, by enjoying the day! • Don’t forget to thank the sponsors for their support • Thank the speakers for donating their time, energy and expenses
  • 27. blog.eardley.org.uk Stick around for SWAG! (Prize drawing at 5.00 p.m) SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!) SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here Microsoft — MCP Voucher Data Idols — Supercar Driving Experience Profisee — Signed MDS Book and £50 Amazon Voucher SQLSentry — Plan Explorer PRO License Pyramid Analytics—Coffee Machine Effektor — Lego Big Ben Rencore — SPCAF Professional License (valued at $2099!) Axioworks — Amazon Fire TV and £75 Amazon Voucher DELL — Beats by Dr Dre Headphones Redgate — DLM Workshop Pluralsight — Annual Plus subscriptions All Your Base Conference — 3 x Conference Tickets VisualSP—Annual training subscription Loads of books and much much more!!!
  • 28. blog.eardley.org.uk Thank-you Alan Eardley – Alan.Eardley@outlook.com blog.eardley.org.uk @al_Eardley http://1drv.ms/1Oj0jj6 Office 365 | SharePoint | Project Server | CRM | Recruitment

Editor's Notes

  • #6: Web Application – a web site that contains at least one site collection Site Collection – a container for sites and functionality configuration Site – a container of lists and libraries and functionality configuration List – a container of list items Library – a container of documents
  • #17: Database recovery is generally to large a unit of recovery as users generally want a document or a site Tools available for more granular recovery
  • #22: Dedicated Instance Because of the security settings required to allow SharePoint to create databases and the default naiming conventions of SharePoint databases a single instance is recommended for each SharePoint Farm More easy to manage when all of the databases within an instance are related to the same SharePoint Farm If other custom databases are required because they are to be accessed from the same farm then they should be added to the same instance, e.g. SSRS or bespoke DBs Easier for HA and DR Collation SharePoint is generally good at handling collations that differ from the recommended collation The SQL generated by the application will explicitly set the collation Issues arise when moving databases where the servers have different collations as comparisons used in TempDB will generate errors MAXDOP As of SharePoint 2013 a MAXDOP setting of 1 is required Another reason to use a dedicated instance if other DB applications require different MAXDOP settings Statistics SharePoint will configure the settings when it is installing and when it is upgrading Maximum memory A simple safety check to prevent the instance claiming too much memory Port Number