Oracle Grid Computing: Trending for Capacity Planning Ashish Rege SEI Session # S307772.

Slides:



Advertisements
Similar presentations
Info to Enterprise Migration Implementation Case Study: SBC Corporation Presented to the Crystal Decisions Regional Users Group for the Bay Area on October.
Advertisements

Implementing Tableau Server in an Enterprise Environment
Instant JChem - current status and what's coming soon. Tim Dudgeon Solutions for Cheminformatics.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10 Servlets and Java Server Pages.
Facebook Part III How to Use the Features of Facebook Patrick Therrien Technology & Education Training Specialist.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
XIr2 Recommended Performance Tuning Andy Erthal BI Practice Manager.
Database Tuning. Objectives Describe the roles associated with database tuning. Describe the dependency between tuning in different development phases.
Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
Copyright © 2011 by the Commonwealth of Pennsylvania. All Rights Reserved. Load Test Report.
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
DENVER INTERNATIONAL AIRPORT FUEL IMPORT INTERFACE
Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
BY LECTURER/ AISHA DAWOOD DW Lab # 3 Overview of Extraction, Transformation, and Loading.
LeadManager™- Internet Marketing Lead Management Solution May, 2009.
Learning the Basics – Lesson 1
17th February, 2000 by Maciej Korzeniowski (CERN-IT-IA-MI) 1 Oracle Discoverer Product Presentation  This is an ad hoc query and analysis tool for.
Chapter 13 The Data Warehouse
Oracle Hyperion Financial Data Quality Management Considerations for a scaled, expedited and integrated approach on data quality NCOAUG – Aug 15, 2008.
Run with PC speaker on for narrative Welcome to the Narrated Guided Tour of Cizer.Net Reporting for Microsoft SQL Server Reporting Services
Database Area Neighborhood (DAN)
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
ManageEngine TM Applications Manager 8 Monitoring Custom Applications.
What is SDM? SDM : Server and Database Monitoring  SDM is the web-based real-time server and database monitoring and reporting tool  Service Items Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
F Fermilab Database Experience in Run II Fermilab Run II Database Requirements Online databases are maintained at each experiment and are critical for.
© 2007 Oracle Corporation – Proprietary and Confidential.
ManageEngine ADAudit Plus A detailed walkthrough.
Simplify your Job – Automatic Storage Management Angelo Session id:
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Easy HTML DB. Michael Cunningham Developer/Database Administrator.
Publish Calendars to the Web. CCUweb Presentation (10 Minutes) 1 Demonstration of published calendars (10 minutes) 2 Demonstration of importing calendar.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Module 10 Administering and Configuring SharePoint Search.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Today’s Agenda Chapter 7 Review for Midterm. Data Transfer Tools DTS (Data Transformation Services) BCP (Bulk Copy Program) BULK INSERT command Other.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
INFSO-RI Enabling Grids for E-sciencE ARDA Experiment Dashboard Ricardo Rocha (ARDA – CERN) on behalf of the Dashboard Team.
ASEMON JEAN-PAUL MARTIN May 2015.
Directory Service Operational Issues Transaction Performance Monitoring at the University of Notre Dame Brendan Bellina, University of Notre Dame.
Library Online Resource Analysis (LORA) System Introduction Electronic information resources and databases have become an essential part of library collections.
Recent Developments in Directories: Performance Monitoring with “Look” Brendan Bellina, University of Notre Dame Spring 2003 Internet2 Member Meeting.
1 A Scalable Distributed Data Management System for ATLAS David Cameron CERN CHEP 2006 Mumbai, India.
Metric Studio Cognos 8 BI. Objectives  In this module, we will examine:  Concepts and Overview  An Introduction to Metric Studio  Cognos 8 BI Integration.
Status of tests in the LCG 3D database testbed Eva Dafonte Pérez LCG Database Deployment and Persistency Workshop.
Michael Mast Senior Architect Applications Technology Oracle Corporation.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
Portal v2.6 Service Pack 1 Update. 2 Portal v2.6 Service Pack 1 6/27/2016 ©2007 GE Fanuc Intelligent Platforms All Rights Reserved Portal v2.6 Service.
Michael Mast Senior Architect
Multi-Farm, Cross-Continent SharePoint Architecture
Oracle Architecture Overview
RAC Performance Lab.
Microsoft Azure Data Catalog
Presentation transcript:

Oracle Grid Computing: Trending for Capacity Planning Ashish Rege SEI Session # S307772

Database Administrators, Sys Administrators are called on everyday to make decisions on capacity planning. –Which database has trended high for CPU, Memory, I/O etc. over the last year, month, week, day versus other databases on the same server? –Do these trends have some unique cyclical patterns based on year, month, week, day for different applications? –Do we see new functionality, additional users, increased concurrency with time? –Do we have the capacity to add one or more database to existing servers? –Where do we re-allocate databases at the next opportunity and where do we see capacity? –Do we need to buy new servers and factor this into next years budget? What DBAs, SYS admins need

