Está en la página 1de 9

[Title: Improve performance and reduce costs with InfoSphere Optim] [Introduction]

In this demo, we will learn how the staff at a fictional organization, the Sample Outdoors Company, uses various InfoSphere Optim tools that are included in the DB2 Advanced Enterprise Server Edition to gain more value from their business-critical applications. We will see how the team: Detects and corrects an emergent database problem, Optimizes storage utilization to increase storage capacity and delay hardware upgrades, Builds performance into a new application right from the start.

[Poor performance translates to high costs]


When eroding performance delays service, customer satisfaction goes down, and so does revenue: Poor performance management results in increased capital expenditures for server CPUs, memory, and disk storage systems. Poor utilization means you buy more hardware sooner to fix the problem or spend even more expensive staff time researching performance issues and resolutions. Performance issues impact employee productivity. Business users lose productivity because systems are not available. Missed service level agreements result in revenue loss due to unresponsive databases and applications. Businesses can face customer churn and revenue losses. Many if not most of the organizations are on a reactive model to performance management, fixing issues as they occur where costs are highest.

To address those performance-related challenges, IBM provides a set of comprehensive tools for optimizing and managing performance across the data environment.

[Improve performance and reduce costs]


This set of tools, included in the DB2 Advanced Enterprise Server Edition, offers a comprehensive, step-by-step approach to improve database and application performance, reduce costs, and foster collaboration across job roles to help IT teams: Quickly identify potential database performance issues Analyze issues to find the root cause of a performance degradation Resolve database and application problems quickly and efficiently with expert recommendations Prevent problems by managing resource allocation according to business priorities, proactively addressing potential performance and storage issues early and by building performance into new applications right from the start.

The following products are included in DB2 Advanced Enterprise Server Edition: InfoSphere Optim Performance Manager InfoSphere Optim Configuration Manager InfoSphere Optim Query Workload Tuner InfoSphere Optim pureQuery Runtime IBM Data Studio

Lets see how these InfoSphere Optim tools help the IT team at the Sample Outdoors Company in various scenarios.

[Scenario 1: Performance]
In our first scenario, Shelly, the DBA, receives a call from a client rep complaining about slow response times from one of the order processing applications.

[Optim Performance Manager EI] Shelly logs into the Optim Performance Manager Web console. In the Extended Insight Analysis dashboard, she looks at the application performance information for the monitored

GSDB database for the last hour. The red flag in the Workload Group field shows that critical thresholds have been exceeded for the periodic order processing application.

With a quick glance at the response time graph, she sees that the response times in the last hour have exceeded both the previously configured critical and warning threshold levels.

Shelly double-clicks the application to get more details. The average end-to-end response time graph shows how much time, on average, is spent in each layer of the application stack and also includes the maximum end-to-end response times. The time distribution graph shows that the majority of time was spent on the data server.

Shelly can also see the most expensive SQL statements by response time. If needed, she can also display the top SQL statements by CPU time, rows read or other criteria.

Then, Shelly decides to tune the entire workload to get consolidated recommendations that balance all the costs, resources, constraints, and weighted improvements across the workload.

[Optim Query Workload Tuner] The SQL statements in the Periodic Order Processing application for the selected time interval are automatically sent to InfoSphere Optim Query Workload Tuner. Shelly creates a workload for these statements, and it is added to the existing workload list.

Next, Shelly invokes the Workload Advisors to start the tuning process.

There are various advisors that can help tune performance. First, Shelly runs the Statistics Workload Advisor that analyzes the statistics available for the objects related to the SQL statements in the workload and provides statistics recommendations that apply to the entire workload. In this example, the statistics are current and there are no recommendations from the advisor.

Next, Shelly runs the Workload Index Advisor and looks at its recommendations. 3

Shelly can see that if the recommended indexes are created, the performance will improve by the estimated 99 percent, and that a half megabyte of disk space is needed. There are 2 indexes recommended for the CUSTOMER ORDER HEADER table. She can see the SQL statements affected by each index along with estimated performance benefit.

She evaluates which existing indexes are used for the workload. She can also examine the list of indexes chosen by the optimizer and pruned by the advisor with explanations why they are not recommended.

Finally, Shelly reviews the DDL for creating the indexes, saves it for a team review and then schedules an appropriate time to run it.

With the help of InfoSphere Optim tools, Shelly is able to quickly identify, diagnose and solve the performance problem.

[Scenario 2: Storage]
As business at the Sample Outdoors Company is growing with more customers and more transactions, the databases keep increasing in size and require more storage. But since the company needs to cut costs, the IT team must delay hardware upgrades. In the next scenario, we will see how Shelly uses InfoSphere Optim Configuration Manager to discover some storage savings by reclaiming unused storage, compressing data, and identifying rarely used objects for archiving or deletion.

[Transition] While looking at the System Health Summary panel of InfoSphere Optim Performance Manager, Shelly notices a yellow flag for the GSDB database storage. She drills down to see when the warning threshold has been reached and notes the database capacity information.

[Transition to show OPM Disk Space Consumption report]

Shelly looks at the disk space consumption report to analyze the trends in storage growth rates to see how quickly the storage is growing.

Shelly decides to use InfoSphere Optim Configuration Manager to identify opportunities to optimize storage consumption to slow down the growth.

[Transition to OCM] In the Storage Configuration tab, Shelly examines the storage report that is periodically generated for the database. The top grid shows the total estimated savings for reclaiming, the static and adaptive compression savings, and the last time that the database was used.

The Reclaimed Storage grid lists the tables and indexes with trapped storage that can be reclaimed by a REORG. Storage space generally gets trapped when rows are deleted or their size is altered. The Compression grid lists the tables and indexes that can benefit from compression. The objects are ranked by the estimated compression savings.

