Configuring SQL Server

Slides:



Advertisements
Similar presentations
SQL Server 2005 features for VLDBs. SQL Server 2005 features for VLDBs aka (it’s fixed in the next release)
Advertisements

SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Low Control | Low Maintenance Shared Lower cost Dedicated Higher cost High Control | High Maintenance Hybrid On premises Off premises SQL Server Physical.
Yes, yes it does! 1.Guest Clustering is supported with SQL Server when running a guest operating system of Windows Server 2008 SP2 or newer.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Exam QUESTION CertKiller.com has hired you as a database administrator for their network. Your duties include administering the SQL Server 2008.
Module 1: Introduction to Microsoft SQL Server 7.0.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
SQL-Server 2012 Always On.
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
1 Moshe Shadmon ScaleDB Scaling MySQL in the Cloud.
DBI Meets mission critical high availability SLA Integrated Efficient Flexible.
SQL Server 2014: Overview Phil ssistalk.com.
DBI313. MetricOLTPDWLog Read/Write mixMostly reads, smaller # of rows at a time Scan intensive, large portions of data at a time, bulk loading Mostly.
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
IN-MEMORY OLTP By Manohar Punna SQL Server Geeks – Regional Mentor, Hyderabad Blogger, Speaker.
Srik Raghavan Principal Lead Program Manager Kevin Cox Principal Program Manager SESSION CODE: DAT206.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
SQL Server Memory Architecture Sumit Sarabhai Microsoft Corp.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
TOP 10 Thinks you shouldn’t do with/in your database
SQL SERVER CONFIGURATION OPTIONS AND TRACE FLAG SECRETS Kevin Kline SQL Sentry, Director of Engineering on Twitter, FB, LI Blogs at
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
Rick Claus Architect like a PRO for Performance and Availability of your Microsoft Azure VMs ARC43 6.
Get the Most out of SQL Server Standard Edition Or How to be a SQL Miser.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
AM04 – MAINTAINING TARGET SYSTEM PERFORMANCE WHEN UPGRADING FROM ON-PREMISE TO A VIRTUAL ENVIRONMENT Alexander Lutz, brands4friends Tassos Vassilopoulos,
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
A deep dive into SQL Server Plan Cache Management.
Session Name Pelin ATICI SQL Premier Field Engineer.
SQL 2012 – Always On Deep Dive Bob Duffy Database Architect Prodata SQL Centre of Excellence 11 th April 2013.
SQL Server Performance Tuning Starter Kit Randolph West | Born SQL.
Microsoft Dynamics NAV Dynamics NAV 2016 one Azure SQL Dmitry Chadayev Microsoft.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
TempDB Best Practices, Advanced Configs. & Troubleshooting Omar Gonzalez Sr. DBA at Dell Fourth MeetUp DBA200.
SQL Server Management Strategies
Top 10 DBA mistakes that affect the SQL Server performance
Get the Most out of SQL Server Standard Edition
Deploying SQL Server With Microsoft Azure Virtual Machine
SQL Server In-Memory OLTP: What Every SQL Professional Should Know
Hitting the SQL Server “Go Faster” Button
Section 6: SQL Server on IaaS Best Practices
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Designing Database Solutions for SQL Server
Installation and database instance essentials
Design and Implement Cloud Data Platform Solutions
The Top 5 SQL Server Mistakes
Auditing in SQL Server 2008 DBA-364-M
SQL On Azure Parikshit Savjani, Sr. Premier Field Engineer.
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
Configuring SQL Server
Real world In-Memory OLTP
Wellington, SQLSaturday#706
SQL Server 2016 Query Data Store
SQL Server performance tuning on Azure IaaS
SQL Server performance tuning on Azure IaaS
It’s TEMPDB Why Should You Care?
Transaction Log Internals and Performance David M Maxwell
Transaction Log Performance Tuning
Working with Very Large Tables Like a Pro in SQL Server 2017
ZORAN BARAC DATA ARCHITECT at CIN7
Presentation transcript:

Configuring SQL Server Mission Critical Scalable Deployments Suresh B. Kandoth Microsoft – Sr. Escalation Engineer

Session Objectives And Takeaways Target systems High-End CPUs / NUMA Large memory footprints High transaction rates Things you can do today File Configuration Trace Flags Memory Configuration sp_configure Windows settings SQL Server 2016 Changes Best Practices KB Article 2964518 2 | 12/28/2018 | Get more throughput from your systems

