Intro.to.pem webinar.slides-061913

42
1 EnterpriseDB, Postgres Plus and Dynatune are trademarks of EnterpriseDB Corporation. Other names may be trademarks of their respective owners. © 2010. All rights reserved. Leveraging Postgres Enterprise Manager An Introduction to Postgres Enterprise Manager for DBAs and Developers June 2013

description

During the presentation, Gary Carter, Director of Product Marketing described the differences between EnterpriseDB’s Postgres Enterprise Manager and PGAdmin, as well as the benefits and features of PEM for DBAs and Developers. The key points covered during the presentation were: • Key Postgres best practices – before and after PEM • Alarm/alert management for DBAs • How to leverage PEM for distributed team views and access • Tools for tuning in Enterprise Manager • Alarm/alert management for DBAs • An overview of PEMs trial download and subscriptions To hear the recording please visit - http://www.enterprisedb.com/resources-community/webcasts-podcasts-videos/webcasts/leveraging-pem-monitor-manage-and-tune

Transcript of Intro.to.pem webinar.slides-061913

Page 1: Intro.to.pem webinar.slides-061913

1 EnterpriseDB, Postgres Plus and Dynatune are trademarks of EnterpriseDB Corporation. Other names may be trademarks of their respective owners. © 2010. All rights reserved.

Leveraging Postgres Enterprise Manager!

An Introduction to Postgres Enterprise Manager for DBAs and Developers

June 2013

Page 2: Intro.to.pem webinar.slides-061913

2 © 2013 EnterpriseDB. All rights reserved.

Who is EnterpriseDB?!

Page 3: Intro.to.pem webinar.slides-061913

3

u  Provide  support,  services,  training,  management  tools  and  high-­‐level  features  needed  for  enterprises  to  take  full  advantage  of  the  cost  and  performance  benefits  available  with  Postgres  databases  

u  130+  employees  u  2,000+  customers  across  all  market  segments  u  Global  presence  with  offices  in  North  America;  Europe;  India;  and  

Japan  u  Fast  growing:  experienced  60%  YOY  sales  growth  in  2012  u  Strong  financial  backing:  

© 2013 EnterpriseDB. All rights reserved.

Page 4: Intro.to.pem webinar.slides-061913

EnterpriseDB Business Focus!

4 © 2013 EnterpriseDB. All rights reserved.

PostgreSQL Support

Services and

Training

Postgres Plus Advanced Server

Postgres Plus Cloud

Database

Postgres Plus Tools

Enterprise Support

Remote DBA

Page 5: Intro.to.pem webinar.slides-061913

Postgres Enterprise Manager!u  Community PostgreSQL

5 © 2013 EnterpriseDB. All rights reserved.

u  EnterpriseDB Postgres Plus Advanced Server!

An EnterpriseDB tool for DBAs and Developers to manage, monitor, and tune

large Postgres deployments en masse.

Page 6: Intro.to.pem webinar.slides-061913

Manage means...!u  Add, change, delete and view database objects

•  Server languages, triggers, stored procedures, functions, operators!•  Postgres clusters, Schemas, Databases, Tables, Views, row data!•  Columns, constraints, indexes, sequences!•  Roles, Users, Rules!

u  Routine DB Maintenance •  Edit configuration files!•  Auto-vacuum Management!•  Log file Browser!•  Lock viewer!•  Server Status!•  Execute SQL!•  Scheduling jobs!

6 © 2013 EnterpriseDB. All rights reserved.

Page 7: Intro.to.pem webinar.slides-061913

Monitor means...!u  Performance Management (database and OS statistics)

u  Capacity Management

u  Configuration Management

u  Alerts Management u  Team Management

u  Log Management

7 © 2013 EnterpriseDB. All rights reserved.

Page 8: Intro.to.pem webinar.slides-061913

Tune means...!u  Editing Parameter Configurations

u  Profiling SQL workloads by inspecting SQL workloads to finding slow running queries in need of improved performance

u  Debugging and re-writing queries

u  Creating new new indexes

8 © 2013 EnterpriseDB. All rights reserved.

Page 9: Intro.to.pem webinar.slides-061913

9 © 2013 EnterpriseDB. All rights reserved.

What is Postgres Enterprise Manager (PEM)?!

An EnterpriseDB tool for DBAs and Developers to monitor, manage, and tune

large Postgres deployments en masse!

It’s the only solution of its kind for PostgreSQL!

Page 10: Intro.to.pem webinar.slides-061913

10 © 2013 EnterpriseDB. All rights reserved.

u  Distributed Architecture •  Specialized components: Server, Client and Agents!•  Efficient low impact processing that is scalable!

u  Pre-configured customizable settings •  Works right out of the box!•  You are immediately productive!

u  Automatic Bulk Operations Across Multiple Servers •  Eliminates repetitive work!•  Tasks are performed faster and consistently across the infrastructure!

u  Centralized Data Store •  Automatic data gathering into a database for easy manipulation of data!•  Easier consolidated reporting/views and historical analysis!

!

Designed for Large Scale Deployments!

Page 11: Intro.to.pem webinar.slides-061913

11 © 2013 EnterpriseDB. All rights reserved.

u  Multiple pre-configured views over data with drill down features •  Analyze multiple servers from different data perspectives!•  Faster root cause determination!

u  Centralized Work Console •  One place for all database related activities: managing, monitoring, tuning!•  Less context switching tools maintenance is more efficient & scalable style of work!

u  Results: One DBA can easily manage many more database servers!

•  DBAs are happier!•  Organizations' have reduced expense!•  Organization have better control and efficiency in their database infrastructure!

Designed for Large Scale Deployments!

Page 12: Intro.to.pem webinar.slides-061913

u  Enterprise Manager Agent •  Installed on each managed machine; collects data on OS and databases!

u  Enterprise Manager Server •  Centralized storage for agent collected data and client dashboards !

u  Enterprise Manager Clients •  User GUI console with global at-a-glance monitoring dashboards and used to

carry out centralized database administration and tuning!•  Fat client and web client!

u  An efficient distributed architecture perfectly suited for large numbers of PostgreSQL servers in multiple locations

Postgres Enterprise Manager components!

12 © 2013 EnterpriseDB. All rights reserved.

Page 13: Intro.to.pem webinar.slides-061913

PEM Distributed Architecture!

13 © 2013 EnterpriseDB. All rights reserved.

Monitoring Data

Monitoring Data

Enterprise Management Connections

Database Management Connection

Database Management Connection

PEM Clients Unmanaged Hosts

PEM Server

Managed Hosts (PEM Agents)

Page 14: Intro.to.pem webinar.slides-061913

14 © 2013 EnterpriseDB. All rights reserved.

PEM Designed for 2 types of Users!

u  Features for DBAs •  Performance Management!•  Capacity Management!•  Configuration Management!•  Alerts Management!•  Team Management!•  Log Management!

u  Features for Developers •  View over all database objects!•  Optimizing Parameter configurations!•  Server Side Debugging of Triggers

and Stored Procedures!•  Performance Management!

Page 15: Intro.to.pem webinar.slides-061913

Performance Management!

15 © 2013 EnterpriseDB. All rights reserved.

Page 16: Intro.to.pem webinar.slides-061913

Performance Management!

16 © 2013 EnterpriseDB. All rights reserved.

Global Overview

Page 17: Intro.to.pem webinar.slides-061913

17 © 2013 EnterpriseDB. All rights reserved.

Performance Management!

Page 18: Intro.to.pem webinar.slides-061913

u  Without PEM: •  Manual gathering of statistics by hand, scripts, and tools!•  Creating spreadsheets and formulas!•  Creating charts and graphs for historical trends and future !

u  Results: Unpredictable forecasting results in poor performance, rushed and costly upgrades outside of general data center plans.

18 © 2013 EnterpriseDB. All rights reserved.

Capacity Planning & Forecasting!

Page 19: Intro.to.pem webinar.slides-061913

