SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell ....
Transcript of SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell ....
![Page 1: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/1.jpg)
5 COMMON HIGH AVAILABILITY MISTAKES
SQL Server Webcast
Michael K. Campbell
![Page 2: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/2.jpg)
Michael K. Campbell Independent Consultant
Former DBA and Database Developer
Author, Contributing Editor, Presenter
Contact web: http://www.overachiever.net
email: [email protected]
twitter: AngryPets
5 Common HA Mistakes
![Page 3: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/3.jpg)
In this Webcast
High Availability
Common HA Mistakes
Goal / Take-Away:
What you can do to avoid mistakes.
![Page 4: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/4.jpg)
High Availability
High Availability Defined: Pro-Active Disaster Recovery
HA Options / Technologies: Log Shipping / Mirroring
Replication / SAN Replication
Clustering / Virtualized Nodes
Etc.
Which Option is Best? ANSWER: Success is NOT a function of which
technology you use.
![Page 5: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/5.jpg)
5 Common HA Mistakes
1. Confusing HA and DR
2. ‘House-Boating’
3. Thinking Only of Data
4.
5.
![Page 6: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/6.jpg)
HA = Highly Available Data
But what if your data is bad?
How quickly does it become bad ‘everywhere’?
Once it’s bad everywhere, then what?
HA is useless without GOOD data.
HA doesn’t usually address data quality.
It can even HINDER restoring data quality.
Common High Availability Mistake #1
MISTAKING HA as a Replacement for DR
![Page 7: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/7.jpg)
Example
Juggling Flaming Chainsaws, Kittens, and Loaded (Sawed-Off) Shotguns.
Widgets Database
Mission Critical System.
Highly-Available – using Clustering and Log Shipping.
Tracks Inventory Levels for Products.
Products Sold Online OR through Call Center.
Not ready for Developers A and B.
![Page 8: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/8.jpg)
Developers
Dude. Don’t stress. I read about this
once. We just need to run a ROLLBACK
or something...
!!!!
![Page 9: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/9.jpg)
Developers
HA Location
Call Center
Web Site
Rollback?!?
HA Location
Safe Data
![Page 10: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/10.jpg)
Developers
HA Location
Call Center Inventory = 0
Web Site Inventory = 0
Receiving +3,312 different
products
Dude?!? DBA
HA Location
![Page 11: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/11.jpg)
Recovery Options Failover the Cluster?
Pointless.
Failover to an HA Location? Pointless, unless:
Synchronization Delay? Data Loss.
Recover Database? Point In Time Restore?
Data Loss – All operations AFTER the UPDATE.
Recover a Copy of the DB? Headache
Potential for Data Loss
![Page 12: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/12.jpg)
http://www.flickr.com/photos/lastbeats/473632210/
Common High Availability Mistake #2
HOUSE-BOATING
![Page 13: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/13.jpg)
High Availability and House-Boats
Example: Secondary Reporting Servers Commonly needed.
Commonly ‘bundled’ with HA Solutions.
Example: Log Shipping Highly Versatile HA Solution.
Can Delay Application of Log Files/Updates.
STANDBY.
Read Only / Reporting Databases Seems like the best of both worlds…
![Page 14: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/14.jpg)
The Problem with House-Boats
http://www.flickr.com/photos/salim/2183984577/
![Page 15: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/15.jpg)
There’s More to High Availability than DATA Making data available is core to HA But you NEED a viable environment
Otherwise, data is inaccessible / non-available
Considerations Hardware Capacity / Capability Server Services, SPNs, Access to Resources Encryption Keys, Custom Errors, Maintenance Plans Connection Strings, Ports, and Firewalls Application Security, Delegation, and Access User Permissions / Logins, Authorization Configuration / Settings, Performance Tweaks
Common High Availability Mistake #3
THINKING ONLY OF DATA
![Page 16: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/16.jpg)
Common High Availability Mistake #4
FAILURE TO TEST REGULARLY
Not Testing Regularly
Don’t LOOK like an idiot
Don’t BE an idiot.
Regular Testing
Ensures that HA systems actually WORK.
Ensures that your environment hasn’t hosed you.
Ensures that you have the skills to ‘fail over’.
![Page 17: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/17.jpg)
Common High Availability Mistake #5
FAILURE TO DOCUMENT
Documentation IMPLIES Testing
Viable Documentation only comes with testing
Viable Documentation only STAYS viable with continued testing.
Documentation IMPLIES Skills / Knowledge
Viable documentation REQUIRES understanding and skills need to recover from an emergency.
Documentation = Bus Factor You won’t always be there
With GOOD documentation, you won’t NEED to be there
![Page 18: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/18.jpg)
Good Documentation
Good Documentation Starts with SLAs: Acceptable Down-Time Acceptable Data Loss
Documents More than Just Processes Includes Environmental Details / Credentials
Sealed Envelope Approach (Built-In Post Mortem)
Outlines / Defines Escalation Plans Provides Contact Information:
Management Vendors Other Admins / Resources
![Page 19: SQL Server Webcast 5 COMMON HIGH AVAILABILITY MISTAKES · SQL Server Webcast Michael K. Campbell . Michael K. Campbell Independent Consultant Former DBA and Database Developer](https://reader033.fdocuments.in/reader033/viewer/2022060500/5f1a494369de8a3ff17e5156/html5/thumbnails/19.jpg)
Avoiding Mistakes / Disasters
Take-Away / Things You Can Do:
Test Regularly
Keep Documentation Up to Date