- Create a PostgreSQL cluster that stays online even when disaster strikes
- Avoid costly downtime and data loss that can ruin your business
- Perform data replication and monitor your data with hands-on industry-driven recipes and detailed step-by-step explanations
PostgreSQL, often known as simply "Postgres", is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance.
From hardware selection to software stacks and horizontal scalability, this book will help you build a versatile PostgreSQL cluster that will survive crashes, resist data corruption, and grow smoothly with customer demand. We start with selecting the necessary hardware to handle multiple failure scenarios with redundancy. Then, we discuss how to automate and visualize these checks with Nagios, check_mk, and Graphite. We'll finally round off by tackling the complex problem of data scalability.
What you will learn from this book
- Protect your data with PostgreSQL replication and management tools such as Slony, Bucardo, and Londiste
- Choose the correct hardware for redundancy and scale
- Prepare for catastrophes and prevent them before they happen
- Reduce database resource contention with connection pooling
- Automate monitoring and alerts to visualize cluster activity using Nagios and collectd
- Construct a robust software stack that can detect and fix outages
- Design a scalable schema architecture to handle billions of queries
A comprehensive series of dependable recipes to design, build, and implement a PostgreSQL server architecture free of common pitfalls that can operate for years to come. Each chapter is packed with instructions and examples to simplify even highly complex database operations.
Who this book is written for
If you are a PostgreSQL DBA working on Linux systems who want a database that never gives up, this book is for you. If you've ever experienced a database outage, restored from a backup, spent hours trying to repair a malfunctioning cluster, or simply want to guarantee system stability, this book is definitely for you.
Table of Contents
Chapter 1. Hardware Planning
Chapter 2. Handling and Avoiding Downtime
Chapter 3. Pooling Resources
Chapter 4. Troubleshooting
Chapter 5. Monitoring
Chapter 6. Replication
Chapter 7. Replication Management Tools
Chapter 8. Advanced Stack
Chapter 9. Cluster Control
Chapter 10. Data Distribution