Case study: Spawn your own Junior DBA with SQL Monitor
-
Upload
red-gate-software -
Category
Software
-
view
188 -
download
1
Transcript of Case study: Spawn your own Junior DBA with SQL Monitor
![Page 1: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/1.jpg)
Case study: Spawn your own
Junior DBA with SQL MonitorTjay Belt
Database Administrator at
Imagine Learning
#SQLintheCityUS
![Page 3: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/3.jpg)
What to expect
What it is Theory
My ideas
My experiences and stories
Some code / some tools / examples
What it is not Definitive
The only way to solve the issue
#SQLintheCityUS
![Page 4: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/4.jpg)
My Goal
Best case scenario for you to be inspired
come up with an idea
help your own shop
At a minimum learn something
not be bored
#SQLintheCityUS
![Page 5: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/5.jpg)
#SQLintheCityUS
![Page 6: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/6.jpg)
3 Laws of Monitoring1. A monitor may not injure a system or, through failure to alert,
allow a system to come to harm
2. A monitor must report on all activities in the system, even where such activities would conflict with the First Law
3. A monitor must protect its own existence as long as such protection does not conflict with the First or Second Laws
6
#SQLintheCityUS
![Page 7: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/7.jpg)
The Ten Commandments
of SQL Server Monitoring• http://alturl.com/rag3h
• Alerts must be actionable
• Alerts must contain sufficient information
• Alerts should not make excessive noise
• Alerts must make enough noise
• Monitor the monitoring server
• More… go check it out
7
![Page 8: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/8.jpg)
Basics of Monitoring• Collect
• Review
• Baseline
• Measure
• Report/alert
8
#SQLintheCityUS
![Page 9: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/9.jpg)
Basics of Monitoring Collect
What data is important to collect about your system?
Review You need to look at the data collected, see its story
Baseline From the story told, you can create a baseline
Acceptable behavior, highs, lows
9
#SQLintheCityUS
![Page 10: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/10.jpg)
Basics of Monitoring
Measure History tables. Lots of history tables
Periodic reporting and alerting
Start seeing how often you need to see reports/alerts
Report / Alert Based on acceptable periods, generate reports or alerts
Learn the nuances of said reporting/alerting
Act upon data received
10
#SQLintheCityUS
![Page 11: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/11.jpg)
Collect Collect
What data is important to collect about your system?
Review You need to look at the data collected, see its story
Baseline From the story told, you can create a baseline
Acceptable behavior, highs, lows
11
![Page 12: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/12.jpg)
Collect
Data Collection
Data File Sizes
Failed Logins
Powershell
12
#SQLintheCityUS
![Page 13: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/13.jpg)
Collect
SQL Server
Job Notifications
Alerts
Severity 016-025 and Error Number 823-825
Redgate SQL Monitor
13
#SQLintheCityUS
![Page 14: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/14.jpg)
Demo#SQLintheCityUS
![Page 15: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/15.jpg)
15
#SQLintheCityUS
![Page 16: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/16.jpg)
16
#SQLintheCityUS
![Page 17: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/17.jpg)
17
#SQLintheCityUS
![Page 18: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/18.jpg)
18
#SQLintheCityUS
![Page 19: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/19.jpg)
19
#SQLintheCityUS
![Page 20: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/20.jpg)
Collect What data is important to collect about your system?
Review You need to look at the data collected, see its story
Baseline From the story told, you can create a baseline
Acceptable behavior, highs, lows
20
![Page 21: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/21.jpg)
Review
Data File Sizes
Data Units
Failed Logins
21
![Page 22: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/22.jpg)
Collect What data is important to collect about your system?
Review You need to look at the data collected, see its story
Baseline From the story told, you can create a baseline
Acceptable behavior, highs, lows
22
![Page 23: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/23.jpg)
Baseline
From the story told, you can create a baseline
Acceptable behavior, highs, lows
23
#SQLintheCityUS
![Page 24: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/24.jpg)
Measure History tables. Lots of history tables
Periodic reporting and alerting
Start seeing how often you need to see reports/alerts
Report / Alert Based on acceptable periods, generate reports or alerts
Learn the nuances of said reporting/alerting
Act upon data received
24
![Page 25: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/25.jpg)
Measure
History tables. Lots of history tables
Collect data, store data, archive data, study data
Periodic reporting and alerting
Have initial raw reports for said data
Share this with folks and tweek reports
25
#SQLintheCityUS
![Page 26: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/26.jpg)
Measure
Start seeing how often you need to see
reports/alerts
Look for patterns, highs, lows, appropriate time to share
26
#SQLintheCityUS
![Page 27: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/27.jpg)
Measure History tables. Lots of history tables
Periodic reporting and alerting
Start seeing how often you need to see reports/alerts
Report / Alert Based on acceptable periods, generate reports or alerts
Learn the nuances of said reporting/alerting
Act upon data received
27
![Page 28: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/28.jpg)
Report / Alert
Chula Vista reset 11:00pm – 3:00am Told a story with 5 email alerts. Not all night. Still going
Data File Size at 75% Do nothing for a few days, watch, see
Replication Jobs Disabled
28
#SQLintheCityUS
![Page 29: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/29.jpg)
Report / Alert
Monitor Everything email
Monitor Everything Dashboard
29
#SQLintheCityUS
![Page 30: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/30.jpg)
What have we learned?
Start monitoring today…
Break away from the pack…
Architect / Document / Automate
31
#SQLintheCityUS
![Page 31: Case study: Spawn your own Junior DBA with SQL Monitor](https://reader031.fdocuments.net/reader031/viewer/2022030214/589a5f421a28abc3438b59fb/html5/thumbnails/31.jpg)
Thank You!TJay Belt
Cell (801) 735-9439
eMail [email protected]
Blog http://tjaybelt.blogspot.com
Linked In www.linkedin.com/in/tjaybelt
Twitter @tjaybelt
Skype tjaybelt
Google+ link
#SQLintheCityUS