31
Case study: Spawn your own Junior DBA with SQL Monitor Tjay Belt Database Administrator at Imagine Learning #SQLintheCityUS

Case study: Spawn your own Junior DBA with SQL Monitor

Embed Size (px)

Citation preview

Page 1: Case study: Spawn your own Junior DBA with SQL Monitor

Case study: Spawn your own

Junior DBA with SQL MonitorTjay Belt

Database Administrator at

Imagine Learning

#SQLintheCityUS

Page 2: Case study: Spawn your own Junior DBA with SQL Monitor

Get in touch

http://tjaybelt.blogspot.c

[email protected]

@tjaybelt

TJay Belt

#SQLintheCityUS

Page 3: Case study: Spawn your own Junior DBA with SQL Monitor

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

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

#SQLintheCityUS

Page 6: Case study: Spawn your own Junior DBA with SQL Monitor

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

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

Basics of Monitoring• Collect

• Review

• Baseline

• Measure

• Report/alert

8

#SQLintheCityUS

Page 9: Case study: Spawn your own Junior DBA with SQL Monitor

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

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

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

Collect

Data Collection

Data File Sizes

Failed Logins

Powershell

12

#SQLintheCityUS

Page 13: Case study: Spawn your own Junior DBA with SQL Monitor

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

Demo#SQLintheCityUS

Page 15: Case study: Spawn your own Junior DBA with SQL Monitor

15

#SQLintheCityUS

Page 16: Case study: Spawn your own Junior DBA with SQL Monitor

16

#SQLintheCityUS

Page 17: Case study: Spawn your own Junior DBA with SQL Monitor

17

#SQLintheCityUS

Page 18: Case study: Spawn your own Junior DBA with SQL Monitor

18

#SQLintheCityUS

Page 19: Case study: Spawn your own Junior DBA with SQL Monitor

19

#SQLintheCityUS

Page 20: Case study: Spawn your own Junior DBA with SQL Monitor

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

Review

Data File Sizes

Data Units

Failed Logins

21

Page 22: Case study: Spawn your own Junior DBA with SQL Monitor

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

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

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

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

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

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

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

Report / Alert

Monitor Everything email

Monitor Everything Dashboard

29

#SQLintheCityUS

Page 30: Case study: Spawn your own Junior DBA with SQL Monitor

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

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