Healthy SQL. Marlon Ramos Premiere Field Engineer - Development

Similar documents
CONFIGURING SQL SERVER FOR PERFORMANCE LIKE A MICROSOFT CERTIFIED MASTER

Administering Microsoft SQL Server 2012/2014 Databases

Administering Microsoft SQL Server Databases

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

Infrastructure Tuning

SQL Server DBA Course Content

Basic knowledge of the Microsoft Windows operating system and its core functionality.

SharePoint SQL 2016 qué hay de nuevo?

SQL Server 2014 Training. Prepared By: Qasim Nadeem

Microsoft Administering Microsoft SQL Server 2014 Databases

davidklee.net heraflux.com linkedin.com/in/davidaklee

Microsoft SQL Server Database Administration

PERFORMANCE TUNING SQL SERVER ON CRAPPY HARDWARE 3/1/2019 1

Provisioning SQL Databases

Administering Microsoft SQL Server Databases

Provisioning SQL Databases

COURSE 20462C: ADMINISTERING MICROSOFT SQL SERVER DATABASES

SQL Server 2014 Performance Tuning and Optimization

Provisioning SQL Databases

2 de Diciembre #SqlSaturdayMontevideo

55144-SQL Server 2014 Performance Tuning and Optimization

MS-20462: Administering Microsoft SQL Server Databases

Oracle Database 12c Performance Management and Tuning

Product Guide. McAfee Performance Optimizer 2.2.0

Getting the most from your SAN File and Filegroup design patterns. Stephen Archbold

Successfully migrate existing databases to Azure SQL Database. John Sterrett Principal Consultant

Managing Database Performance Within Virtual Environments. Walter Guerrero, Sr. Software Engineer

Informatica Developer Tips for Troubleshooting Common Issues PowerCenter 8 Standard Edition. Eugene Gonzalez Support Enablement Manager, Informatica

Developing SQL Databases (762)

MILOŠ RADIVOJEVIĆ, PRINCIPAL DATABASE CONSULTANT, BWIN GVC, VIENNA, AUSTRIA

Manohar Punna. Azure Database Migration Choosing the Right Tier

55144 SQL Server 2014 Performance Tuning and Optimization Microsoft Official Curriculum (MOC 55144)

70-459: Transition Your MCITP: Database Administrator 2008 or MCITP: Database Developer 2008 to MCSE: Data Platform

Designing Database Solutions for Microsoft SQL Server (465)

20462C - Version: 1. Administering Microsoft SQL Server Databases

Data Warehouse Tuning. Without SQL Modification

Enterprise Manager: Scalable Oracle Management

Oracle Database 10g: New Features for Administrators Release 2

Training 24x7 DBA Support Staffing. Administering a SQL Database Infrastructure (40 Hours) Exam

Monitoring & Tuning Azure SQL Database

Oracle Database 11g: New Features for Administrators DBA Release 2

20462: Administering Microsoft SQL Server 2014 Databases

Provisioning SQL Databases

DESIGNING DATABASE SOLUTIONS FOR MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

PERFORMANCE TUNING TRAINING IN BANGALORE

ElephantSQL. PostgreSQL as a Service. Product overview. Last Updated

Performance Sentry VM Provider Objects April 11, 2012

Benchmarking in the Cloud

Lesson 2: Using the Performance Console

Course Description. Audience. Prerequisites. At Course Completion. : Course 40074A : Microsoft SQL Server 2014 for Oracle DBAs

Course Outline. Performance Tuning and Optimizing SQL Databases Course 10987B: 4 days Instructor Led

[MS10987A]: Performance Tuning and Optimizing SQL Databases

Essential (free) Tools for DBA!

Oracle Database 11g: Performance Tuning DBA Release 2

Administering Microsoft SQL Server 2012 Databases

Gianluca Sartori. Benchmarking Like a PRO

Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals

PRESERVE DATABASE PERFORMANCE WHEN RUNNING MIXED WORKLOADS

Columnstore Technology Improvements in SQL Server 2016

Performance Monitoring

Oracle Database 11g : Performance Tuning DBA Release2

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

Chapter 8: Virtual Memory. Operating System Concepts

Ms Sql Server 2008 R2 Check If Temp Table Exists

SQL Server Overview. CPU Usage per Database. Rank Database Name Time (ms) Percent. 1 master 203, IO Usage per Database

Database Administration for Azure SQL DB

Oracle Database 11g: Performance Tuning DBA Release 2

Performance Tuning & Optimizing SQL Databases Microsoft Official Curriculum (MOC 10987)

Squeezing Top Performance From Your Virtualized SQL Server

Learning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.

Administering Microsoft SQL Server 2012 Databases

IBM DB2 11 DBA for z/os Certification Review Guide Exam 312

High Availability- Disaster Recovery 101

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

Compression in Bankware

SQL Server 2017 Power your entire data estate from on-premises to cloud

dbi services Antonio De Santo Stéphane Haby Migration to SQL Server 2012 Consultant Consultant dbi services 1

ADMINISTERING MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

