You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sequence generation. To avoid conflicts between unique identifiers on different nodes, <filename>multimaster</filename> modifies the default behavior of sequence generators. For each node, ID generation is started with the node number and is incremented by the number of nodes. For example, in a three-node cluster, 1, 4, and 7 IDs are allocated to the objects written onto the first node, while 2, 5, and 8 IDs are reserved for the second node. If you change the number of nodes in the cluster, the incrementation interval for new IDs is adjusted accordingly. Thus, the generated sequence values are not monotonic.
107
+
In a multi-master cluster, the <literal>ALTER SYSTEM</literal> command only affects the configuration of the current node.
108
+
If you would like to change configuration parameters across the whole database cluster, you need to run this command on
109
+
each node.
110
+
</para>
111
+
</listitem>
112
+
<listitem>
113
+
<para>
114
+
Sequence generation. To avoid conflicts between unique identifiers on different nodes,
115
+
<filename>multimaster</filename> modifies the default behavior of sequence generators.
116
+
By default, ID generation on each node is started with this node number and is
117
+
incremented by the number of nodes. For example, in a three-node cluster, 1, 4, and 7
118
+
IDs are allocated to the objects written onto the first node, while 2, 5, and 8 IDs are reserved
119
+
for the second node. If you change the number of nodes in the cluster, the incrementation
120
+
interval for new IDs is adjusted accordingly. Thus, the generated sequence values are not
121
+
monotonic. If it is cricital to get a monotonically increasing sequence cluster-wide, you can
122
+
set the <link linkend="mtm-monotonic-sequences"><varname>multimaster.monotonic_sequences</varname></link>
123
+
to <literal>true</literal>.
108
124
</para>
109
125
</listitem>
110
126
<listitem>
@@ -228,8 +244,8 @@
228
244
heartbeats to the node are lost in a row, this node is kicked out
229
245
of the cluster to allow writes to the remaining alive nodes. You
230
246
can configure the heartbeat frequency and the response timeout in
231
-
the <literal>multimaster.heartbeat_send_timeout</literal> and
In this case, the node will continue working even if it is isolated.
273
289
</para>
274
290
<para>
@@ -374,7 +390,8 @@ where <replaceable>datadir</> is the directory containing the database cluster.
374
390
shared_preload_libraries = 'multimaster'
375
391
</programlisting>
376
392
<tip>
377
-
<para>If the <varname>shared_preload_libaries</varname> variable is already defined in <filename>postgresql.auto.conf</filename>, you will need to modify its value using the <literal>ALTER SYSTEM</literal> command. For details, see <xref linkend="config-setting-configuration-file">.
393
+
<para>If the <varname>shared_preload_libaries</varname> variable is already defined in <filename>postgresql.auto.conf</filename>, you will need to modify its value using the <xref linkend="sql-altersystem"> command. For details, see <xref linkend="config-setting-configuration-file">.
394
+
Note that in a multi-master cluster, the <literal>ALTER SYSTEM</literal> command only affects the configuration of the node from which it was run.
<para>Node with this flag continues working even if it cannot access the majority of other nodes.
940
963
This is needed to break the symmetry if there is an even number of alive nodes in the cluster.
941
-
For example, a cluster with three nodes continues working if one of the nodes has crashed.
942
-
If connection between the remaining nodes is lost, the node with <varname>multimaster.major_node</varname> = <literal>true</literal> will continue working.
964
+
For example, in a cluster of three nodes, if one of the nodes has crashed and
965
+
the connection between the remaining nodes is lost, the node with <varname>multimaster.major_node</varname> = <literal>true</literal> will continue working.
943
966
</para>
944
967
<important>
945
968
<para>This parameter should be used with caution. Only one node in the cluster
0 commit comments