Dual-Cluster Replication Parameters
enable_slot_log
Parameter description: Specifies whether to enable primary/standby synchronization for replication slots. Only logical replication slots, archive slots, and backup slots are involved.
Parameter type: Boolean
Unit: none
Value range:
- on: Primary/standby synchronization is enabled for replication slots.
- off: Primary/standby synchronization is disabled for replication slots.
Default value: on
Setting method: This is a USERSET parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Enable the function of creating archive/backup slots on the primary node and disable the function of creating archive/backup slots on the standby node.
Risks and impacts of improper settings: Functions (except replication and synchronization between the primary and standby nodes) such as backup, archiving, and building, will be affected.
RepOriginId
Parameter description: This is a session-level GUC parameter. In bidirectional logical replication, set it to a non-zero value to avoid infinite data replication.
Parameter type: integer.
Unit: none
Value range: 0 to 2147483647
Default value: 0
Setting method: This is a USERSET parameter. Set it based on method 3 provided in Table 2.
Setting suggestion: In two-way logical replication scenarios, set this parameter to a non-zero value.
Risks and impacts of improper settings: Change the parameter value after fully understanding the parameter meaning and verifying it through testing.
auto_csn_barrier
Parameter description: Specifies whether the barrier logging function is enabled for the primary cluster and GTM-lite cluster for streaming DR.
Parameter type: Boolean
Unit: none
Value range:
- on: enabled.
- off: disabled.
Default value: off
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This function is automatically enabled during the DR process. You are advised not to manually disable this function. To enable the read function of the standby node in the GTM-lite cluster, set this parameter to on.
Risks and impacts of improper settings: If this function is disabled, the data read consistency between the standby cluster for the DR and the standby node of the GTM-lite cluster will be affected.
stream_cluster_run_mode
Parameter description: Specifies whether a CN or DN belongs to the primary or standby cluster in a dual-cluster streaming DR scenario.
Parameter type: enumerated type
Unit: none
Value range:
- cluster_primary indicates that the node is in the primary cluster.
- cluster_standby indicates that the node is in the standby cluster.
Default value: cluster_primary
Setting method: This is a POSTMASTER parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This parameter specifies the status of a standby cluster for DR. It is used in internal processes and can be read by users. You are advised not to modify this parameter.
Risks and impacts of improper settings: Manual modification will cause standby clusters to be abnormal.
hadr_process_type
Parameter description: Specifies a process ID of a streaming replication-based remote DR solution or intra-city dual-DC HA solution.
Parameter type: enumerated type
Unit: none
Value range:
- none: There is no process.
- failover indicates that a standby cluster for DR is promoted to primary.
- switchover_promote indicates that a standby cluster is promoted to primary during the cluster switchover.
- switchover_demote indicates that a primary cluster is demoted to a standby cluster during the cluster switchover.
- dorado_failover indicates that an OceanStor Dorado standby cluster is promoted to primary.
- dorado_switchover_demote indicates that a primary cluster is demoted to a standby cluster during the OceanStor Dorado cluster switchover.
- dorado_failover_abnormal indicates that a standby cluster is promoted to primary when a shared disk of the OceanStor Dorado primary cluster is faulty.
- dorado_failover_in_standby_stream indicates that an OceanStor Dorado standby cluster is upgraded to an OceanStor Dorado primary cluster (also the remote DR-standby cluster) when the remote cluster in the streaming replication-based remote DR solution is the primary cluster.
- dorado_failover_abnormal_in_standby_stream indicates that the intra-city dual-DC HA solution supports streaming replication-based remote DR. In this solution, the remote cluster is the primary cluster for remote DR and the shared disk of the OceanStor Dorado primary cluster (also the standby cluster for remote DR) is faulty, the OceanStor Dorado standby cluster is switched to the OceanStor Dorado primary cluster (also the remote DR standby cluster).
Default value: none
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This parameter specifies the status of a standby cluster for DR. It is used in internal processes and can be read by users. You are advised not to modify this parameter.
Risks and impacts of improper settings: Manual modification will cause standby clusters to be abnormal.
cluster_name
Parameter description: Specifies the name of the current cluster.
cluster_name cannot be set to "invalid_cluster_uuid".
Parameter type: string.
Unit: none
Value range: valid cluster name.
Default value: ""
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This parameter is used in the DR process. The standby cluster for DR identifies the cluster based on this parameter. You are advised not to modify this parameter.
Risks and impacts of improper settings: The manual modification may cause DR function exceptions.
hadr_primary_cluster_name
Parameter description: Specifies the name of the cluster at the current physical log sender in the current DR.
If hadr_primary_cluster_name of the main standby cluster at the log receiver is set to invalid_cluster_uuid, log synchronization with the cluster at the log sender is not started, and the cluster at the log receiver remains disconnected.
Parameter type: string.
Unit: none
Value range: valid cluster name.
Default value: ""
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This parameter identifies a cluster of the log receiver. It is used in DR processes and can be read by users. You are advised not to modify this parameter.
Risks and impacts of improper settings: The manual modification may cause DR function exceptions.
hadr_standby_cluster_num
Parameter description: Specifies the number of standby clusters for streaming DR.
- The hadr_standby_cluster_num parameter is invalid in the streaming replication-based remote DR solution (one primary cluster + one standby cluster).
- This parameter is invalid when hadr_replconninfo_config_mode is set to cluster_manager, that is, the DR link between the log sender cluster and the log receiver cluster is configured through cluster management.
Parameter type: integer.
Unit: none
Value range: 0 to 2147483647
Default value: 0
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: This parameter specifies the status of a standby cluster for DR. It is used in DR processes and can be read by users. You are advised not to modify this parameter.
Risks and impacts of improper settings: The manual modification may cause DR function exceptions.
switchover_abort_timeout
Parameter description: Specifies the timeout threshold. If the time for the primary node to exit the thread exceeds the timeout threshold after the message interaction between the primary and standby nodes is complete, the process is terminated unexpectedly.
Parameter type: integer.
Unit: milliseconds
Value range: 0 to 2147483647. 0 indicates that the timeout abort function is not used.
Default value: 10000
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value.
Risks and impacts of improper settings: If the value is too small, the primary node may exit unexpectedly during the switchover.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot