SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
SQL Server Configuration
Best Practice
Lars Platzdasch
MCT,MCSE SQL, MCSE SharePoint
Sprecher:
Lars Platzdasch
Twitter
LarsPlatzdasch
Xing
/Lars_Platzdasch
LinkedIn
Larsplatzdasch
Web
www.platzdasch.de
www.3perspektiven.de
Microsoft Certified Solutions Expert: SQL Server Data Platform
Microsoft Certified Solutions Expert: SharePoint
Microsoft Certified IT Professional: SharePoint 2010, Administrator
Microsoft Certified IT Professional: SharePoint 2010, Developer
Microsoft Certified Application Developer: .NET
platzdasch netConsult GmbH & Co. KG | ISV
24/7 Support für SQL / SharePoint
3 Perspektiven GmbH | MBS
20 IT, 18 Jahre SQL Server, 13 Jahre SharePoint
ACHTUNG:
FALLS JEMAND ETWAS
NACH LESEN MÖCHTE
Hat du Kopp wie Sieb, muttu
auf schreiben ! ( oder … )
Slides sind auf http://www.slideshare.net/larspl ,
PASS Webseite , Scripte auf Github
https://github.com/larspl/SQL-PASS-RG-TH
AGENDA: SQL SERVER BEST PRACTICE
Windows Server
SQL Server Configuration
Maintenance
High Availability/Disaster Recovery( HA/DR)
SYSTEM KONFIGURATION: OS
System Settings:
«Best
performance»
Windows Server
performance options
Determine page file size
Use the proper power
plan
Create a SQL alias
Factor 1,5 des
RAMS
Sample: 8192 MB
RAM x 1,5 = 12288
MB page file
«High
performance»
instead of
«Balanced»
Create one for
content and
search on every
SP Server
(cliconfg.exe)
SQL SERVER BEST PRACTICE
Windows Server
SQL Server Configuration
Maintenance
High Availability/Disaster Recovery( HA/DR)
SQL SERVER KONFIGURATION
Optimize Hardware
CPU RAM
DISK
64k Block
Size NTFS
Network
<1ms
Latency
SQL SERVER KONFIGURATION
• SQL Server 2008
• SQL Server 2012
• SQL Server 2014
• SQL Server 2016
• SQL Server 2017
SSMS nicht auf dem
SQL Server installieren
Dedizierte Instance
SQL Service mit einem
Managed Account
Keine besonderen
Rechte
Named Instance
Sharepoint ?
SQL SERVER KONFIGURATION
Collation:
(SQL)_Latin1_General_?
(Case I,Accent S,Kana S,With S, Collation
verwenden
Jede CI Collation ist
supported
Latin1_XXX_CI_XX
aber ist das eine Gute
Idee?
Nach dem Setup keine Änderung möglich!
SQL SERVER KONFIGURATION
Max degree of
parallelism
Maxdop=0/1/..
Cost Threshold of
Parallism (5….x )
SQL SERVER KONFIGURATION
Index Fill
Faktor:0/80% ?
Compress Backup
Intelligente
Datenaufteilung
SQL SERVER KONFIGURATION
Service Account ( SQL Server )
TraceFlag: -T1117 ( Gleichmässiger
AutoGrow auf allen Files ) < (SQL2014)
TraceFlag: -T1118
( Speicherzuordnung wird optimiert
{eight pages from the same extent })
( SQL 2014/2016)
Lock Pages in Memory
Privileg ( local Policy )
TraceFlags :
-T845 (STD zusätzlich)
SQL SERVER KONFIGURATION
Service Account ( SQL Server )
- Instant File Initialization
Recht: (SE_MANAGE_VOLUME_NAME )
Volume Maintenance Task. By default,
only Local Admins have the access to it.
Lock PageOpen Local
Security Policy> Local
Policies > User Rights
Management and go
to the Perform
SQL SERVER KONFIGURATION
Kein Simple Recovery
Mode , Ausnahme
ConfigDB / Ex AOAG
Disable Boost SQL
Server Priority Temp DB auf 10GB
und min 4 Files
verteilen,
Autogrowth 1GBT-Log Backup alle
15min bis max. 24h
Content DBs Pre-
Size
Index Maintennance: FRAG <=30% Reorganisation, > Rebuild
SQL SERVER BASICS
SQL Wartung
SQL WartungSHAREPOINT
SQL SERVER BASICS
Tgl. Full backup
15min LOG
Backup
Index Reorg:
Tipp:
Ola Hallengren
( Backup Solution
https://ola.hallengr
en.com/ )
DR Plan?
Kein
DR
Plan
60%
DR
Plan
40%
SQL SERVER BASICS
Service Level Agreement
HA DR RPO RTO Wartung
SHAREPOINT SQL SERVER BASICS: ALWAYS ON
Disaster Recovery SQL Server Solution
Potential
Data Loss
(RPO)
Potential
Recovery Time
(RTO)
Automatic
Failover
Readable
Secondaries
AlwaysOn Availability Group - synchronous-commit Zero Seconds Yes 0 - 2
AlwaysOn Availability Group - asynchronous-commit Seconds Minutes No 0 - 4
AlwaysOn Failover Cluster Instance NA Seconds
-to-minutes
Yes NA
Database Mirroring - High-safety (sync + witness) Zero Seconds Yes NA
Database Mirroring - High-performance (async) Seconds Minutes No NA
Log Shipping Minutes Minutes
-to-hours
No Not during
a restore
Backup, Copy, Restore Hours Hours
-to-days
No Not during
a restore
Lars Platzdasch | SharePoint and SQL Server
VIELEN DANK FÜR EURE ZEIT
Q & A
Resources
• Backup Solution https://ola.hallengren.com/
• SQL Server: Minimize Disk I/O
https://technet.microsoft.com/en-us/magazine/jj643251.aspx
• https://technet.microsoft.com/de-
de/library/ms181007(v=sql.105).aspx (max degree of
parallelism (Option))
• https://technet.microsoft.com/en-
gb/library/ms188603(v=sql.105).aspx (cost threshold for
parallelism Option)

Weitere ähnliche Inhalte

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Lars platzdasch SQL Server Best Practice - SQL PASS RG Thüringen 25.01.2018

  • 1. SQL Server Configuration Best Practice Lars Platzdasch MCT,MCSE SQL, MCSE SharePoint
  • 2. Sprecher: Lars Platzdasch Twitter LarsPlatzdasch Xing /Lars_Platzdasch LinkedIn Larsplatzdasch Web www.platzdasch.de www.3perspektiven.de Microsoft Certified Solutions Expert: SQL Server Data Platform Microsoft Certified Solutions Expert: SharePoint Microsoft Certified IT Professional: SharePoint 2010, Administrator Microsoft Certified IT Professional: SharePoint 2010, Developer Microsoft Certified Application Developer: .NET platzdasch netConsult GmbH & Co. KG | ISV 24/7 Support für SQL / SharePoint 3 Perspektiven GmbH | MBS 20 IT, 18 Jahre SQL Server, 13 Jahre SharePoint
  • 3. ACHTUNG: FALLS JEMAND ETWAS NACH LESEN MÖCHTE Hat du Kopp wie Sieb, muttu auf schreiben ! ( oder … ) Slides sind auf http://www.slideshare.net/larspl , PASS Webseite , Scripte auf Github https://github.com/larspl/SQL-PASS-RG-TH
  • 4. AGENDA: SQL SERVER BEST PRACTICE Windows Server SQL Server Configuration Maintenance High Availability/Disaster Recovery( HA/DR)
  • 5. SYSTEM KONFIGURATION: OS System Settings: «Best performance» Windows Server performance options Determine page file size Use the proper power plan Create a SQL alias Factor 1,5 des RAMS Sample: 8192 MB RAM x 1,5 = 12288 MB page file «High performance» instead of «Balanced» Create one for content and search on every SP Server (cliconfg.exe)
  • 6. SQL SERVER BEST PRACTICE Windows Server SQL Server Configuration Maintenance High Availability/Disaster Recovery( HA/DR)
  • 7. SQL SERVER KONFIGURATION Optimize Hardware CPU RAM DISK 64k Block Size NTFS Network <1ms Latency
  • 8. SQL SERVER KONFIGURATION • SQL Server 2008 • SQL Server 2012 • SQL Server 2014 • SQL Server 2016 • SQL Server 2017 SSMS nicht auf dem SQL Server installieren Dedizierte Instance SQL Service mit einem Managed Account Keine besonderen Rechte Named Instance Sharepoint ?
  • 9. SQL SERVER KONFIGURATION Collation: (SQL)_Latin1_General_? (Case I,Accent S,Kana S,With S, Collation verwenden Jede CI Collation ist supported Latin1_XXX_CI_XX aber ist das eine Gute Idee? Nach dem Setup keine Änderung möglich!
  • 10. SQL SERVER KONFIGURATION Max degree of parallelism Maxdop=0/1/.. Cost Threshold of Parallism (5….x )
  • 11. SQL SERVER KONFIGURATION Index Fill Faktor:0/80% ? Compress Backup Intelligente Datenaufteilung
  • 12. SQL SERVER KONFIGURATION Service Account ( SQL Server ) TraceFlag: -T1117 ( Gleichmässiger AutoGrow auf allen Files ) < (SQL2014) TraceFlag: -T1118 ( Speicherzuordnung wird optimiert {eight pages from the same extent }) ( SQL 2014/2016) Lock Pages in Memory Privileg ( local Policy ) TraceFlags : -T845 (STD zusätzlich)
  • 13. SQL SERVER KONFIGURATION Service Account ( SQL Server ) - Instant File Initialization Recht: (SE_MANAGE_VOLUME_NAME ) Volume Maintenance Task. By default, only Local Admins have the access to it. Lock PageOpen Local Security Policy> Local Policies > User Rights Management and go to the Perform
  • 14. SQL SERVER KONFIGURATION Kein Simple Recovery Mode , Ausnahme ConfigDB / Ex AOAG Disable Boost SQL Server Priority Temp DB auf 10GB und min 4 Files verteilen, Autogrowth 1GBT-Log Backup alle 15min bis max. 24h Content DBs Pre- Size Index Maintennance: FRAG <=30% Reorganisation, > Rebuild
  • 16. SQL WartungSHAREPOINT SQL SERVER BASICS Tgl. Full backup 15min LOG Backup Index Reorg: Tipp: Ola Hallengren ( Backup Solution https://ola.hallengr en.com/ ) DR Plan? Kein DR Plan 60% DR Plan 40%
  • 17. SQL SERVER BASICS Service Level Agreement HA DR RPO RTO Wartung
  • 18. SHAREPOINT SQL SERVER BASICS: ALWAYS ON Disaster Recovery SQL Server Solution Potential Data Loss (RPO) Potential Recovery Time (RTO) Automatic Failover Readable Secondaries AlwaysOn Availability Group - synchronous-commit Zero Seconds Yes 0 - 2 AlwaysOn Availability Group - asynchronous-commit Seconds Minutes No 0 - 4 AlwaysOn Failover Cluster Instance NA Seconds -to-minutes Yes NA Database Mirroring - High-safety (sync + witness) Zero Seconds Yes NA Database Mirroring - High-performance (async) Seconds Minutes No NA Log Shipping Minutes Minutes -to-hours No Not during a restore Backup, Copy, Restore Hours Hours -to-days No Not during a restore
  • 19.
  • 20. Lars Platzdasch | SharePoint and SQL Server VIELEN DANK FÜR EURE ZEIT Q & A
  • 21.
  • 22. Resources • Backup Solution https://ola.hallengren.com/ • SQL Server: Minimize Disk I/O https://technet.microsoft.com/en-us/magazine/jj643251.aspx • https://technet.microsoft.com/de- de/library/ms181007(v=sql.105).aspx (max degree of parallelism (Option)) • https://technet.microsoft.com/en- gb/library/ms188603(v=sql.105).aspx (cost threshold for parallelism Option)