Parameter description: Specifies the number of Xlog file segments. Specifies the minimum number of transaction log files stored in the pg_xlog directory. The standby server obtains log files from the primary server for streaming replication.
Type: SIGHUP
Value range: an integer ranging from 2 to INT_MAX
Default value: 65
Setting suggestions:
Parameter description: Specifies the maximum duration that the sending server waits for the WAL reception in the receiver.
Type: SIGHUP
Value range: an integer ranging from 0 to INT_MAX. The unit is millisecond (ms).
Default value: 15s
Parameter description: Specifies the number of log replication slots on the primary server.
Type: POSTMASTER
Value range: an integer ranging from 0 to 262143
Default value: 8
A physical replication slot provides an automatic method to ensure that an Xlog is not removed from a primary DN before all the standby and secondary DNs receive it. Physical replication slots are used to support HA clusters. The number of physical replication slots required by a cluster is as follows: ratio of standby and secondary DNs to the primary DN in a ring of DNs. For example, if an HA cluster has 1 primary DN, 1 standby DN, and 1 secondary DN, the number of required physical replication slots will be 2.
Parameter description: Specifies the data volume that can be read from the disk per second when the primary server provides a build session to the standby server.
Type: SIGHUP
Value range: an integer ranging from 0 to 1048576. The unit is KB. The value 0 indicates that the I/O flow is not restricted when the primary server provides a build session to the standby server.
Default value: 0
Setting suggestions: Set this parameter based on the disk bandwidth and job model. If there is no flow restriction or job interference, for disks with good performance such as SSDs, a full build consumes a relatively small proportion of bandwidth and has little impact on service performance. In this case, you do not need to set the threshold. If the service performance of a common 10,000 rpm SAS disk deteriorates significantly during a build, you are advised to set the parameter to 20 MB.
This setting directly affects the build speed and completion time. Therefore, you are advised to set this parameter to a value larger than 10 MB. During off-peak hours, you are advised to remove the flow restriction to restore to the normal build speed.