SlideShare ist ein Scribd-Unternehmen logo
Optimizing SQL Server 2012
Deep Dive for SharePoint 2013
Lars Platzdasch
Speaker
Lars Platzdaschplatzdasch netConsult GmbH & Co. KG | ISV
24/7 Support für SQL / SharePoint
3 Perspektiven GmbH | MBS
MS Silver ISV
MS Silver Collaboration & Content
MCT, MCSE 2012 Data/ MCITP SQL2008/2005
MCSA SharePoint 2013/ MCITP 2010/2007 / Admin und Developer
MCAD .net
http://www.xing.com/profile/Lars_Platzdasch
http://de.linkedin.com/in/larsplatzdasch/
www.platzdasch.de
www.3perspektiven.de
Themen
• SharePoint Topologie
• SQL Server Installation und Konfiguration
• Bereitstellen und Warten von Datenbanken einer SharePoint
Farm
• Demo: SQL Server Konfiguration für eine optimale SharePoint
Performance
• SQL Server Instance Konfiguration
• SQL Server Database Konfiguration
3 Rollen
2 APP Rollen
Single
Topologie 4+ Rollen
SMALL
MID
MAX
Welche Faktoren beeinflussen die Performance?
6
Server
Memory, CPU und Disk
SQL Performance
IOPS auf SAN
Custom Code
Network
Network Infrastructure
Proxy Server
WAN Latency
Compression
Client
Browser Render Time
Page Optimization
Caching
Hardware, Driver, OS and
Browser Upgrades
Top Performance Bottlenecks
SQL Server Installation und Konfiguration
• FarmAdmin & DBA: Zwei getrennte Aufgabenbereiche!
• SQL Server DBA
• Erzeugt und konfiguriert Datenbanken, überwacht diese
• Entscheidet über Storagearchitektur, Dateilayout, Datenbankkonfiguration
• Zwei wichtige Werkzeuge: SSMS, PerfMon
• SharePoint Farm Admin
• Verbindet Farm und Site Collections mit vorkonfigurierten Datenbanken,
• betreibt SharePoint darin
• Entscheidet über Farmarchitektur, Services, Site Collections
• Zwei wichtige Werkzeuge: CentralAdmin, PowerShell
• Backup und Restore als gemeinsam koordinierte Aufgabe
SQL DBA
• Best Practice
• SQL Setup , SQL Server Konfiguration -> DBA ONLY !!!
• Für das Konfigurieren von SQL Server und das Erstellen von
SharePointContent-DB nicht die SharePoint-Standarddialoge
verwenden
• SQL Server manuell durch den SQL Server-DBA konfigurieren lassen
• SharePoint-Content-DB manuell oder automatisiert durch den SQL
Server-DBA erstellen lassen
• Erst, nachdem eine leere Content-DB bereitgestellt wurde, diese durch
den Farm Admin mit einer SharePoint-Farm verbinden lassen!
SQL DBA: SQL Server Konfiguration
• Server Layout
SQL DBA: SQL Server Workload Planung
SQL DBA: SQL Server Konfiguration Disk
• Disk Layout (Raid, NTFS Allocation Size 64k, WorkLoad)
• Für eine schnelle und Optimale Konfiguration: min 6 Platten
• 1. TempDB
• 2. TempDB Logs
• 3. SharePoint Databases (7,8,9,x )
• 4. SharePoint Databases Logs (7,8,9,x )
• 5. OS
• 6. SQL binaries und andere Zusätzliche Apps.
SQL DBA: SQL Server Konfiguration Disk
• Server Layout
SQL DBA: SQL Server Konfiguration
• Collation
• Bei SQL Server Installation Latin1_General_CI_AS_KS_WS (CaseI,AccentS,KanaS,WithS,
Collation verwenden
• MAX SERVER MEMORY festlegen (sp_configure)
• Faustregel: OS Memory - (2-3 GB)/64bit/4C
• Bsp: 16GB FR: 13GB / Richtig: 11.571GB
• http://thomaslarock.com/2012/08/youre-doing-it-wrong-5-factors-that-affect-database-
performance/
• max degree of parallelism auf 1 setzen (sp_configure)
• Für individuelle Tasks verändern (z.B. Index Rebuild mit MAXDOP 0)
• Service Account ( SQL Server )
• Lock Pages in Memory Privileg zuweisen: ( SQL Std: -T845 )
• Verhindert OS Paging für von SQL Server belegten Arbeitsspeicher
• TraceFlag: -T1117 ( Gleichmässiger AutoGrow auf allen Files )
SQL Server Konfiguration
• Instant File Initialization
• Recht: (SE_MANAGE_VOLUME_NAME )
• Open Local Security Policy> Local Policies > User Rights Management and go to the Perform
• Volume Maintenance Task. By default, only Local Admins have the access to it.
Kimberly L., author at www.sqlskills.com:
Hardware: Dell Precision 670 Dual Proc (x64) with Dual Core, 4 GB Memory, RAID1+0 array w/4-142 GB,15000rpm disks
Performance Test with Zero Initialization
CREATE DATABASE with 20 GB Data file = 14:02 minutes
ALTER DATABASE BY 10 GB = 7:01 minutes
RESTORE 30 GB DATABASE (EMPTY Backup) = 21:07 minutes
RESTORE 30 GB DATABASE (11GB Backup) = 38:28 minutes
Performance Test with Instant Initialization
CREATE DATABASE with 20 GB Data file = 1.3 seconds
ALTER DATABASE BY 10 GB = .4 seconds
RESTORE 30 GB DATABASE (EMPTY Backup) = 5 seconds
RESTORE 30 GB DATABASE (11GB Backup) = 19:42 minutes
SQL Server Konfiguration DBs
• Fill Factor 70% bis 80%
• Kein Simple Recovery Mode
• T-Log Backup alle 15min bis max. 24h
• Disable Boost SQL Server Priority
• Temp DB auf 10GB und 4 Files verteilen, Autogrowth 1GB
• Content DBs Pre-Size, Split ( min 4 Files )
• Backupcompression einschalten
• Index Maintennance <=30% Reorganisation, sonst Rebuild
• Update Statistics täglich, DBCC Checkdb vor Fullbackup
Farm Sizing : Farm Admin
• WebApplication sollte mehr als eine Content DB haben
• ( ideal , IT, HR, FI etc. ist getrennt ) -> an den DR Fall denken!
• Quotas -> 200 -250 SCs max. je DB
Tools für die SharePoint Diag
• PerfMon
• Fiddler2
• http://fiddler2.com/
• Add Ons für Fiddler
• http://fiddler2.com/add-ons
• WireShark
• http://www.wireshark.org/
• Sysinternals Process Monitor
• http://technet.microsoft.com/de-ch/sysinternals/bb896645.aspx
• Microsoft Message Analyzer
• http://www.microsoft.com/en-us/download/details.aspx?id=40308
18
Einstellen der Quotas der Content Datenbanken
WebApplication
200GB 200GB 200GB 200GB
SiteCollections SiteCollections SiteCollections SiteCollections
Project
Sites
Department
Sites
HR
Sites
Marketing
Sites
750mb X 250 = 187,500mb / 1024 = 183gb
250 250 250 250
DEMO
SQL Server CONFIG
SQL DB CONFIG
Default Values / „Features“
SQL Server Konfiguration DBs
• SharePoint 2013(and 2010) kopiert nur die Initiale Größe aber
nicht die AutoGrow Einstellungen.
• Script zur Prüfung neu erstellter SP C DBs’
• http://sharepointszu.com/2012/02/17/sql-script-fr-die-
erstellung-von-best-practice-sharepoint-datenbanken/
SQL Server Wartung
• Tgl. Full Backup
• 15Min T-Log backup
• Kein Simple Recovery Mode für Content DBs
• ( Außer SLA lässt das wirklich zu )
• Index Wartung (< ReOrg. >= 30% ReBuild )
• Update Statistics ( def. TimerJob im SP Läuft einmal Nachts)
Tool:
• OTB Maintenance Plan Wizzard
• Empfehlung: Ole Hallgreen ( Backup Solution )
Disaster recovery
Kein DR Plan
60%
DR Plan 40%
SharePoint 2013 Service Accounts ( High Sec.)
Name Desc Local Rights Domain Rights
SQL_Admin SQL Admin on the SQL Server.
Used to Install the SQL
Local Administrator on SQL
Server
Domain User
SQL_Agent SQL Agent Account Service None Domain User
SQL_Engine Service Account for Database
Engine
None Domain User
SharePoint
SP_Farm Configure and Manage Server
Farm / Act As App Pool Identity
in Central Admin App, Work
Flow Timer
SecurityAdmin and
DB_Creator per SQL Instance
Domain User
SP_Admin Server Farm Account for
Setup
SharePoint Products
Configuration Wizzard
Local Admin an all Sharepoint
Servers
SecurityAdmin and
DB_Creator per SQL Instance
Domain Account
Resources
• SQL Server: Minimize Disk I/O
• https://technet.microsoft.com/en-us/magazine/jj643251.aspx
• Best practices for SQL Server in a SharePoint Server farm
• https://technet.microsoft.com/en-us/library/hh292622(v=office.15).aspx
• SQL Script zur Erstellung von neuen Content DBs
• http://sharepointszu.com/2012/02/17/sql-script-fr-die-erstellung-von-
best-practice-sharepoint-datenbanken/
• Vlad Catrinescu ( MVP )
• www.absolute-sharepoint.com
Vielen Dank
Lars Platzdaschplatzdasch netConsult GmbH & Co. KG | ISV
24/7 Support für SQL / SharePoint
3 Perspektiven GmbH | MBS
MS Silver ISV
MS Silver Collaboration & Content
MCT, MCSE 2012 Data/ MCITP SQL2008/2005
MCSA SharePoint 2013/ MCITP 2010/2007 / Admin und Developer
MCAD .net
http://www.xing.com/profile/Lars_Platzdasch
http://de.linkedin.com/in/larsplatzdasch/
www.platzdasch.de
www.3perspektiven.de
Optimizing SQL Server 2012 Deep dive for SharePoint 2013 Lars Platzdasch SQL Konferenz 2015

Weitere ähnliche Inhalte

PDF
SharePoint 2016 das fliegen lernen - SQL Server Performance Optimierung
PDF
SQL Server 2016 and SharePoint 2016 - Lars PLatzdasch - SQL Konferenz 2016
PPTX
Best Practices SharePoint and SQL Installation
PDF
Sql best practices for SharePoint 2010
PPTX
The new power of search
PPTX
Share train 27 juni 2011
PPTX
Webinar - ABAP CDS Views
PPTX
Datenbanken - Eine Übersicht (WPMeetUP München)
SharePoint 2016 das fliegen lernen - SQL Server Performance Optimierung
SQL Server 2016 and SharePoint 2016 - Lars PLatzdasch - SQL Konferenz 2016
Best Practices SharePoint and SQL Installation
Sql best practices for SharePoint 2010
The new power of search
Share train 27 juni 2011
Webinar - ABAP CDS Views
Datenbanken - Eine Übersicht (WPMeetUP München)

Was ist angesagt? (20)

PDF
Überblick Oracle Datenbank 12c
PDF
Überblick Oracle Datenbank Hochverfügbarkeit
ODP
Frontend Performance
PDF
Überblick zu Oracle Database 12c Release 2
PPTX
Best Practices in der Kollaboration
PDF
Oracle Technology Monthly Oktober 2017
PDF
20190604_DOAGDatabase2019_OracleNoSQLDB_for_DBAs
PPTX
Pimp My SharePoint - Performanceprobleme vorbeugen, analysieren und beheben
PPTX
SharePoint Community Mittelland @ isolutions: SharePoint in der Cloud
PPTX
SharePoint Community Mittelland - GARAIO : Enterprise Search
PDF
Oracle hadoop doag-big-data_09_2014_gpi
PPTX
Azure SQL Database vs. Azure SQL Data Warehouse
PDF
20160310_ModernApplicationDevelopment_NoSQL_KPatenge
PDF
Oracle-DB: Active Session History: into the deep
PDF
Oracle-DB: Beeinflussen der Ausführungspläne von SQL-Statements ohne Code-Anp...
PDF
Performance-Analyse von Oracle-Datenbanken mit Panorama
PPTX
Amazon Redshift
PDF
QUIBIQ Webcast: SAP on Azure - Erfolgsfaktor Integration für SAP-/MS-Partner
PDF
SharePoint 2013 – Installation und Upgrade
PDF
Oracle-DB: Systematische Rasterfahndung nach Performance-Antipattern
Überblick Oracle Datenbank 12c
Überblick Oracle Datenbank Hochverfügbarkeit
Frontend Performance
Überblick zu Oracle Database 12c Release 2
Best Practices in der Kollaboration
Oracle Technology Monthly Oktober 2017
20190604_DOAGDatabase2019_OracleNoSQLDB_for_DBAs
Pimp My SharePoint - Performanceprobleme vorbeugen, analysieren und beheben
SharePoint Community Mittelland @ isolutions: SharePoint in der Cloud
SharePoint Community Mittelland - GARAIO : Enterprise Search
Oracle hadoop doag-big-data_09_2014_gpi
Azure SQL Database vs. Azure SQL Data Warehouse
20160310_ModernApplicationDevelopment_NoSQL_KPatenge
Oracle-DB: Active Session History: into the deep
Oracle-DB: Beeinflussen der Ausführungspläne von SQL-Statements ohne Code-Anp...
Performance-Analyse von Oracle-Datenbanken mit Panorama
Amazon Redshift
QUIBIQ Webcast: SAP on Azure - Erfolgsfaktor Integration für SAP-/MS-Partner
SharePoint 2013 – Installation und Upgrade
Oracle-DB: Systematische Rasterfahndung nach Performance-Antipattern
Anzeige

Andere mochten auch (20)

PDF
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
PPTX
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
PPTX
What SQL DBAs need to know about SharePoint-Indianapolis 2013
PPTX
What SQL DBA's need to know about SharePoint-St. Louis 2013
PPTX
Sp2010 high availlability_sql
PDF
2016 01-30 SPS Dubai - Office 365 Groups: all you need to know about it and ...
PPTX
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
PPTX
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
PDF
SharePoint Saturday Netherlands 2016 - SharePoint and Office 365 performances...
PDF
Buenas prácticas en infraestructura en SharePoint 2013
PDF
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
PPTX
A Deep Dive into SharePoint 2016 architecture and deployment
PPTX
SharePoint Performance: Best Practices from the Field
PPTX
Diz-me o que tens, dir-te-ei de onde vem. A proveniência nos museus portugueses
PDF
JP│KOM News-Service 1/14: Bewegtbild in der Unternehmenskommunikation
PDF
Emotion Spa
PPTX
PROPACOM Ouest - Etat d'avancement des activités de l'antenne de Séguéla
PPTX
Megatrend Gruppenwerte - 2009 Trendquest
PPT
Presentacion Master LGP
PDF
Lancement d'un appel d’offres en vue de la sélection des opérateurs privés in...
SQL Server Alwayson for SharePoint HA/DR Step by Step Guide
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013
Sp2010 high availlability_sql
2016 01-30 SPS Dubai - Office 365 Groups: all you need to know about it and ...
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
SharePoint Saturday Netherlands 2016 - SharePoint and Office 365 performances...
Buenas prácticas en infraestructura en SharePoint 2013
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
A Deep Dive into SharePoint 2016 architecture and deployment
SharePoint Performance: Best Practices from the Field
Diz-me o que tens, dir-te-ei de onde vem. A proveniência nos museus portugueses
JP│KOM News-Service 1/14: Bewegtbild in der Unternehmenskommunikation
Emotion Spa
PROPACOM Ouest - Etat d'avancement des activités de l'antenne de Séguéla
Megatrend Gruppenwerte - 2009 Trendquest
Presentacion Master LGP
Lancement d'un appel d’offres en vue de la sélection des opérateurs privés in...
Anzeige

Ähnlich wie Optimizing SQL Server 2012 Deep dive for SharePoint 2013 Lars Platzdasch SQL Konferenz 2015 (20)

PDF
Uwe Ricken – IT-Tage 2015 – Workshop: MS SQL Server Optimierung
PPTX
ShareConf 2014: 10 Gründe warum der SharePoint langsam ist
PPS
Sql Server Grundlagen für Sharepoint Administratoren
PPS
Sql Server GrundlagenfüR Share Point Admins
PDF
MySQL Performance Tuning für Entwickler
PDF
Überblick: 18c und Autonomous Data Warehouse Cloud (ADWC)
PDF
Tipps und Skripts aus dem Leben eines Connections Admins
PDF
bccon-2014 adm01 tipps-und-skripts-aus-dem-leben-eines-ibm-connections-admins
PDF
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
PDF
Icsug conf 14_tipps-und-skripts-fuer-ibm-connections-administratoren
PDF
Komprimierung in der Oracle Datenbank (Stand 11gR2, 12c)
PPTX
Datenbank-Hausputz für Einsteiger
PDF
Meet Magento - High performance magento
PDF
Domino Statistiken verstehen und nutzen (Teil 1) - 41. DNUG Konferenz
PPT
AdminCamp 2011 Performance
PDF
Oracle Database 12c Release 2
PDF
Oracle Datenbank-Architektur
PDF
Oracle-DB: Panorama-Sampler - Eigenes Workload Repository für Panorama
PDF
SQL Server 2012 070-462 prüfung deutsch
PDF
Roadshow Oracle Database 12c: News & Features
Uwe Ricken – IT-Tage 2015 – Workshop: MS SQL Server Optimierung
ShareConf 2014: 10 Gründe warum der SharePoint langsam ist
Sql Server Grundlagen für Sharepoint Administratoren
Sql Server GrundlagenfüR Share Point Admins
MySQL Performance Tuning für Entwickler
Überblick: 18c und Autonomous Data Warehouse Cloud (ADWC)
Tipps und Skripts aus dem Leben eines Connections Admins
bccon-2014 adm01 tipps-und-skripts-aus-dem-leben-eines-ibm-connections-admins
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
Icsug conf 14_tipps-und-skripts-fuer-ibm-connections-administratoren
Komprimierung in der Oracle Datenbank (Stand 11gR2, 12c)
Datenbank-Hausputz für Einsteiger
Meet Magento - High performance magento
Domino Statistiken verstehen und nutzen (Teil 1) - 41. DNUG Konferenz
AdminCamp 2011 Performance
Oracle Database 12c Release 2
Oracle Datenbank-Architektur
Oracle-DB: Panorama-Sampler - Eigenes Workload Repository für Panorama
SQL Server 2012 070-462 prüfung deutsch
Roadshow Oracle Database 12c: News & Features

Optimizing SQL Server 2012 Deep dive for SharePoint 2013 Lars Platzdasch SQL Konferenz 2015

  • 1. Optimizing SQL Server 2012 Deep Dive for SharePoint 2013 Lars Platzdasch
  • 2. Speaker Lars Platzdaschplatzdasch netConsult GmbH & Co. KG | ISV 24/7 Support für SQL / SharePoint 3 Perspektiven GmbH | MBS MS Silver ISV MS Silver Collaboration & Content MCT, MCSE 2012 Data/ MCITP SQL2008/2005 MCSA SharePoint 2013/ MCITP 2010/2007 / Admin und Developer MCAD .net http://www.xing.com/profile/Lars_Platzdasch http://de.linkedin.com/in/larsplatzdasch/ www.platzdasch.de www.3perspektiven.de
  • 3. Themen • SharePoint Topologie • SQL Server Installation und Konfiguration • Bereitstellen und Warten von Datenbanken einer SharePoint Farm • Demo: SQL Server Konfiguration für eine optimale SharePoint Performance • SQL Server Instance Konfiguration • SQL Server Database Konfiguration
  • 4. 3 Rollen 2 APP Rollen Single Topologie 4+ Rollen SMALL MID MAX
  • 5. Welche Faktoren beeinflussen die Performance? 6 Server Memory, CPU und Disk SQL Performance IOPS auf SAN Custom Code Network Network Infrastructure Proxy Server WAN Latency Compression Client Browser Render Time Page Optimization Caching Hardware, Driver, OS and Browser Upgrades
  • 7. SQL Server Installation und Konfiguration • FarmAdmin & DBA: Zwei getrennte Aufgabenbereiche! • SQL Server DBA • Erzeugt und konfiguriert Datenbanken, überwacht diese • Entscheidet über Storagearchitektur, Dateilayout, Datenbankkonfiguration • Zwei wichtige Werkzeuge: SSMS, PerfMon • SharePoint Farm Admin • Verbindet Farm und Site Collections mit vorkonfigurierten Datenbanken, • betreibt SharePoint darin • Entscheidet über Farmarchitektur, Services, Site Collections • Zwei wichtige Werkzeuge: CentralAdmin, PowerShell • Backup und Restore als gemeinsam koordinierte Aufgabe
  • 8. SQL DBA • Best Practice • SQL Setup , SQL Server Konfiguration -> DBA ONLY !!! • Für das Konfigurieren von SQL Server und das Erstellen von SharePointContent-DB nicht die SharePoint-Standarddialoge verwenden • SQL Server manuell durch den SQL Server-DBA konfigurieren lassen • SharePoint-Content-DB manuell oder automatisiert durch den SQL Server-DBA erstellen lassen • Erst, nachdem eine leere Content-DB bereitgestellt wurde, diese durch den Farm Admin mit einer SharePoint-Farm verbinden lassen!
  • 9. SQL DBA: SQL Server Konfiguration • Server Layout
  • 10. SQL DBA: SQL Server Workload Planung
  • 11. SQL DBA: SQL Server Konfiguration Disk • Disk Layout (Raid, NTFS Allocation Size 64k, WorkLoad) • Für eine schnelle und Optimale Konfiguration: min 6 Platten • 1. TempDB • 2. TempDB Logs • 3. SharePoint Databases (7,8,9,x ) • 4. SharePoint Databases Logs (7,8,9,x ) • 5. OS • 6. SQL binaries und andere Zusätzliche Apps.
  • 12. SQL DBA: SQL Server Konfiguration Disk • Server Layout
  • 13. SQL DBA: SQL Server Konfiguration • Collation • Bei SQL Server Installation Latin1_General_CI_AS_KS_WS (CaseI,AccentS,KanaS,WithS, Collation verwenden • MAX SERVER MEMORY festlegen (sp_configure) • Faustregel: OS Memory - (2-3 GB)/64bit/4C • Bsp: 16GB FR: 13GB / Richtig: 11.571GB • http://thomaslarock.com/2012/08/youre-doing-it-wrong-5-factors-that-affect-database- performance/ • max degree of parallelism auf 1 setzen (sp_configure) • Für individuelle Tasks verändern (z.B. Index Rebuild mit MAXDOP 0) • Service Account ( SQL Server ) • Lock Pages in Memory Privileg zuweisen: ( SQL Std: -T845 ) • Verhindert OS Paging für von SQL Server belegten Arbeitsspeicher • TraceFlag: -T1117 ( Gleichmässiger AutoGrow auf allen Files )
  • 14. SQL Server Konfiguration • Instant File Initialization • Recht: (SE_MANAGE_VOLUME_NAME ) • Open Local Security Policy> Local Policies > User Rights Management and go to the Perform • Volume Maintenance Task. By default, only Local Admins have the access to it. Kimberly L., author at www.sqlskills.com: Hardware: Dell Precision 670 Dual Proc (x64) with Dual Core, 4 GB Memory, RAID1+0 array w/4-142 GB,15000rpm disks Performance Test with Zero Initialization CREATE DATABASE with 20 GB Data file = 14:02 minutes ALTER DATABASE BY 10 GB = 7:01 minutes RESTORE 30 GB DATABASE (EMPTY Backup) = 21:07 minutes RESTORE 30 GB DATABASE (11GB Backup) = 38:28 minutes Performance Test with Instant Initialization CREATE DATABASE with 20 GB Data file = 1.3 seconds ALTER DATABASE BY 10 GB = .4 seconds RESTORE 30 GB DATABASE (EMPTY Backup) = 5 seconds RESTORE 30 GB DATABASE (11GB Backup) = 19:42 minutes
  • 15. SQL Server Konfiguration DBs • Fill Factor 70% bis 80% • Kein Simple Recovery Mode • T-Log Backup alle 15min bis max. 24h • Disable Boost SQL Server Priority • Temp DB auf 10GB und 4 Files verteilen, Autogrowth 1GB • Content DBs Pre-Size, Split ( min 4 Files ) • Backupcompression einschalten • Index Maintennance <=30% Reorganisation, sonst Rebuild • Update Statistics täglich, DBCC Checkdb vor Fullbackup
  • 16. Farm Sizing : Farm Admin • WebApplication sollte mehr als eine Content DB haben • ( ideal , IT, HR, FI etc. ist getrennt ) -> an den DR Fall denken! • Quotas -> 200 -250 SCs max. je DB
  • 17. Tools für die SharePoint Diag • PerfMon • Fiddler2 • http://fiddler2.com/ • Add Ons für Fiddler • http://fiddler2.com/add-ons • WireShark • http://www.wireshark.org/ • Sysinternals Process Monitor • http://technet.microsoft.com/de-ch/sysinternals/bb896645.aspx • Microsoft Message Analyzer • http://www.microsoft.com/en-us/download/details.aspx?id=40308 18
  • 18. Einstellen der Quotas der Content Datenbanken WebApplication 200GB 200GB 200GB 200GB SiteCollections SiteCollections SiteCollections SiteCollections Project Sites Department Sites HR Sites Marketing Sites 750mb X 250 = 187,500mb / 1024 = 183gb 250 250 250 250
  • 19. DEMO SQL Server CONFIG SQL DB CONFIG Default Values / „Features“
  • 20. SQL Server Konfiguration DBs • SharePoint 2013(and 2010) kopiert nur die Initiale Größe aber nicht die AutoGrow Einstellungen. • Script zur Prüfung neu erstellter SP C DBs’ • http://sharepointszu.com/2012/02/17/sql-script-fr-die- erstellung-von-best-practice-sharepoint-datenbanken/
  • 21. SQL Server Wartung • Tgl. Full Backup • 15Min T-Log backup • Kein Simple Recovery Mode für Content DBs • ( Außer SLA lässt das wirklich zu ) • Index Wartung (< ReOrg. >= 30% ReBuild ) • Update Statistics ( def. TimerJob im SP Läuft einmal Nachts) Tool: • OTB Maintenance Plan Wizzard • Empfehlung: Ole Hallgreen ( Backup Solution )
  • 22. Disaster recovery Kein DR Plan 60% DR Plan 40%
  • 23. SharePoint 2013 Service Accounts ( High Sec.) Name Desc Local Rights Domain Rights SQL_Admin SQL Admin on the SQL Server. Used to Install the SQL Local Administrator on SQL Server Domain User SQL_Agent SQL Agent Account Service None Domain User SQL_Engine Service Account for Database Engine None Domain User SharePoint SP_Farm Configure and Manage Server Farm / Act As App Pool Identity in Central Admin App, Work Flow Timer SecurityAdmin and DB_Creator per SQL Instance Domain User SP_Admin Server Farm Account for Setup SharePoint Products Configuration Wizzard Local Admin an all Sharepoint Servers SecurityAdmin and DB_Creator per SQL Instance Domain Account
  • 24. Resources • SQL Server: Minimize Disk I/O • https://technet.microsoft.com/en-us/magazine/jj643251.aspx • Best practices for SQL Server in a SharePoint Server farm • https://technet.microsoft.com/en-us/library/hh292622(v=office.15).aspx • SQL Script zur Erstellung von neuen Content DBs • http://sharepointszu.com/2012/02/17/sql-script-fr-die-erstellung-von- best-practice-sharepoint-datenbanken/ • Vlad Catrinescu ( MVP ) • www.absolute-sharepoint.com
  • 25. Vielen Dank Lars Platzdaschplatzdasch netConsult GmbH & Co. KG | ISV 24/7 Support für SQL / SharePoint 3 Perspektiven GmbH | MBS MS Silver ISV MS Silver Collaboration & Content MCT, MCSE 2012 Data/ MCITP SQL2008/2005 MCSA SharePoint 2013/ MCITP 2010/2007 / Admin und Developer MCAD .net http://www.xing.com/profile/Lars_Platzdasch http://de.linkedin.com/in/larsplatzdasch/ www.platzdasch.de www.3perspektiven.de