diff --git a/content/en/docs/Developerguide/primary-server.md b/content/en/docs/Developerguide/primary-server.md index 6fbac6604f8b26b494274c3cef697429057f7e8d..d1fcd81b8783d20d792c8083744bcd2a70d903a2 100644 --- a/content/en/docs/Developerguide/primary-server.md +++ b/content/en/docs/Developerguide/primary-server.md @@ -157,4 +157,21 @@ This parameter is a POSTMASTER parameter. Set it based on instructions provided - **0** means that the host will never be blocked when the standby data is chasing. - The remaining value represents the longest time that the host will be blocked when the backup data catches up. For example, a value of 5000 means that when the backup data catch-up time is 5 seconds left, the host is blocked and waits for it to complete. -**Default value**: **-1** \ No newline at end of file +**Default value**: **-1** + +## sync\_config\_strategy + +**Parameter description:**Synchronization strategy for configuration files between host and standby, standby and cascade standby。 + +This parameter is a POSTMASTER parameter. Set it based on instructions provided in [Table 1](resetting-parameters.md#en-us_topic_0237121562_en-us_topic_0059777490_t91a6f212010f4503b24d7943aed6d846). + +**Value range:**enum + +- all\_node: When the host is configured as all\_node, it allows the host to actively synchronize the configuration files to all standby nodes. When the standby node is configured as all\_node, it allows the current standby to send synchronization request to its host, and allows the current standby to actively synchronize configuration files to all its cascade standby; When a cascade standby is configured as all\_node, it allows the current cascade standby to send synchronization request to its standby. +- only\_sync\_node: When the host is configured as only\_sync\_node, it means that only the host is allowed to actively synchronize the configuration files to all the synchronous standby nodes; When the standby machine is configured as only\_sync\_node, it allows the current standby machine to send synchronization request to its host, and does not allow the current standby to actively send synchronization configuration files to all its cascade; When the cascade standby is configured as only\_sync\_node, it allows the current cascade standby to send synchronization requests to its standby. +-none\_node: When the host is configured as none\_node, it means that the host is not allowed to actively synchronize the configuration files to any standby;When the standby machine is configured as none\_node, it means that the current standby machine is not allowed to send synchronization request to its host, and does not allowe to actively synchronize configuration files to all its cascade standby nodes. When the cascade standby is configured as none\_node, it means that the current cascade standby is not allowed to send synchronous requests to its standby machine. + +**Default value:**all\_node + +>![](public_sys-resources/icon-notice.gif) **NOTE:** +>The sending side actively synchronizes the configuration file with the receiving side, and the receiving side requests the sending side synchronizes the configuration file, which are two separate events that cause the configuration file to synchronize.If you do not want configuration file synchronization, you must configure it to none\_node on the receiving end;The sender can only be configured as NONE \_node if it is a standby machine;If the sending end is a host, the host is not synchronized with all the standby machines when configured as NONE \_node; if configured as only\ _sync_Node, it is only synchronized with the synchronous standby, not with the asynchronous standby. \ No newline at end of file diff --git a/content/en/docs/Developerguide/standby-server.md b/content/en/docs/Developerguide/standby-server.md index 0e6942ef269f3ba08de140a511815d233da52a8c..ffd19172185fa3296a0cd944ed9ec6547d56f240 100644 --- a/content/en/docs/Developerguide/standby-server.md +++ b/content/en/docs/Developerguide/standby-server.md @@ -119,16 +119,3 @@ This parameter is a SIGHUP parameter. Set it based on instructions provided in **Value range**: a string **Default value**: empty - -## config\_sync\_interval - -**Parameter description**: Specifies the time interval for synchronizing the configuration file between host and standby. - -This parameter is a POSTMASTER parameter. Set it based on instructions provided in [Table 1](resetting-parameters.md#en-us_topic_0237121562_en-us_topic_0059777490_t91a6f212010f4503b24d7943aed6d846). - -**Value range**: an integer ranging from 0 to _INT\_MAX_. The unit is ms. - -**Default value**: **3600000** \(1 hour\) - ->![](public_sys-resources/icon-notice.gif) **NOTICE:** ->0 means no synchronization, and if you want to be out of sync on the first boot, you need to set it to 0 using Method 1 in [Table 2](resetting-parameters.md#zh-cn_topic_0237121562_zh-cn_topic_0059777490_t290c8f15953843db8d8e53d867cd893d) before starting the host and standby. \ No newline at end of file diff --git "a/content/zh/docs/Developerguide/\344\270\273\346\234\215\345\212\241\345\231\250.md" "b/content/zh/docs/Developerguide/\344\270\273\346\234\215\345\212\241\345\231\250.md" index b888fc29b2b2daf3207e4276fb2c855b50999804..d33e9daca0801434656565d6b76c567f673ed857 100644 --- "a/content/zh/docs/Developerguide/\344\270\273\346\234\215\345\212\241\345\231\250.md" +++ "b/content/zh/docs/Developerguide/\344\270\273\346\234\215\345\212\241\345\231\250.md" @@ -157,4 +157,21 @@ ANY N(node1,node2,...)表示在括号内任选N个主机名称作为同步复制 - 0表示备机数据追赶时始终不阻塞主机。 - 其余值表示备机数据追赶时阻塞主机的最长时间。例如,取值5000,表示当备机数据追赶完成时间还剩5s时,阻塞主机等待其完成。 -**默认值**:**-1** \ No newline at end of file +**默认值**:**-1** + +## sync\_config\_strategy + +**参数说明:**主机和备机、备机和级联备之间配置文件的同步策略。 + +该参数属于POSTMATER类型参数,请参考[表1](重设参数.md#zh-cn_topic_0237121562_zh-cn_topic_0059777490_t91a6f212010f4503b24d7943aed6d846)中对应设置方法进行设置。 + +**取值范围:**枚举类型 + +- all\_node: 主机配置为all\_node时,表示允许主机向所有备机主动同步配置文件;备机配置为all\_node时,表示允许当前备机向其主机发送同步请求,允许当前备机向其所有级联备主动同步配置文件;级联备配置为all\_node时,表示允许当前级联备向其备机发送同步请求。 +- only\_sync\_node: 主机配置为only\_sync\_node时,表示仅允许主机向所有同步备机主动同步配置文件;备机配置为only\_sync\_node时,表示允许当前备机向其主机发送同步请求,不允许当前备机向其所有级联备主动同步配置文件;级联备配置为only\_sync\_node时,表示允许当前级联备向其备机发送同步请求。 +- none\_node: 主机配置为none\_node时,表示不允许主机向任何备机主动同步配置文件;备机配置为none\_node时,表示不允许当前备机向其主机发送同步请求,不允许当前备机向其所有级联备主动同步配置文件;级联备配置为none\_node时,表示不允许当前级联备向其备机发送同步请求。 + +**默认值:**all\_node + +>![](public_sys-resources/icon-notice.gif) **须知:** +>发送端主动向接收端同步配置文件、接收端请求发送端同步配置文件是两个独立的事件,均会使得配置文件同步。若不希望配置文件同步,则需要在接收端配置为none\_node,发送端若为备机只能配置为none\_node,发送端若为主机,配置为none\_node时主机与所有备机都不同步,为only\_sync_node时仅与同步备同步,不与异步备同步。 \ No newline at end of file diff --git "a/content/zh/docs/Developerguide/\345\244\207\346\234\215\345\212\241\345\231\250.md" "b/content/zh/docs/Developerguide/\345\244\207\346\234\215\345\212\241\345\231\250.md" index aef2c45b5763382dd3ce7dd4a63843f591d7dd40..154b559b3423b1843d15a5101919a3fd88fbf6bc 100644 --- "a/content/zh/docs/Developerguide/\345\244\207\346\234\215\345\212\241\345\231\250.md" +++ "b/content/zh/docs/Developerguide/\345\244\207\346\234\215\345\212\241\345\231\250.md" @@ -119,16 +119,3 @@ **取值范围:**字符型 **默认值:**空字符串 - -## config\_sync\_interval - -**参数说明:**设置主机与备机同步配置文件的时间间隔。 - -该参数属于POSTMASTER类型参数,请参考[表1](重设参数.md#zh-cn_topic_0237121562_zh-cn_topic_0059777490_t91a6f212010f4503b24d7943aed6d846)中对应设置方法进行设置。 - -**取值范围:**整型,0\~INT\_MAX,单位为ms。 - -**默认值:**3600000(即1小时) - ->![](public_sys-resources/icon-notice.gif) **须知:** ->值为0时表示不同步,若想要首次启动时也不同步,需要在主机和备机启动之前使用[表2](重设参数.md#zh-cn_topic_0237121562_zh-cn_topic_0059777490_t290c8f15953843db8d8e53d867cd893d)中方式一将其设置为0。 \ No newline at end of file