Weitere ähnliche Inhalte Ähnlich wie Intro.to.pem webinar.slides-061913 (20) Kürzlich hochgeladen (20) Intro.to.pem webinar.slides-0619131. 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
3. 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.
4. 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
5. 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.
6. 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.
7. 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.
8. 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.
9. 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!
10. 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!
11. 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!
12. 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.
13. PEM Distributed Architecture!
13© 2013 EnterpriseDB. All rights reserved.
Monitoring Data
Monitoring Data
Enterprise Management
Connections
Database Management
Connection
Database
Management
Connection
PEM ClientsUnmanaged Hosts
PEM Server
Managed Hosts
(PEM Agents)
14. 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!
18. 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!
19. 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!
20. 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!
21. 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
22. 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
23. 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
24. 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
25. Team Support!
25© 2013 EnterpriseDB. All rights reserved.
Dev-1 Dev-2 Test-1 Test-2NA-1 NA-2EU-1 Test-3SA-1
Developer
Sue
Region DBA
Jim
Headquarter
DBA Mike
Region DBA
Mary
Developer
Rachel
? ? ? ? ?
u Without PEM:
27. 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.
28. Log Management!
u With PEM Log Manager
• Fast Wizard-based specification and deployment!
• Instant Consolidated Log views!
© 2013 EnterpriseDB. All rights reserved.
29. 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.
34. 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!
35. 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!
36. 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!
37. 37© 2013 EnterpriseDB. All rights reserved.
u With SQL Profiler:
u Customized views of performance statistics of interest.
SQL Profiler!
38. 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!
39. 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.
40. 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.
41. 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?!
42. 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!