18
© 2014 EnterpriseDB Corporation. All rights reserved. 1 Tapping Into New Postgres Resources with Remote DBAs David Thomas | 3.27.2014

Tapping into New Postgres Resources with Remote DBAs

Embed Size (px)

DESCRIPTION

Review this presentation to learn how EnterpriseDB’s RemoteDBA services can support your database infrastructure, and also discover a few tips and tricks to overcoming some of the obstacles you may be facing today. Contact [email protected] for a personal overview.

Citation preview

Page 1: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 1

Tapping Into New Postgres Resources with Remote DBAs •  David Thomas | 3.27.2014

Page 2: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 2

•  EDB and Me •  Key Areas for Remote DBA

•  Monitoring

•  Backups •  Performance Tuning •  Security Audits

•  Upgrades •  Capacity Planning •  EDB Resources

Agenda

Page 3: Tapping into New Postgres Resources with Remote DBAs

© 2013 EDB All rights reserved 8.1. 3

Introduction: EDB & Me (David)

Page 4: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 4

POSTGRES innovation

ENTERPRISE reliability

24/7 support

Services & training

Enterprise-class features & tools

Indemnification

Product road-map

Control

Thousands of developers

Fast development

cycles

Low cost

No vendor lock-in

Advanced features

Enabling commercial adoption of Postgres

Page 5: Tapping into New Postgres Resources with Remote DBAs

© 2013 EDB All rights reserved 8.1. 5

Best Practices

Page 6: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 6

•  Monitoring •  Backups •  Performance Tuning

•  Security •  Upgrades •  Capacity Planning

Key areas of a remote DBA service

Page 7: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 7

•  Monitored 24x7 •  How to monitor

−  Realtime alerts −  Historical reports

•  What to monitor −  Table and index bloat

reports −  Replication lag −  Idle connections −  Idle in transaction connections

Monitoring

Page 8: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 8

•  How to backup −  Logical backups (pg_dump) −  Filesystem backup −  On-line backup

− Point in Time Recovery (PITR)

•  Data retention policy

•  Testing restore procedure

Backups

Page 9: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 9

•  Architecture Health Check (AHC) •  Optimizing memory usage

−  Adjusting shared_buffers −  work_mem * max_connections

•  vm.dirty_bytes and vm.dirty_background_bytes

•  Understanding the storage −  effective_io_concurrency

•  Identifying problem queries using pgbadger

Performance Tuning

Page 10: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 10

•  Examine pg_hba.conf for proper settings based on environment

•  Ensure software is up to date

•  Restrict access to configuration files

•  Disallow host system login by the database super user

•  No sharing of credentials •  Only grant permissions that are needed, no more

Security Audit

Page 11: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 11

•  Planning for system downtime −  Involving multiple teams

•  Fail over to standby machines −  Test upgrade on replica server first −  How to fail back?

•  Assisting in actual upgrade process

Upgrades

Page 12: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 12

•  Quarterly planning meetings −  Planned features in PostgreSQL

•  Advise on expanding system −  Hardware upgrades −  Software upgrades −  Clustering

Capacity Planning

Page 13: Tapping into New Postgres Resources with Remote DBAs

© 2013 EDB All rights reserved 8.1. 13

How EDB Can Help

Page 14: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 14

Why EDB for Remote DBA?

•  EDB is the world wide leader on Postgres −  Database development expertise −  Deep technical knowledge of Postgres internals −  PostgreSQL experts on staff: community leaders, committers and contributors −  Key member of the Postgres community

•  EDB is the world wide leader for best practices −  Experience in large enterprises and mission critical systems −  Actively engaged in many Fortune 500 and Global 1000 corporations −  Deployments across all industry types −  Worldwide leader in Postgres Training

14 © 2013 EnterpriseDB. All rights reserved.

Page 15: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 15

Architectural Health Check

•  The Architectural Health Check (AHC) looks at: −  Operating system"−  Hardware configuration"−  Database settings"−  Backup strategies"−  General database practices"−  Upgrade requirements"−  High Availability options"

•  The AHC identifies −  Short term opportunities"−  Strategic opportunities"

•  In a collaborative session, the RDBA Team and the customer review the AHC and develop the go-forward plan

Page 16: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 16

Customized to Meet Your Needs

16 © 2013 EnterpriseDB. All rights reserved.

World-class service from the world’s best Postgres Company

Basic Service 24/7 Monitoring Premium Service

PEACE OF MIND STAFF AUGMENTATION FULL-SERVICE EXPERTISE •  24 x 7 real time monitoring •  Key parameters for database,

host and OS •  E-mail alerts •  Identify problems before they

impact operations

•  Lowest cost option

•  24 x 7 monitoring, plus: •  1-time remote AHC service •  Weekly status reports •  Monthly review meetings •  Monthly back-up verifications •  Patch & Maintenance

updates •  Emergency restoration

•  Allows in-house DBA’s to focus on mission-critical tasks

•  Basic service, plus: •  Annual remote AHC service •  Best-practice advice •  Architectural assistance •  Replication set-up & PITR set-up •  Dev/test system setup •  OS tuning & parameter advice •  Assigned technical lead

•  Perfect for transitioning to Postgres, knowledge transfer, or long-term outsourcing

Page 17: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 17

David Thomas [email protected]

Let me know if I can help…

© 2013 EnterpriseDB. Privileged and Confidential. All rights reserved.

Page 18: Tapping into New Postgres Resources with Remote DBAs

© 2014 EnterpriseDB Corporation. All rights reserved. 18