Boring is stable, stable is good - best practices in practice

Slides:



Advertisements
Similar presentations
This slide deck is formatted to 1280 X 800, but some locations will only support 1024 X 768. To modify… Set resolution of slide show while creating it.
Advertisements

Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
Backup, Integrity Check and Index and Statistics Maintenance
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Backup, Integrity Check and Index and Statistics Maintenance
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
SAP on windows server 2012 hyper-v documentation
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Clustering SQL Server Tom Pullen Senior DBA, RM Education
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Making DBCC CHECKDB Go Faster Argenis Fernandez Senior Database Engineer
How to kill SQL Server Performance Håkan Winther.
Best Practices for a Healthy SQL Server Presenter: Jeff Pfershy.
Kentico CMS Performance Optimization Implementation at Newsmax - Ayush Chaturvedi.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
SQL Server Management Strategies
Top 10 DBA mistakes that affect the SQL Server performance
Get the Most out of SQL Server Standard Edition
Standard/Express edition
Deploying SQL Server With Microsoft Azure Virtual Machine
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
Refresh a 1TB+ database in under 10 seconds…
SQL Server Performance Tuning
Lead SQL BankofAmerica Blog: SQLHarry.com
Hitting the SQL Server “Go Faster” Button
SQL Server Internals Overview
Database Corruption Advanced Recovery Techniques|
Common SQL Server Mistakes and How to Avoid Them
Peter Shore SQL Saturday Pittsburgh 2017
Peter Shore SQL Saturday Indianapolis 2016
Introduction of Week 3 Assignment Discussion
The Top 5 SQL Server Mistakes
Tips for SQL Server Performance and Resiliency
Universal SQL Installations Framework (Script review and Demo)
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
Database Corruption Advanced Recovery Techniques
Configuring SQL Server
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
Use PowerShell & dbatools to Manage your SQL Server Environment
dbatools - PowerShell and SQL Server Working Together
Peter Shore SQL Saturday Cleveland 2016
SQL Server performance tuning on Azure IaaS
SQL Server performance tuning on Azure IaaS
Work Smarter Not Harder
Configuring SQL Server
PowerShell & PowerBi Reducing DBAs Context Switching
You Inherited a Database Now What?
Summit Nashville /3/2019 1:48 AM
Use PowerShell & dbatools to Manage your SQL Server Environment
SQL Server Defaults SUCK!!
Our awesome sponsors! Please visit the sponsor area in the break and interact with them. They are the reason we can hold this conference free of charge!
Database administration
Sql Saturday Philadelphia
SQL Server Defaults SUCK!!
Vendor Software Lessons From Consulting Vendor Software.
SQL Server Defaults SUCK!!
Presentation transcript:

Boring is stable, stable is good - best practices in practice Alexander Arvidsson (@arcticdba) Boring is stable, stable is good - best practices in practice

Image copyright: https://www.autoevolution.com @arcticdba

Principal Solutions Architect at Atea Presenter / blogger / podcaster Star Wars fan @arcticdba

Consider using the unattended file Patching goes without saying

Antivirus Hyper-threading Memory Instances Power gMSA @arcticdba Never use Antivirus @arcticdba

Antivirus Hyper-threading Memory Instances Power gMSA SE can use 16 *cores* - difference between vm and bare metal http://sqlblog.com/blogs/joe_chang/archive/2013/04/08/hyper-threading-performance.aspx http://www.dbdelta.com/sql-server-and-hyper-threading/

Antivirus Hyper-threading Memory Instances Power gMSA

Standard Edition max RAM: 64GB Server RAM: 96GB Procedure Cache Connection context Buffer Cache System-level data structures Log caches max server memory https://blogs.msdn.microsoft.com/sql_server_team/sql-server-2016-sp1-know-your-limits/ @arcticdba

Antivirus Hyper-threading Memory Instances Power gMSA @arcticdba Power settings @arcticdba

Antivirus Hyper-threading Memory Instances Power gMSA @arcticdba One or several instances, think about networking @arcticdba

Antivirus Hyper-threading Memory Instances Power gMSA @arcticdba https://www.sqlshack.com/using-group-managed-service-accounts-with-sql-server/ @arcticdba

Alignment is most often no longer an issue

Stripe size Disk layout IFI @arcticdba

SQL Server will use anything between 512bytes up to 8M (columnstore) SQL Server will use anything between 512bytes up to 8M (columnstore). Also use /L for format or –UseLargeFRS paraeter for the Format-Volume powershell cmdlet (CheckDB failing error 665) NTFS large file record segments. @arcticdba

Bob Ward Summit 2014 @arcticdba

Stripe size Disk layout IFI @arcticdba

C:\ (OS) D:\ (SQL Server) E:\ (Data) F:\ (Log) S:\ (Backup) T:\ (TempDB) Perhaps slap E and F together? Sparse files för checkdb Max 500GB LUNs enligt IBM @arcticdba

Stripe size Disk layout IFI @arcticdba

Mention security aspect @arcticdba

Mention security aspect

Mention security aspect

SQL Again, patching is a no-brainer

Trace flags Lock pages in memory SQL Mail Max/minmemory DAC DBATools SQL Mail Max/minmemory DAC MAXDOP & cost threshold Optimize for ad-hoc Backup compression TempDB DB file settings Query Store Operators & alerts Agent config Maintenance (jobs) Trace Flags 1117, 1118, 2371 (stats), 2562 (checkdb), 2549(checkdb), 4199 (optimizer enhancements) LockPages Jonathan Kehayias has a great blog post with both sides of the argument and lots of interesting information: https://www.simple-talk.com/sql/database-administration/great-sql-server-debates-lock-pages-in-memory/ DBATools setup install-module dbatools https://dbatools.io/install/ SQL Mail Set it up Memory max/min, visa kalkylatorn Test-DbaMaxMemory DAC Maxdop/cost Start with 40-50, explain OLTP MAXDOP 2-4-6-8 https://support.microsoft.com/en-us/help/2806535/recommendations-and-guidelines-for-the-max-degree-of-parallelism-confi Adhoc Dynamics/AX - do not turn on Backup compression TempDB If not =>2016 set the files File growth in general VLOGs DB file settings Edit MODEL Growth never in percent Query store ON, open query store Operators & alerts Set them up AgentConfig Failsafe, mail profile, etc. Maintenance Ola All jobs have failure emails Create a DBA database Install-DbaMaintenanceSolution -SqlInstance RES14224 -Database DBA -BackupLocation “Z:\SQLBackup” -CleanupTime 72   @arcticdba

DOCUMENT (no, seriously, do it) @arcticdba

(you heard the man, do it) BASELINE (you heard the man, do it) @arcticdba

AUTOMATE (don’t do boring) @arcticdba

TRAIN (shit happens) @arcticdba

@arcticdba

http://www.arcticdba.se/?page_id=3488 Alexander Arvidsson alexander@arcticdba.se @arcticdba http://www.arcticdba.se/?page_id=3488 Image copyright: Autoglitz