u  With PEM:

u  Allows early planning to lower costs, reduce maintenance windows,

avoid performance or downtime issues

19 © 2013 EnterpriseDB. All rights reserved.

Capacity Planning & Forecasting!

Page 20: Intro.to.pem webinar.slides-061913

u  Automatic collection of desired performance statistics u  Customized selections of what metrics to analyze u  Historical trend analysis over specified periods of time u  Future forecasting of resource consumption and usage u  Custom reports containing both graphical and tabular data

20 © 2013 EnterpriseDB. All rights reserved.

Capacity Planning & Forecasting!

Page 21: Intro.to.pem webinar.slides-061913

u  Before PEM:

u  No commitment to response times u  No commitment that the appropriate experts will respond u  Lacks complete knowledge of your database

21 © 2013 EnterpriseDB. All rights reserved.

Parameter Configuration Management!

Community mail lists and other users

Page 22: Intro.to.pem webinar.slides-061913

u  With PEM

u  Response in seconds based on knowledgebase derived PostgreSQL expertise

u  Based on knowledge of your specific database

22 © 2013 EnterpriseDB. All rights reserved.

Parameter Configuration Management!

Postgres Expert

Page 23: Intro.to.pem webinar.slides-061913

23 © 2013 EnterpriseDB. All rights reserved.

Alert Management!u  Without PEM:

u  Generic solutions not tailored to PostgreSQL u  Inefficient: each alert requires a different query to be executed u  Requires complex manual configuration, hand-written scripts to

gather required data, integration with other tools u  Complicated environment and more skills to learn

Page 24: Intro.to.pem webinar.slides-061913

Alert Management!

24 © 2013 EnterpriseDB. All rights reserved.

u  With PEM:

u  Tailored solution out-of-the-box designed by PostgreSQL experts u  PEM separates data collection and alerting and does both efficiently to

minimize impact on the monitored system and the PEM server u  Easily customizable and efficient

Page 25: Intro.to.pem webinar.slides-061913

Team Support!

25 © 2013 EnterpriseDB. All rights reserved.

Dev-1 Dev-2 Test-1 Test-2 NA-1 NA-2 EU-1 Test-3 SA-1

Developer Sue

Region DBA Jim

Headquarter DBA Mike

Region DBA Mary

Developer Rachel

? ? ? ? ?

u  Without PEM:

Page 26: Intro.to.pem webinar.slides-061913

Team Support!

26 © 2013 EnterpriseDB. All rights reserved.

u  With PEM Team Support:

Page 27: Intro.to.pem webinar.slides-061913

Log Management!u  Without PEM

•  Write scripts to edit configuration files!•  Test scripts!•  Update scripts!•  Update each server manually!•  Write scripts to consolidate logs ! for easy review!•  Test and update!•  Repeated logins!

© 2013 EnterpriseDB. All rights reserved.

Page 28: Intro.to.pem webinar.slides-061913

Log Management!u  With PEM Log Manager

•  Fast Wizard-based specification and deployment!•  Instant Consolidated Log views!

© 2013 EnterpriseDB. All rights reserved.

Page 29: Intro.to.pem webinar.slides-061913

PEM for Developers!u  Parameter Configuration

u  Stored Procedure and Trigger Debugging

u  SQL Performance Management – SQL Profiler

u  SQL Performance Management – Index Advisor

29 © 2013 EnterpriseDB. All rights reserved.

Page 30: Intro.to.pem webinar.slides-061913

Parameter Configuration!u  Without PEM

30 © 2013 EnterpriseDB. All rights reserved.

Page 31: Intro.to.pem webinar.slides-061913

Parameter Configurations - Postgres Expert !

31 © 2013 EnterpriseDB. All rights reserved.

u  With PEM Postgres Expert

Page 32: Intro.to.pem webinar.slides-061913

Parameter Configurations - Postgres Expert !

32 © 2013 EnterpriseDB. All rights reserved.

Page 33: Intro.to.pem webinar.slides-061913

Stored Procedure / Trigger Debugging!

