Configuration parameters

This article describes the parameters that can be configured for ADPG services via ADCM. To read about the configuring process, refer to the relevant article Services configuring.

Some of the parameters become visible in the ADCM UI after the Advanced flag being set.


Parameter Description Default value

Name of default database

A name of the database created by default. This database is maintained by crontab scripts (garbage collection, transaction wraparound, etc.)


ADPG contrib Extension

Whether or not to install a set of additional supplied modules for PostgreSQL


ADPG PostGIS Extension

Whether or not to install the PostGIS Extension. PostGIS is a spatial database extension for PostgreSQL that allows GIS (Geographic Information Systems) objects to be stored in the database. The PostGIS extension includes support for GiST-based R-Tree spatial indexes and functions for analysis and processing of GIS objects


Data directory

Directories that are used to store data on the ADPG hosts


Sysctl parameters

Linux kernel parameters that are needed for ADPG. Use the JSON format. Example:


ADPG configurations

The ADPG configurations section allows you to specify parameters from the postgresql.conf file (the default path is /pg_data1/adpg14/postgresql.conf). Use ADCM to set these parameters. When the ADPG service executes the Reconfigure & Restart or Reconfigure & Reload action, postgresql.conf is rewritten with settings specified in CLUSTERS → ADPG cluster → Services → ADPG → Configuration. If you make changes directly to postgresql.conf, these changes will be lost.

After modifying ADPG configuration parameters listed below, execute the Reconfigure & Reload or Reconfigure & Restart action to apply changes.

Parameter name Description Default value


Defines the TCP/IP address(es) on which the server listens for connections from client applications. You can specify several comma-separated host names and/or numeric IP addresses. The special entry * corresponds to all available IP interfaces. The entry allows listening for all IPv4 addresses and :: allows listening for all IPv6 addresses. Execute the Reconfigure & Restart action to apply changes



The TCP port the server listens on. Execute the Reconfigure & Restart action to apply changes



Determines the maximum number of concurrent connections to the server. For a replica host, the value of this parameter must be greater than or equal to the value on the leader host. If this requirement is not met, the replica host will reject all requests. Execute the Reconfigure & Restart action to apply changes



Sets the amount of memory the server used for the shared memory buffer. The higher the value of this parameter, the less the load on the host hard drives will be. Execute the Reconfigure & Restart action to apply changes

128 MB


Sets the maximum number of background processes that the system can support. Execute the Reconfigure & Restart action to apply changes



Sets the maximum number of workers that the system can support for parallel operations. Execute the Reconfigure & Restart action to apply changes



Sets the maximum number of workers that can be started by a single Gather or Gather Merge node. Execute the Reconfigure & Restart action to apply changes



Sets the maximum number of parallel workers that can be started by a single utility command. Execute the Reconfigure & Restart action to apply changes



Tells the ADPG query scheduler what RAM limit is available for caching data for the shared_buffers parameter and the file system cache. The efficie_cache_size parameter helps the scheduler to correctly estimate the costs of efficiently allocating memory for the disk cache per single request. This estimate affects how the cost of using the index will be estimated. The higher this value, the more likely the index scan will be applied. The lower this value, the more likely the sequential scan will be selected

4096 MB


Sets the memory limit for maintenance operations. Increasing the value for this parameter can lead to faster operations for cleaning and restoring the database from the copy

64 MB


Sets the non-shared memory limit that is used for internal operations when the server executes queries (for example, queries to temporary tables, before temporary files on the disk are used). This limit acts as simple resource control, preventing the host from going into swapping due to overallocation. Since the allocated memory is non-shared memory, large and complex requests can exceed the specified limit

4 MB


Until WAL disk usage stays below the min_wal_size value, old WAL files are recycled for future use at a checkpoint instead of removing. This ensures that enough WAL space is reserved to handle spikes in WAL usage, for example, when running large batch jobs

80 MB


Sets the memory limit to which the log size can grow between automatic checkpoints. Increasing this setting may increase the recovery time after a failure. The specified limit can be exceeded automatically with a high load on ADPG

1024 MB


Sets the minimum size of segments retained in the pg_wal directory, in case a standby server needs to fetch them for streaming replication. If a standby server connected to the sending server falls behind by more than wal_keep_size megabytes, the sending server might remove a WAL segment still needed by the standby. In this case, the replication connection is terminated. Downstream connections also fail as a result. If WAL archiving is enabled, the standby server can fetch the segment from archive and recover. The wal_keep_size parameter sets only the minimum size of segments retained in pg_wal. The system might need to retain more segments for WAL archival or to recover from a checkpoint. If wal_keep_size is zero, the system does not keep any extra segments for standby purposes

0 MB


Defines whether huge pages can be requested for the main shared memory area. The following values are valid:

  • Try — the server tries to request huge pages. If this operation fails, the server falls back to the default page.

  • On — if a huge page request fails, the server does not start.

  • Off — huge pages are not used.



Determines the number of connection "slots" that are reserved for PostgreSQL superuser connections. Execute the Reconfigure & Restart action to apply changes



Enables the logging collector. The logging collector is a background process that captures log messages sent to stderr and redirects them into log files. Execute the Reconfigure & Restart action to apply changes

The logging collector is enabled (true)


Determines the directory that contains log files. It can be specified as an absolute path, or relative to the cluster data directory

(the absolute path is /pg_data1/adpg14/log)


Specifies the log file name pattern. The value can include strftime %-escapes to define time-varying file names. If you specify a file name pattern without escapes, use a log rotation utility to save disk space



Determines the maximum period of time to use a log file, after which a new log file is created. If this value is specified without units, it is taken as minutes. Set log_rotation_age to 0 to disable time-based log file creation



Determines the maximum size of a log file. After a log file reaches the specified size, a new log file is created. If the value is set without units, it is taken as kilobytes. Set log_rotation_size to 0 to disable size-based log file creation



Specifies the minimum severity level of messages that are written to a log file. Valid values are debug5, debug4, debug3, debug2, debug1, info, notice, warning, error, log, fatal, and panic (see Severity levels table). Messages with the specified severity or higher are included in the log file. For example, if you set log_min_messages to warning, the log file will include the warning, error, log, fatal, and panic messages



Specifies which SQL statements that cause errors are logged. Valid values are debug5, debug4, debug3, debug2, debug1, info, notice, warning, error, log, fatal, and panic see Severity levels table). The log file includes SQL statements for messages of the specified severity or higher. To disable error statement logging, set log_min_error_statement to panic


postgresql.conf custom section

Available when the Advanced checkbox is checked. In this section, you can set additional parameters that are written to the postgresql.conf file. Parameters from postgresql.conf custom section have lower priority than other parameters. ADCM does not validate these parameters. Changes in the postgresql.conf file is reverted if Start action of the ADPG service fails



The section allows you to add lines to the pg_hba.conf file. The pg_hba.conf file configures the client authentication.


Parameter Description Default value

NTP servers

Addresses of valid NTP servers. For example,, If this parameter is set, then Master takes the time from NTP servers, Secondary Master — from Master or NTP servers, Segment hosts — from Master or Secondary Master. If the parameter is not set or all NTP servers become unavailable, then Master uses its local clocks, Secondary Master uses the Master or local clocks, and Segment Hosts get the time from Master or Secondary Master


Monitoring Clients

Parameter Description Default value


A transport protocol for sending metrics to the monitoring cluster. Possible values are TCP and UDP. A UDP protocol is supported by monitoring clusters of the 2.8 version or later


Check that all hosts are monitoring

Whether or not to check if monitoring agents are installed on all ADPG hosts


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