Configuring EDB PgBouncer for BigAnimal

EDB PgBouncer is a lightweight connection pooling utility that you can use to more quickly connect to your BigAnimal cluster. It saves you time by pooling previously established connections to your server. Instead of connecting directly to your server, EDB PgBouncer negotiates your connections for you.

Perform these steps to configure EDB PgBouncer with your BigAnimal cluster.

Update the EDB PgBouncer configuration file

To install EDB PgBouncer, see Installing EDB PgBouncer.

Navigate to your BigAnimal cluster connection information:

  1. Open BigAnimal.

  2. Go to Clusters > Connect.

  3. Under Connection Info, find your cluster connection information. The following table is an example of connection information:

    Information fieldValue
    Service URIpostgres://

Configure EDB PgBouncer according to the connection information:

  1. Update the PgBouncer configuration file /etc/pgbouncer/pgbouncer.ini:

    [database name] = host=<Host>
    # Enter * to listen on all addresses:
    # Enter the port to listen on:
    # Enter your setting for authenticating users:
    # Enter the file that contains the list of usernames and passwords:
  2. Add your cluster username and password to the auth_file, located in /etc/pgbouncer/ by default. For example:

       "user1" "password1"

    The default username is in the User field in BigAnimal. The password is the same you set when configuring the cluster.

For more information, see Configuring EDB PgBouncer.

Connect to the BigAnimal cluster

For the next steps, you need psql or another database client installed. See Connecting to your cluster for more information.

  1. Connect to the remote EDB PgBouncer service according to your cluster connection information with the command:

    psql -h <Host> -p <listen_port> -U <User> <database name>
  2. Enter the password for the database user.

  3. EDB PgBouncer attempts to connect to your BigAnimal cluster.