SQL Server: Practical Troubleshooting. Dmitri Korotkevitch (

HPE Storage Optimizer Software Version: 5.4. Best Practices Guide

Index. B Batches comparing, bit or 64-bit architecture, 5 Blocking, 42 Buff er cache, 143 Bulk changed map (BCM), 85 87

Microsoft SQL Server Fix Pack 15. Reference IBM

Columnstore Technology Improvements in SQL Server Presented by Niko Neugebauer Moderated by Nagaraj Venkatesan

SQL Server Myths and Misconceptions

Microsoft - Administering Microsoft SQL Server 2014 Databases (M20462) (M20462)

Eternal Story on Temporary Objects

SQLSaturday Sioux Falls, SD Hosted by (605) SQL

Nortel Quality Monitoring. Maintenance Guide NN

ORACLE 11g R2 New Features

Oracle Database 11g: New Features for Administrators Release 2

DBMS Performance Tuning

Microsoft. [MS20762]: Developing SQL Databases

Netezza PureData System Administration Course

Heckaton. SQL Server's Memory Optimized OLTP Engine

What is a Page Split. Fill Factor. Example Code Showing Page Splits

Virtual SQL Servers. Actual Performance. 2016

Sql Server 2005 Create Script To Copy Database Schema And All The Objects

High Availability- Disaster Recovery 101

SharePoint 2010 Technical Case Study: Microsoft SharePoint Server 2010 Enterprise Intranet Collaboration Environment

Transcription:

Healthy SQL Marlon Ramos Premiere Field Engineer - Development Microsoft @mramosgt

Patrocinadores del SQL Saturday Gold Sponsor Bronze Sponsor Geek Sponsor

Agenda What a SQL Server health check is about Why you want to perform a SQL Server health check When you should perform a SQL Server health check Which tools you should use to perform a SQL Server health check

What Is Healthy SQL? A SQL Server health check is simply a routine SQL Server performance assessment and review. You can also refer to this process as a performance audit or analysis.

Why Perform a Health Check? Performance Security Stability Audits Migration Upgrade Backup and restore Business continuity

When to Perform a Health Check? It s a process you want to do regularly New Job as DBA? You are coming in as Consultant Before getting into doomsday scenarios

Steps in a Health Check Collect (via the checklist) Baseline Compare/delta Identify any health issues Establish best practices Determine changes/implement in production Rinse/repeat Implement Changes Define Metrics Create/Modify Baseline Compare Deltas Identify Issues Test Changes Resolutions

What to Collect? Memory Usage Server Info CPU Usage System Errors Configuration I/O Activity Disk Space SQL Backup Info Get the FACTS 15-Point Health Check Top Server Waits Blocking Index Stats Top Costly Queries SQL Job History Security Database Info

Road Map Essentials Inventory Statistical terms: baseline, delta, deviation, an so on Metadata Collection data Compare data Performance life cycle Testing life cycle Best practices Documentation Run book

Waits and Queues Whenever a request is made within SQL Server that for one of many reasons can t be immediately satisfied, the system puts the request into a wait state. The SQL Server engine internally tracks the time spent waiting, aggregates it at the instance level, and retains it in memory

Wait Type Categories Category Resource waits Signal waits Queue waits External waits Details Locks, latches, memory, network, I/O Time spent waiting for CPU Idle workers, background tasks Extended procs (XPs), linked server queries

Execution Model

Execution Model

CPU Pressure CPU High number of SOS_SCHEDULER_YIELDS waits High percentage of signal waits over resource waits Runnable task counts greater than zero Counters

I/O Pressure Fragmentation I/O Latch Buffer Issues

Memory Pressure Memory grants pendind Memory grants outstanding Blocking

Indexes Advantages Reduces disk I/O Improve query performance (faster Selects/reads) Scan smaller range of data (index) vs. a large one (table scan) Provides efficient data retrieval operations Disadvantages Slow inserts, updates, and deletes Reorganization of rows Too many indexes Page splits Fragmentation

Tools SQL PowerDoc PAL SQL Server Best Practices Analyzer SQL IO

Best Practices The Disk Layout for SQL Server should ideally separate Data, Log, tempdb, Binaries, and SQL Backups to separate physical disks. You should consider enabling LockPagesInMemory for both physical and clustered SQL Servers. Enable Instant File Initialization by assigning the Perform Volume Maintenance Tasks Windows policy to the SQL Server service account. Always set the SQL Server configuration options Maximum Server Memory andminimum Server Memory. Exclude all data, log, backup, and SQL Server files from antivirus scans. The rule of thumb for the number of Tempdb Files to create for a SQL Server is the number of Logical Cores/4. Use the Startup Trace Flag T-1118 to reduce allocation contention in the SQL Server tempdb database. Enable the SQL Server configuration setting Optimize For AdHoc Workloads for better query performance. Increase the SQL Server configuration setting Cost Threshold for Parallelism to specify the threshold at which SQL Server creates and runs parallel plans for queries. Consider using native backup compression for your SQL Server backups.

PREGUNTAS Y RESPUESTAS marlon.ramos@outlook.com http://marlonramos.blogspot.com Marlon Ramos @mramosgt

Evaluaciones Evaluacion del evento http://www.sqlsaturday.com/443/eventeval.aspx Evaluacion de las charlas http://www.sqlsaturday.com/443/sessions/sessionevaluation.aspx

Proxima sesion Dr Rudo & Dave Rndn: Mejores practicas para Admin de SQL y Azure