# HG changeset patch # User Vladimir Homutov # Date 1523877575 -10800 # Node ID ed6b442066007d4d8aa7c61558e7ac387c067334 # Parent af5751930f95f060dbed3bd24e518de10d87908a Clarified the "zone_sync_server" directive description. diff -r af5751930f95 -r ed6b44206600 xml/en/docs/dev/development_guide.xml --- a/xml/en/docs/dev/development_guide.xml Tue Apr 17 15:08:04 2018 +0300 +++ b/xml/en/docs/dev/development_guide.xml Mon Apr 16 14:19:35 2018 +0300 @@ -9,7 +9,7 @@
+ rev="3">
diff -r af5751930f95 -r ed6b44206600 xml/en/docs/stream/ngx_stream_zone_sync_module.xml --- a/xml/en/docs/stream/ngx_stream_zone_sync_module.xml Tue Apr 17 15:08:04 2018 +0300 +++ b/xml/en/docs/stream/ngx_stream_zone_sync_module.xml Mon Apr 16 14:19:35 2018 +0300 @@ -14,7 +14,7 @@
-The ngx_stream_zone_sync_module module (1.13.10) +The ngx_stream_zone_sync_module module (1.13.8) provides the necessary support for synchronizing contents of shared memory zones between nodes of a cluster. @@ -65,7 +65,7 @@ listen 127.0.0.1:8090; - # cluster of 2 nodes: each name resolves to a single IP address + # cluster of 2 nodes zone_sync_server a.example.com; zone_sync_server b.example.com; @@ -196,25 +196,36 @@ server -Defines the address of a cluster node -and an optional method of resolving it. +Defines the address of a cluster node. The address can be specified as a domain name or IP address with a mandatory port, or as a UNIX-domain socket path specified after the “unix:” prefix. A domain name that resolves to several IP addresses defines -multiple servers at once. +multiple nodes at once. -The "resolve" parameter makes nginx to -monitor changes of the IP addresses -that correspond to a domain name of the server -and automatically modifies the configuration +The resolve parameter instructs nginx to monitor +changes of the IP addresses that correspond to a domain name of the node +and automatically modify the configuration without the need of restarting nginx. -In order for this parameter to work, +Cluster nodes are specified either dynamically as a single +zone_sync_server directive with +the resolve parameter, or statically as a series of several +directives without the parameter. + +Each cluster node should be specified only once. + + +All cluster nodes should use the same configuration. + + + + +In order for the resolve parameter to work, the directive must be specified in the block. @@ -225,24 +236,13 @@ server { zone_sync; + zone_sync_server cluster.example.com resolve; ... - zone_sync_server example.com resolve; } } - - -Each cluster node must be specified only once. -If using domain names, ensure they are resolvable to a single IP address. - - -The own address of a node is ignored, thus, there is no need to have different -configurations on different nodes. - - -