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

Was ist angesagt?

Best Practices in der Kollaboration
Best Practices in der KollaborationBest Practices in der Kollaboration
Best Practices in der Kollaboration
Samuel Zürcher
 

Was ist angesagt? (20)

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

Andere mochten auch

Sp2010 high availlability_sql
Sp2010 high availlability_sqlSp2010 high availlability_sql
Sp2010 high availlability_sql
Samuel Zürcher
 
Presentacion Master LGP
Presentacion Master LGPPresentacion Master LGP
Presentacion Master LGP
zeuszeus31
 

Andere mochten auch (20)

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

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

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

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