Tjay Belt, SQL Server MVP. Presentation at SQL in The City 2016.
Wouldn't it be great if you had a reliable Junior DBA to watch your systems while you were away?
Each of our database systems has its complexities, its idiosyncrasies, its touchy points.
Digging into each of these, understanding them, baselining them and monitoring them is an essential part of a DBA's job.
Doing these simple tasks in such a way that allows you to sleep at night while your systems churn away safely and gracefully is an art we all strive to accomplish.
Let's discuss how you can leverage SQL Monitor from Redgate as well as other tools, approaches, and solutions to monitor different pieces of our systems.
Examples, code, tools, will all be shown off and shared so we can all do better.
3. 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
4. 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
6. 3 Laws of Monitoring
1. 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
7. 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
9. 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
10. 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
11. 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
20. 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
22. 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
23. Baseline
From the story told, you can create a baseline
Acceptable behavior, highs, lows
23
#SQLintheCityUS
24. 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
25. 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
26. Measure
Start seeing how often you need to see
reports/alerts
Look for patterns, highs, lows, appropriate time to share
26
#SQLintheCityUS
27. 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
28. 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