SQL Server Best Practices With Compellent
SQL Server Best Practices With Compellent
About me
Doug Bernhardt
With Dell Compellent for ~1.5 years
21 years experience in IT
18 years working with SQL Server
Administration, Development, Architecture
Agenda
Setup and
Configuration
4
Confidential
Performance Metrics
IOPS
Disk Reads/Sec
Disk Writes/Sec
Disk Transfers/Sec
Throughput
Disk Read Bytes/Sec
Disk Write Bytes/Sec
Disk Bytes/Sec
Latency
Avg. Disk Sec/Read
Avg. Disk Sec/Write
Avg. Disk Sec/Transfer
Timing
Confidential
Storage Profiles
Confidential
File Type
Number of Volumes
User DB data
Lower
performance may
be acceptable
User DB log
1 per instance
High performance
1 per instance
Lower
performance
Infrequent Replays,
independent schedule
1 per instance
High performance
may be required
No Replays
1 per instance
Lower
performance may
be acceptable
Replays optional,
independent schedule
Customization Factors
Replication
Virtualization
Performance
Replay Schedules
Confidential
Replay Requirements
iSCSI
Confidential
10
Confidential
Storage Validation
Numerous components so validation is important!
Desired outcomes
System meets performance needs
System matches design
No unexpected errors
11
Confidential
Path Validation
Goal is to only validate path to the storage center
Use one volume per controller
Format volume with 64KB allocation unit
SQLIO Large Block Sequential Read
12
Confidential
Disk Validation
Once paths are validated, now test system performance
SQLIO or Iometer tips
Use 100GB file or larger
Test I/O sizes observed in your environment
Interpreting results
13
Confidential
Data Instant
Replay
14
Confidential
15
Confidential
Replay Manager
Replay Manager is recommended for SQL Server
Use Replay Manager for database consistent backups
Consistency provided thru VSS Integration to SQL Server
Use Replay Manager with log backups for arbitrary point in time recovery.
Simple interface
16
Confidential
17
Confidential
SQL Server
I/O
18
19
Confidential
Random/Sequential
Read/Write
Size Range
OLTP Log
Sequential
Write
512 bytes-64KB
OLTP Data
Random
Read/Write
8KB
Read Ahead
Sequential
Read
8KB-256KB
Backup
Sequential
Read/Write
1MB
DBCC CHECKDB
Sequential
Read
8KB-64KB
Source: http://blogs.msdn.com/b/sqlcat/archive/2005/11/17/493944.aspx
20
Confidential
How?
Memory
SQL Server uses most memory for buffer pool (cache)
All I/O goes through buffer pool
Database Compression
Reduce the amount of data
CPU cost varies
Design
21
Database
Query
Application
Maintenance
Confidential
High
Performance
SQL Server
22
23
Confidential
24
OLTP workload
2TB Database SQL Server 2012
16Gb Fibre Channel end to end
2 Dell R820 Servers (application, database)
Compared 3 storage configurations
Confidential
25
Confidential
26
Confidential
27
Confidential
28
Confidential
29
Confidential
Disaster
Recovery
30
Disaster Recovery
What are the requirements?
Know your requirements and challenge five nines
As you add nines cost increases exponentially
People, Process, Technology
Replication
Asynchronous
Replicate Active Replay can provide near real-time
Synchronous
High Consistency
Zero data loss
High Availability
Functions like High Consistency until an interruption occurs
Consider latency
Simulate Replication
Assess bandwidth requirements
Convert into live replication
31
Confidential
32
Confidential
File Layout
TempDB
No need to replicate
SORT_IN_TEMPDB option
33
Confidential
PowerShell
Most UI features available as PowerShell cmdlets
Over 140 cmdlets for Storage Center and Replay Manager
34
Confidential
Summary
Covered various tips around
35
Confidential
Questions?
Contact Info
[email protected]
DellTechCenter.com
Compellent Technical Content
http://en.community.dell.com/techcenter/storage/w/wiki/5018.compellenttechnical-content.aspx
http://en.community.dell.com/techcenter/extras/m/white_papers/20438053.aspx
Customer Portal
Customer.Compellent.com
Support
[email protected]
1-866-EZSTORE
36
Confidential
37
Confidential