Shelly can schedule a job to do a REORG.

In this example, as the database is at version 10, Shelly can see the estimates for adaptive compression in addition to the static compression.

Shelly can also analyze the seldom used objects tab, where the objects are ranked by the frequency of use. Shelly can schedule jobs to drop or archive any rarely used objects.

In this example, Shelly was able to identify opportunities to recover enough disk space to slow down storage growth, delay hardware upgrades, and improve query performance due to a smaller footprint.

[Scenario 3: Data Studio]


In the next scenario, the Sample Outdoors Company is implementing a new application to support their growing business partner relationships. Roslyn, the application developer, and Eric, the DBA, are working on the new application. They have decided to develop the project using IBM Data Studio and InfoSphere Optim pureQuery Runtime that can help them collaborate on performance considerations earlier in the cycle where it is cheaper and less disruptive to find and correct potential errors.

Lets see how IBM Data Studio and InfoSphere Optim pureQuery Runtime give them unique performance insights and build in best practices for their application.

[IBM Data Studio/pureQuery Runtime] Roslyn quickly develops a new application by using the provided SQL-aware editor that supports semantic and syntactic error checking and content assist capabilities.

Using the pureQuery API, not only does Roslyn complete her work in half the time it normally takes her to code the JDBC herself, but she is also using best practices like workload batching and parameter marker usage.

After Roslyn has finalized the application, she needs to optimize its performance.

There are 3 different types of performance data in SQL Outline that can be analyzed for tuning.

[Performance Analysis using EXPLAIN] The first type of performance data comes from the built-in DB2 EXPLAIN. This data can be sorted to identify costly SQL statements estimated by the optimizer without running the statements.

[Performance Analysis using actual elapsed time metrics] The second type of performance data is the actual elapsed time information that is collected when the application is run in the IBM Data Studio workbench. Here, after the application 6

workload is run, Roslyn can examine the performance data and quickly identify the SQL statements that are most frequently run or have the longest elapsed times.

[Performance analysis with data from OPM] Once Roslyn promotes the application to their test environment; she shares the SQL with Eric. Here he can see just the SQL accessing the application rather than having to wade through the Java code. Then, when QA tests the application, the performance metrics are captured with Optim Performance Manager.

Eric uses the third performance view in IBM Data Studio to see the metrics to have more insights into the performance details such as total data server time, network time, CPU time, rows read and returned, and so forth. He uses InfoSphere Optim Query Workload Tuner to validate his index design and evaluate other indexing options with the virtual index support.

For every SQL statement shown in any type of performance view, Roslyn or Eric can run one of the available tasks such as tuning the SQL with InfoSphere Optim Query Workload Tuner.

[Problem diagnosis] As Eric works with the performance team to drive out scalability and performance issues, he reviews the highest cost SQL and sends Roslyn some recommendations from InfoSphere Optim Query Tuner on how to rewrite it. Using InfoSphere Optim Performance Manager he can pinpoint the exact line of code where the SQL is executed, making it easy for Roslyn and him to quickly make progress. This metadata, collected during development and shared with InfoSphere Optim Performance Manager, will continue to speed up problem diagnosis and resolution after the application is deployed to production.

[Lock down access] After the application is developed, tested, and tuned, Roslyn works together with Eric to bind it for static execution to lock down database access before deployment. This way not only is the access plan locked for consistent performance, but also the SQL that can come into the database is locked down to mitigate any SQL injection risks. 7

[Summary]
We have seen how the various InfoSphere Optim tools have helped DBAs and application developers at the Sample Outdoors Company to: Meet Service Level Agreements by: o Monitoring key performance indicators and getting early warning of emerging problems, o Quickly isolating and resolving problems, optimizing application and system performance with expert recommendations; Reduce costs by: o Increasing performance and storage capacity of existing systems and fixing errors earlier in the application development cycle, o Saving staff time, improving productivity and agile collaboration across team roles with expert-level tooling for development and performance tuning throughout the application cycle.

[Summary for tools]


The following products are included in DB2 Advanced Enterprise Server Edition:

InfoSphere Optim Performance Manager provides seamless analysis of performance data from real time to any point in time and helps you: o Align database management and monitoring with business priorities, o Maintain service level objectives by getting proactive notification of potential problems, o Save staff time and get faster diagnosis using interactive dashboards that make it easy to see where transactions are spending their time, compare current metrics to prior points, and view recent trends, o Move from a reactive to a proactive performance management model based on trend analysis and capacity planning.

InfoSphere Optim Configuration Manager helps DBAs and other IT staff: 8

o Get insight into IT deployment by exploring data client and data server configurations and relationships, o Reduce database outages and enforce compliance with centralized control and analysis of distributed database access, o Monitor configuration changes that might relate to a performance degradation, o Improve system storage utilization by compressing data and migrating data to different types of storage based on the frequency of usage.

InfoSphere Optim Query Workload Tuner helps you o Improve application performance with actionable, expert recommendations for statistics, statistical views, indexes, materialized query tables, and multidimensional clustering, o Reduce specialized skills requirements, so more staff can contribute to performance improvement, o Balance costs by considering and tuning for the entire workload.

InfoSphere Optim pureQuery Runtime and IBM Data Studio can help you to: Maximize and simplify collaboration across job roles, Speed up new application development and deployment, Improve application throughput and mitigate security risks.

By leveraging these InfoSphere Optim tools, you can take charge of your data environment, maximizing DB2 performance while lowering the total cost of ownership of your DB2 implementation.

[Resources]
For more information about DB2 Advanced Enterprise Server Edition and the related InfoSphere Optim offerings, visit us on the web at the links shown here.

También podría gustarte