PgBouncer service actions

This article describes the actions available for the PgBouncer service in the ADCM web interface.

Install

Installs the PgBouncer service. This action is available only if a service has been added but not yet installed.

IMPORTANT

Depending on where you install PgBouncer, the pg_hba rules required to enable connections to ADB via PgBouncer can differ. For more details, refer to the Allow PgBouncer connections section in the PgBouncer configuration parameters.

Add/Remove

Opens the component-host mapping interface where you can add and remove PgBouncer on the selected hosts.

The Add/Remove window
The Add/Remove window
IMPORTANT

If PgBouncer is installed on the master host and you activate the standby master (using the Activate standby cluster action), then remove PgBouncer from the former master using the Add/Remove action. After completing this action, run the Reconfigure action of the PgBouncer service.

Manage

Allows you to run PgBouncer commands from the ADCM web interface. Starting with ADB 6.32.0, the action is performed via the ADCM Wizard component.

In the Manage window that opens, perform the following steps:

  1. In the Select command step, use the Command list to select a command to run and then click Next step.

    The Manage window, step 1.1
    The Manage window, step 1.1
  2. In the Configure targets step, configure the following parameters:

    • PgBouncer hosts: the hosts on which you want to run PgBouncer commands. Only hosts with the PgBouncer service can be used. By default, all cluster hosts that contain the PgBouncer service are selected. You can remove hosts from the list if you don’t want the command to run on some of them.

    • Database name: the name of a target database. Specifying a database name is required for the ENABLE and DISABLE commands and is optional for the PAUSE, RECONNECT, KILL, RESUME, and WAIT_CLOSE commands (if no database is provided for these commands, the command is executed on all databases). This field is not available for the SHUTDOWN or RELOAD command because these commands apply to the entire service.

      The Manage window, step 1.2
      The Manage window, step 1.2
  3. In the Preparing for running step, click Run to launch the action.

    The Manage window, step 2.1
    The Manage window, step 2.1

Reconfigure

Updates the service configuration according to the configuration settings.

During the Reconfigure action, after updating the configuration files, the PgBouncer RELOAD command is executed to apply the settings. The settings will be applied to new connections. Existing connections with the previous parameters will be closed when they are released (according to the pooling mode as defined by the Pool mode parameter in the PgBouncer configuration settings).

The PgBouncer configuration files are stored in /etc/pgbouncer on the host where PgBouncer is installed.

NOTE

The PgBouncer service uses some of the ADB service settings (such as SSL, LDAP, and pg_hba.conf). If you run the Reload or Restart action of the ADB service with the Apply configs from ADCM option selected, run the Reconfigure action of the PgBouncer service to apply the changes from ADB. Until the action is run, the PgBouncer service shows a non-blocking concern reminding you to do so.

Reinstall

Reinstalls the PgBouncer service.

Start

Starts the PgBouncer service.

Stop

Stops the PgBouncer service.

Uninstall

Uninstalls the PgBouncer service.

Found a mistake? Seleсt text and press Ctrl+Enter to report it