Top
Enterprise Postgres 17 Cluster Operation Guide(Database Multiplexing)

Chapter 2 Setting Up Database Multiplexing Mode

This chapter describes how to set up database multiplexing mode, and how to check it.

Users who perform setup and operations on the database server

Setup and operations of the database server must be performed by the instance administrator user.

Users who perform setup and operations on the arbitration server

The following users may perform setup and operations on the arbitration server when it is used for automatic degradation.

Linux

Any operating system user.

Windows

Any user with administrator privileges. This user must be assigned the "Log on as a service" user right.

Point

  • Mirroring Controller selects a database superuser as the user who will connect to the database instance. This enables instance administrator users and database superusers who operate the Mirroring Controller commands to run database multiplexing mode in different environments.

  • The application name for connecting to the database instance is "mc_agent".

Matching the system times

Before starting the setup, ensure that the times in the primary server, standby server and arbitration server match, by using the operating system time synchronization feature, for example.

The tolerated difference is approximately one second.

If the system times are not synchronized (because the tolerated difference is exceeded, for example), problem investigation may be affected.

Configuring ICMP

Because the ping command of the operating system is used for heartbeat monitoring of the database server, configure the network so that ICMP can be used on the admin network and the arbitration network. Refer to the relevant operating system procedure for details.

Setup

The setup procedure is shown in the table below. However, the procedure on the arbitration server should be performed only when the arbitration server is used for automatic degradation. A distinction is made between the procedures on the primary server and standby server according to whether the arbitration server is used.

Step

Task

Refer to

Primary server

Standby server

Arbitration server

1

Installation

2.1 Installation

2

Preparing the database server

Preparing the arbitration server

2.2 Preparing for Setup

3

Configuring the arbitration server

2.3.1 Configuring the Arbitration Server

4

Creating a user exit

2.3.2 Creating a User Exit for the Arbitration Server

5

Starting the arbitration process

2.3.3 Starting the Mirroring Controller Arbitration Process

6

Setting up database multiplexing mode

2.4.1 Setting Up Database Multiplexing Mode on the Primary Server

7

Creating, setting, and registering the instance

2.4.2 Creating, Setting, and Registering the Primary Server Instance

8

Creating a user exit

2.6 Creating a User Exit for a Database Server

9

Starting Mirroring Controller

2.4.3 Starting Mirroring Controller on the Primary Server

10

Setting up database multiplexing mode

2.5.1 Setting Up Database Multiplexing Mode on the Standby Server

11

Creating, setting, and registering the instance

2.5.2 Creating, Setting, and Registering the Standby Server Instance

12

Creating a user exit

2.6 Creating a User Exit for a Database Server

13

Starting Mirroring Controller

2.5.3 Starting Mirroring Controller on the Standby Server

14

Confirming the streaming replication status

2.7 Confirming the Streaming Replication Status

15

Checking the connection status

2.8.1 Checking the Connection Status on a Database Server

16

Checking the connection status

2.8.1 Checking the Connection Status on a Database Server

17

Checking the connection status

2.8.2 Checking the Connection Status on the Arbitration Server

18

Creating applications

2.9 Creating Applications

19

Checking the behavior

2.10 Checking the Behavior

Explanations for each step are provided below.

Information