Professional Documents
Culture Documents
Management
Erik Peterson
Real Application Clusters Development
Agenda
y Paradigm Shift
y AWM Background & Benefits
y AWM Blueprints
Traditional Deployment - Silos
HR DW CRM Retail
Batch
Daytime
HR DW CRM Retail
Batch
Night – Xmas Season
HR DW CRM Retail
Batch
Night – Payday
HR DW CRM Retail
Batch
Grid - Daytime
idle
DW HR Retail
Batch
CRM
Grid – Night Payday
idle
DW Retail
Batch
HR
CRM
Grid – Night Xmas
idle
DW
Retail
Batch
HR CRM
What is Automatic Workload
Management?
y AWM is an abstraction that customers use to
divide work into logical workloads.
y Services is the first stage in AWM
y Each service represents a workload with
– common function
– common service level thresholds
– common priority
– (common resource footprint)
– e.g. mail server – iMap, postman, garbage
collector, monitor
Services Types
y Application services
– Functional
Sessions using a function are grouped together
e.g. SAP dialog and update functions
– Data dependent
Mapping of work requests to services occurs in the object
relational mapping layer and TP monitors.
Because the database is shared, ranges are fully dynamic
– TAF Pre-connect
y Internal services
– SYS$BACKGROUND
– SYS$USERS
Sample Work Sheet
Service Usage Priority Response time Preferred Available
(sec) – warning Instances Instances
/ critical
Client-side usage
– TNS connect data - e.g for JDBC, Easy Connect -
scott/tiger@myservice
TNS names for OCI/Net
URL for thin JDBC, JDBC OCI
or maintained in the Oracle Internet Directory
Server-side usage
– Job class definition
– PQ/PDML – inherited from the query co-ordinator
Services are a unit for
performance
y A new level dimension for performance tuning
– workloads are visible and measurable
– tuning by “service and SQL” replaces “session and
SQL” in most systems where sessions are shared.
– Performance measures for real transactions
y Alerts and actions when performance goals are
violated
Automatic Workload Management
Provides Visibility
Service Measurement
Goal:
y Hands-free sharing of resources based on
business rules
– response time, availability, and priority, not on
physical hardware and software limitations
y The workload measurement features are fully
integrated with the Oracle 10g
– single instance and RAC environments.
Service Measurement
y DBMS_SERVER_ALERT.SET_THRESHOLD
– SERVICE_ELAPSED_TIME
– SERVICE_CPU_TIME
– Warning and critical levels for observed periods
– Import from EM baselines
y Comparison of response time against
accepted minimum levels
– a desire for the wall clock time to be, at most, a
certain value.
Example Service Metrics
Service time - current
NAME ELA(s)/CALL CPU(s)/CALL
--------------------------- ------------ ------------
ERP 0.1940 0.0082
y DBMS_RESOURCE_MANAGER.
SET_CONSUMER_GROUP_MAPPING
– Automatically sets consumer groups for services at connect
time.
– alter session to change consumer groups within service
y Using ratios
– e.g. two-thirds of resource to payroll and one-third to CRM.
y Using priorities
– satisfy the highest priority services first, followed by the next
priority services, and so on.
Service High Availability using
RAC 10g
y Focus is on protecting the application services
– more flexible/more cost effective than other HA
that focus on availability of single physical systems
y Services are available continuously with load
shared across one or more instances.
y Any server in the RAC can offer services
– in response to failures
– in response to planned maintenance.
– in response to runtime demands
Handling Planned Outages
Challenge
y Large DW Box
y Small OLTP Box
y Need HA for OLTP
Retailer
DW & OLTP on mixed sized nodes
Node-2
(4 CPUs)
DW
OLTP
OLTP’
Challenge
y Need Session Stickiness
y Want Full Use of Resources
Game Company
Stickiness Sets
Initial A, B, C D, E, F G, H, I J, K, L
Challenge
y 3 critical applications
y Want to share spare capacity
Stock Exchange
Singleton Services
Challenges
y Consolidation effort of 4 different systems
y Critical reports getting affected by Ad Hoc
Queries
y Users starting reporting before aggregation
has finished
Manufacturer - DW
Services by Priority
Shared Nodes
y Finance
y Services
y Sales
Top Services
Challenges
y Need to provide any application with the
power it needs at the time it needs it
y Specific usage for any one application varies
strongly
y Dedicated servers are not cost effective
Hosting Provider
Hosting GRID
Shared Nodes
Service-B TBD
0-100 TBD
0-100 TBD
0-100 0-100% 0-100% 0-100% TBD
0-100 TBD
0-100
Service-C 0-100
TBD 0-100
TBD 0-100
TBD 0-100
TBD 0-100
TBD 0-100
TBD 0-100% 0-100%