master db performance with wlm

15
DB2’S GOT

Upload: rajasekhar-lanka

Post on 27-Jul-2015

242 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Master db performance with  wlm

DB2’S GOT

Page 2: Master db performance with  wlm

MASTER DB PERFORMANCE WITH WLM

Raja

Page 3: Master db performance with  wlm

DB2 V10.1 on AIX

Hybrid multi TB Database

Tables with 3080761021 rows (> 3 Billion)

Failure of reports (36%)

Business user (Sponsor) queries – SLOW

(41%)

Problem Statement

Page 4: Master db performance with  wlm

First Impression

Page 5: Master db performance with  wlm

INVESTIGATION

H/W as per Firm standards

Load on DB increased

DBA’s killing low priority sessions

Resource hogging on the server

Business users were NOT happy

Page 6: Master db performance with  wlm

DB2 WLM is a functionality that o Maintains SLA’so Prevents resource hoggingo Optimizes system to avoid overload

oControls, monitors and analyses DB activity

Workload Manager …… in a nutshell

Page 7: Master db performance with  wlm

DB2 WLM introduces the entities called oService Super Class – Logical Grouping of SCoService classo Thresholdo Workloado Work Class Seto Work Action Set

WLM…… continued

Page 8: Master db performance with  wlm

Service class - Applies Conditions

WLM…… continued

Threshold – Sets Limits

Page 9: Master db performance with  wlm

DATA TAG – Tag for the data (New Feature in 10.1)o CREATE TABLESPACE "VOTE_4RAJA“

.... .... DATA TAG 1...;o ALTER TABLESPACE "VOTE_4RAJA“

... ... DATA TAG 1 ....;

WLM……new functionality

Page 10: Master db performance with  wlm

CREATE SERVICE CLASS CLASS1 CREATE SERVICE CLASS “LOW_PRIORITY“ UNDER “CLASS1“

.....

CPU LIMIT 25

PREFETCH PRIORITY LOW

BUFFERPOOL PRIORITY LOW; CREATE SERVICE CLASS “HIGH_PRIORITY“ UNDER

“CLASS1” …..

CPU LIMIT NONE

PREFETCH PRIORITY HIGH

BUFFERPOOL PRIORITY HIGH

WLM DDL

Page 11: Master db performance with  wlm

CREATE THRESHOLD "LOW_TO_HIGH"

FOR SERVICE CLASS “LOW_PRIORITY"

WHEN DATATAGINSC IN (1,...)

REMAP ACTIVITY TO “HIGH_PRIORITY“

ALTER THRESHOLD ………

……………………………

WHEN DATATAGINSC IN (1,...)

REMAP ACTIVITY TO “HIGH_PRIORITY“

WLM DDL

Page 12: Master db performance with  wlm

WLM……continued

LOW_PRIORITY SC

HIGH_PRIORITY SC

THRESHOLD

NOYES

DATA TAG TBSP

Optimizer

Page 13: Master db performance with  wlm

First ImpressionBest Impression

Page 14: Master db performance with  wlm

Streamlined resource usage

Sponsor queries given priority – No failures

Reports generation for priority data on time

New Features offer multiple solutions

Happy Customer

Useful Link :http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.wn.doc/doc/c0052271.html

Page 15: Master db performance with  wlm

Thank You

Twitter : raja_iafLinkedin : www.linkedin.com/in/lrajasekhar/