Approach and Toolset Top down and Bottom up approach & edge at the this sideways too.. SA-DBA-Middleware cross functional analysis Toolset that can help trend CPU/Memory/Elapsed Time –OS extended stats –OEM repository DB/Host performance metrics –Oracle Services stats –App-DB-Integration-elapsed time/time-out metrics –Apache Logs fact-dimensional model –Batch Job-stream runtime metrics –Business measures e.g. positions, txn counts, tax lots, fees etc Fill in the gaps with data points to construct a complete picture

Requirements summary Database administrators and sys administrators need consolidated data points to provide holistic "Capacity Trend Analysis" from an intraday to multiyear via a web interface for the databases and their host servers from CPU, Memory, I/O, wait bottlenecks, throughput, and efficiencies perspective. Stack up trends for different database per server on the same graph to enable side-by-side comparison and a better awareness of percentage usage by database/application and its alignment with the business cycle. Help trend uptick or downward spiral of business measures and find correlation of those with database and server statistics to model what if analysis end-to-end trending for UI response times Batch jobs Processed Business measures

Now to the details OEM grid captures at a 15 minutes interval, write PERL scripts to transfer this to a trending utility that graphs those on the web with reporting At the grain of intraday to multiyear for performance counters like consumption of CPU, memory, I/O, throughput, efficiency, wait stats etc. for the different databases. Capture metadata into flat files (1) Details per database (2) Comparative numbers across different databases on the same or different servers (3) Supplement the above with details from stats pack

Putting it all together

Reporting Classifications.. Thus the reporting that comes out of the OEM is at two levels –Database statistics –Host statistics, this also includes side-by-side Oracle comparison for databases on that host The above statistics have associated flat files extracted out of OEM to feed this data to Orca/RRDTool to generate the graphs/trend. Have found these graphs very useful in 1.Re-alignment decisions 2.Budget discussions around shared infrastructure resources for different cost centers

Orca/RRD Tool Orca/RRD Tool is a tool useful for plotting arbitrary data from text files onto a directory on a Web server. It has the following features: 1.files into the same or different plots. Creates an HTML tree of HTML and image (PNG or GIF) files. 2.Creates an index of URL links listing all available targets. 3.Creates an index of URL links listing all different plot types. 4.No separate CGI set up required. 5.Can be run under cron or it can sleep itself waiting for file updates based on when the file was last updated. 6.Configuration file based. 7.Reads arbitrarily formatted text or binary data files. 8.Watches data files for updates and sleeps between reads. 9.Finds new files at specified times. 10.Remembers the last modification times for files so they do not have to be reread continuously. 11.Allows arbitrary grouping of data from different sources 12.Allows arbitrary math performed on data read from one file

Orca architecture Out of the box Orca statistics for the host –On clients, orcallator.se, a component of the SE Toolkit, collects data every 5 minutes and dumps the data in orca's home directory. Orcallator.se has a startup script in /etc/init.d. This data is dumped in /home/orca/data/ –A crontab entry for the orca user polls each client every 5 minutes, grabs the current data, and prunes old data. This is done via an SCP from orca's crontab on the server, and is driven by a list of hosts on the orca server at /apps/orca/xfer/hostlist. – scp -r -p -v /apps/orca/orcallator –Orca's crontab on the orca server calls /apps/orca/xfer/pull.sh which processes all files in /apps/orca/xfer/hostlist

Out of box OS performance Statistics The Orca server app which simply checks a directory tree (/apps/orca/orcallator) every five minutes and graphs any new data which has appeared there Then, as orca on the orca server does an ssh to the new client ssh " and when prompted, adds to known hosts, unless this is done for each client added, no data transfer can succeed. Then, add the client to the file /apps/orca/xfer/hostlist. This file contains a list of all clients and is used by the script 'pull.sh', driven by orca's crontab, included here. Orca's crontab also prunes some files on each client. Clients are completely passive, orcallator.se dumps performance data in orca's home directory on each client, the server collects it, processes it. Orca produces HTML files, along with "index.html". A standard Apache server is required to publish the pages. The url for viewing orca is: /orca/

OEM Custom statistics Extract performance data out of OEM repository into flat files, via a custom script running at an hourly frequency. These flat files are dropped into the same directory which Orca checks and processes data from to plot graphs (/apps/orca/orcallator). Thus data is generated right off the Orca server connecting remotely to the OEM repository. Thus any data can be plotted including business measures. It is that simple Using the DBI::Oracle library to query the OEM GRID Repository; joining tables like sysman.MGMT_TARGETS, sysman.MGMT_METRICS, sysman. MGMT_METRICS _1HOUR extracting data out of into files. A timestamp is written to a snapfile that tracks time intervals already queried and reported on; the next run is based on querying the sysman repository table to find snapshots with rollup_timestamp greater than the last run e.g _19:00:00

Quarterly Instance Efficiency

Comparative Quarterly Instance CPU Utilization The sample compares Waits – User CPU, User I/O, Other between different databases GWMPE02, E2L1, E2L2, EC02, ER02 across the DB server seidevdb34 E02 is the max consumer, at times taking 50% or more of CPU compare to other databases which have negligible CPU consumption.