I/O and Database File Settings RG - IO Data Files (MDF/NDF) Growth Percent MB Instant File Initialization SE_MANAGE_VOLUME Tempdb Number of Files Startup Trace Flags 1118 & 1117 Local Fast Storage In-Memory replacement non-durable Buffer Pool Extension File sizing X of ‘max srv memory’ Fast storage on all nodes Config improvements [SQL 2014 SP1 - 3044952] Snapshot Files / Sparse Fragmentation Latest OS Large File Record Segment KB 967351 FORMAT /L ReFS Same Speed as LDF Filestream 8.3 naming Last Updated Time Garbage Collection 3 | 12/28/2018 | Good configuration – less pagers & no night calls

Transaction Log Configuration VLF initialization [0x00 or 0xC0 stamp] # of VLF [Recovery & Restore perf] VLF size change in SQL 2014 File settings 512 bytes, 4K, 512E Log shipping, High Availability [KB 3009974] Flush boundary (R)ead-(M)odify-(W)rite behavior Sector size 4 | 12/28/2018 | Log performance is very critical

Latest OS NUMA Improvements Memory Configuration -T8048 for CMemThread Binding Numa In Registry Vendor Guidance Numa Affinity Max Server Memory Lock Pages Large Pages Compatibility 5 | 12/28/2018 | Memory management isn’t that complicated

Plan Cache Other Caches Cache Configuration Increase Size of Cache Startup Trace Flag 8032 Increase Bucket Count of Cache Startup Trace Flag 174 Configuration Options Optimize for Adhoc workload Forced Parameterization Other Caches Security Token Cache Access check tokens Access Check Cache Bucket Count Access Check Cache Quota Login, User and Context tokens Trace Flag 4618 & 4610 Log Pool Cache Startup Trace Flag 9024 to partition pmo Startup Trace Flag 9023 to limit size CU fixes for leak & cache management 6 | 12/28/2018 | Take care of these caches well and they will take care of you

Other Scalability Considerations Download center Why Latest SP + CU Spatial PLE Eager Writes Cache contention DBCC changes VAS problems RG fixes Database Lock Partitioning Spatial Enhancements Query Optimizer Changes Activate QFE (Trace Flag 4199) Autostats Threshold (Trace Flag 2371) Table variable recompile (Trace flag 2453) 7 | 12/28/2018 | The latest build is the greatest !

Triple Check Before Upgrade Fix Levels, SPs and CUs Trace Flags Configuration Settings Firewall Service Accounts and Settings … 8 | 12/28/2018 | Do not leave anything behind, it will haunt you !

Configure SQL Server on IaaS/VM Use minimum Standard Tier A2 for SQL Server VMs. Keep the storage account and SQL Server VM in the same region. Disable Azure geo-replication on the storage account. Avoid using operating system or temporary disks for database storage or logging. Avoid using Azure data disk caching options (caching policy = None). Stripe multiple Azure data disks to get increased IO throughput. Format with documented allocation sizes. Separate data and log file I/O paths to obtain dedicated IOPs for data and log. Enable database page compression. Enable instant file initialization for data files. Limit or disable autogrow on the database. Disable autoshrink on the database. Move all databases to data disks, including system databases. Move SQL Server error log and trace file directories to data disks. Apply SQL Server performance fixes. Setup default locations. Enable locked pages. Backup directly to blob storage. Leverage Buffer Pool Extension on VM with SSD Configure tempdb on SSD when available 9 | 12/28/2018 | Footer Goes Here

Diagnostics Best Practices PssDiag SQL Nexus Sqldumper WPR WPA System Monitor Windows Event Logs SQL Error logs Cluster Logs System Health Session Ring buffers Extended Events 10 | 12/28/2018 | Footer Goes Here

Hot Spot Investigation - Extended Events Configure sessions Actions to Capture Partitioning & Memory Filters and map values Process XEvent Data SSMS aggregate/group/filter Call stack requirements Changes in future Reader, Writer, Sorting Duration & Time Drift Incorrect Information Stability 11 | 12/28/2018 | Footer Goes Here

Changes In SQL 2016 TempDB auto-config Memory Object auto-partition Query compilation robust Parallel redo Multiple Log Writers soft NUMA auto-config Schema Changes online Partition Management Always On AG Backup & Restore progress Query Progress easy identify Integrity Checks speed up Query Execution finer control Recovery progress tracking 12 | 12/28/2018 | Footer Goes Here

Additional references BPE enhancements in SQL Server 2014 SP1 Sparse file changes and fixes Virtual log file recommendations and changes Plan cache changes Statistics update threshold Table variable recompile Query Optimizer changes 13 | 12/28/2018 | Footer Goes Here