Book Image

PostgreSQL 9 High Availability Cookbook

By : Shaun Thomas
Book Image

PostgreSQL 9 High Availability Cookbook

By: Shaun Thomas

Overview of this book

Table of Contents (17 chapters)
PostgreSQL 9 High Availability Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 3. Pooling Resources

In this chapter, we will learn to combine and abstract connectivity to isolate and protect the database. We will cover the following recipes in this chapter:

  • Determining connection costs and limits

  • Installing PgBouncer

  • Configuring PgBouncer safely

  • Connecting to PgBouncer

  • Listing PgBouncer server connections

  • Listing PgBouncer client connections

  • Evaluating PgBouncer pool health

  • Installing pgpool

  • Configuring pgpool for master/slave mode

  • Testing a write query on pgpool

  • Swapping active nodes with pgpool

  • Combining the power of pgBouncer and pgpool