SNAPFILE Snapfile helps to track last extraction time of performance data. pwd /export/home/oracle/orca_oracle/snapfile tail -f.seic.com_Oem_snapid _12:00: _14:00: _16:00: _18:00: _20:00:00 tail -f _OemHost_snapid _12:00: _14:00: _16:00: _18:00: _20:00:00

OEM SQL QUERY HOST & DB PERFORMANCE DATA # Part 1: Decide on beginning and ending snapshots OEM repository query "select min(to_char (d.rollup_timestamp,'YYYY-MM-DD_HH24:MI:SS')) FROM sysman.mgmt_targets tgt, sysman.mgmt_metrics met, sysman.mgmt_metrics_1hour d WHERE lower(tgt.target_name) = lower(?) AND tgt.target_type ='oracle_database' AND tgt.target_guid = d.target_guid AND met.metric_guid = d.metric_guid AND d.rollup_timestamp > to_date(?,'YYYY-MM-DD_HH24:MI:SS') "

OEM SQL QUERY HOST & DB PERFORMANCE DATA # Part 2: Get the latest snapshot and it's time "select min(to_char ( d.rollup_timestamp,'YYYY-MM-DD_HH24:MI:SS' )),max(to_char ( d.rollup_timestamp,'YYYY-MM-DD_HH24:MI:SS' )) FROM sysman.mgmt_targets tgt, sysman.mgmt_metrics met, sysman.mgmt_metrics_1hour d WHERE lower(tgt.target_name) = lower(?) AND tgt.target_type ='oracle_database' AND tgt.target_guid = d.target_guid AND met.metric_guid = d.metric_guid "

OEM SQL QUERY HOST & DB PERFORMANCE DATA # Part 3: Collect the raw values from OEM for DB stats "SELECT DISTINCT met.metric_column,d.key_value,d.value_average : FROM sysman.mgmt_targets tgt, sysman.mgmt_metrics met, sysman.mgmt_metrics_1hour d WHERE lower(tgt.target_name) = lower(?) AND tgt.target_type ='oracle_database' AND tgt.target_guid = d.target_guid AND met.metric_guid = d.metric_guid AND d.rollup_timestamp = to_date(?,'YYYY-MM-DD_HH24:MI:SS') ORDER BY d.rollup_timestamp,met.metric_column"

OEM SQL QUERY HOST & DB PERFORMANCE DATA # Part 4: Collect the raw values from OEM for HOSTS stats "SELECT DISTINCT met.metric_column,d.key_value,d.value_average...FROM sysman.mgmt_targets tgt, sysman.mgmt_metrics met, sysman.mgmt_metrics_1hour d WHERE lower(tgt.target_name) = lower(?) AND tgt.target_type ='host AND tgt.target_guid = d.target_guid AND met.metric_guid = d.metric_guid AND met.metric_column IN ('cpuLoad,'cpuLoad_15min,'cpuLoad_1min,'longestServ,'cpuIOWait,'cpuKernel','cpuUser,'cpuUtil,'memUsedPct,'memfreePct,'swapUtil,'noOfProcs,'noOfUsers,'totIO,'pgS canRate) AND d.rollup_timestamp = to_date(?,'YYYY-MM-DD_HH24:MI:SS')

Orcallator.cfg OEM group group oem { find_files /apps/orca/oem/(.*)/(?:oracle)-\d{4}-\d{2}-\d{2}(?:-\d{3,})?(?:\.(?:Z|gz|bz2))? column_description first_line date_source column_name timestamp interval 3600 filename_compare sub { my ($ay, $am, $ad) = $a =~ /-(\d{4})-(\d\d)-(\d\d)/; my ($by, $bm, $bd) = $b =~ /-(\d{4})-(\d\d)-(\d\d)/; if (my $c = (( $ay $by) || ( $am $bm) || (($ad >> 3) ($bd >> 3)))) { return 2*$c; } $ad $bd; }

Orcallator.cfg SERVER grouping group { find_files /apps/orca/oemhost/( SERVER1)/(?:(?: SERVER1)|(?:percol))-\d{4}-\d{2}-\d{2}-\d{3} column_description first_line date_source column_name timestamp interval 3600 filename_compare sub { my ($ay, $am, $ad) = $a =~ /-(\d{4})-(\d\d)-(\d\d)/; my ($by, $bm, $bd) = $b =~ /-(\d{4})-(\d\d)-(\d\d)/; if (my $c = (( $ay $by) || ( $am $bm) || (($ad >> 3) ($bd >> 3)))) { return 2*$c; } $ad $bd; }

Services trending Service performance in: V$SERVICE_STATS V$SERVICE_EVENT V$SERVICE_WAIT_CLASS V$SERVICEMETRIC V$SERVICEMETRIC_HISTORY

Items Learned in this Session Database administrators and sys administrators need consolidated data points to provide holistic "Capacity analysis" for the databases and their host servers from CPU, Memory, I/O, wait bottlenecks, throughput, and efficiencies perspective. This presentation outlined a methodology that helps with "Capacity Trend Analysis" from an intraday to multiyear via a web interface; the key theme here is the ability to stack up trends for different databases per server on the same graph to enable side-by-side comparison and a better awareness of percentage usage by database/application and its alignment with the business cycle.