33 © 2013 EnterpriseDB. All rights reserved.

Page 34: Intro.to.pem webinar.slides-061913

34 © 2013 EnterpriseDB. All rights reserved.

u  Number one cause of most database problems is poorly optimized SQL code

u  Postgres Enterprise Manager provides multiple tools:

•  SQL Profiler captures a SQL workload over time to locate your slowest running SQL queries!

•  Query Metrics view shows a query’s performance in relation to other SQL in a captured workload!

•  Index Advisor suggests and/or implements new indexes on tables based on queries you run against the table!

SQL Performance Management!

Page 35: Intro.to.pem webinar.slides-061913

u  Without SQL Profiler:

u  Set config parameter to log long-running queries + server log scraping + pgFouine report…then re-run top queries using EXPLAIN; a slow manual process to find problem queries and interpret results; difficult using multiple tools

35 © 2013 EnterpriseDB. All rights reserved.

SQL Profiler!

Page 36: Intro.to.pem webinar.slides-061913

36 © 2013 EnterpriseDB. All rights reserved.

Duration: 122 seconds

u  With SQL Profiler:

u  Manual or scheduled SQL captures by user or database, with sorting and filtering of key performance metrics results.

SQL Profiler!

Page 37: Intro.to.pem webinar.slides-061913

37 © 2013 EnterpriseDB. All rights reserved.

u  With SQL Profiler:

u  Customized views of performance statistics of interest.

SQL Profiler!

Page 38: Intro.to.pem webinar.slides-061913

38 © 2013 EnterpriseDB. All rights reserved.

u  Trace Metrics compare individual queries against the entire trace:

u  Individual Query statistics within the context of multiple queries run during the trace.

SQL Profiler!

Page 39: Intro.to.pem webinar.slides-061913

Index Advisor!u  Integrated to work with the SQL Profiler u  Suggests new indexes if the query can be improved

u  Provides the SQL syntax for adding the new index to a table u  Will optionally add the index for you on request

39 © 2013 EnterpriseDB. All rights reserved.

Page 40: Intro.to.pem webinar.slides-061913

40 © 2013 EnterpriseDB. All rights reserved.

In Summary...!

u  Features for DBAs •  Managing database objects!•  Routine Maintenance!•  Performance Management!•  Capacity Management!•  Configuration Management!•  Alerts Management!•  Team Management!•  Log Management!

u  Features for Developers •  View over all database objects!•  Optimizing Parameter configurations!•  Server Side Debugging of Triggers

and Stored Procedures!•  SQL Profiler!•  Queries Metrics View!•  Index Advisor!

An Enterprise class tool for DBAs and Developers to manage, monitor, and tune

large Postgres deployments en masse.

Page 41: Intro.to.pem webinar.slides-061913

41 © 2013 EnterpriseDB. All rights reserved.

u  www.enterprisedb.com/postgres-enterprise-manager

u  Downloads •  Detailed Installation Guide!

u  Documentation •  Installed with and integrated into the PEM Client console!

u  Videos •  Architectural Overview!•  SQL Profiler!•  Capacity Manager!•  Installation!

u  White Paper: Effectively Managing Postgres in the Enterprise

How can I learn more about PEM?!

Page 42: Intro.to.pem webinar.slides-061913

42 © 2013 EnterpriseDB. All rights reserved.

u  What versions of PostgreSQL and Postgres Plus can be managed by Postgres Enterprise Manager Agent? •  PostgreSQL versions 8.2 and higher!•  Postgres Plus Advanced Server versions 8.3r2 and higher!•  OS: Linux32/64, Windows and Solaris (x86 and SPARC)!

u  If PEM is built on pgAdmin, is it open source software too? •  No. PEM is EnterpriseDB intellectual property including the combined pgAdmin

functionality.!•  pgAdmin is distributed under a “PostgreSQL License” which allows EnterpriseDB

to do this.!

u  What OS platforms does the Client support? •  Linux, Windows, HP-UX servers and!•  Windows and Linux clients!!!

Q & A!