Describes the postgresql.conf parameters that must be set when using the Connection Manager.
Parameters to Set
An existing PostgreSQL parameter. Add 2 to the value already set.
Connection to the instance is maintained from the time the instance is started to do the following:
The watchdog process checks the state of the instance.
The terminator process forces the client to terminate the SQL connection.
An existing PostgreSQL parameter. Add a watchdog.
The watchdog process and terminator process start when you add watchdog and restart the instance.
Specify the port number on which the watchdog process accepts connections for heartbeat monitoring from the conmgr process.
The value must be greater than or equal to 1 and less than or equal to 65535. The default is 27545. The instance must be restarted for this parameter change to take effect.
Specify the interval between checking the attributes of a instance.
watchdog process immediately notifies the conmgr process if the attribute changes.
The unit is milliseconds. Specify a value equal to or more than 1 millisecond. The default is 1000 milliseconds. The instance must be restarted for this parameter change to take effect.
Specify the maximum number of conmgr processes that connect to watchdog process.
The default is the value specified in max_connections of postgresql.conf.
There is no upper limit, but about 200 bytes of memory are consumed for 1 connection when PostgreSQL is started.
Note
Normally you do not need to consider, but if you have a heartbeat connection with a very large number of conmgr processes, it may violate on the maximum number of file descriptors (You can check it with -n of the ulimit command.) of the OS user limit. This is because the socket for the heartbeat connection consumes the file descriptor. Set the maximum number of file descriptors of the OS user limit to a value larger than the value calculated below from the max_files_per_process parameter value and watchdog.max_heartbeat_connections parameter value in postgresql.conf.
max_files_per_process + watchdog.max_heartbeat_connections x 2