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
@@ -360,6 +360,10 @@ where <replaceable>datadir</> is the directory containing the database cluster.
360
360
<programlisting>
361
361
shared_preload_libraries = 'multimaster'
362
362
</programlisting>
363
+
<tip>
364
+
<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">.
365
+
</para>
366
+
</tip>
363
367
</listitem>
364
368
<listitem><para>Specify the transaction isolation level for your cluster. <filename>multimaster</filename> currently supports <link linkend="xact-read-committed">read committed</link> and <link linkend="xact-repeatable-read">repeatable read</link> isolation levels.
<para>The <literal>max_nodes</literal> variable defines the cluster size. In most cases, three cluster nodes are enough to ensure high availability. Since the data on all cluster nodes is the same, you do not typically need more than five cluster nodes.</para>
433
+
<para>The <literal>multimaster.max_nodes</literal> variable defines the maximum cluster size. If you plan to add new nodes to your cluster, the <literal>multimaster.max_nodes</literal> value should exceed the initial number of nodes. In this case, you can add new nodes without restarting <productname>&productname;</productname>.
434
+
</para>
435
+
<para>In most cases, three cluster nodes are enough to ensure high availability. Since the data on all cluster nodes is the same, you do not typically need more than five cluster nodes.
436
+
</para>
437
+
<para>If you would like to change the default connection settings for a cluster node, you can add other <link linkend="libpq-paramkeywords"> connection parameters</link> to the corresponding connection string in the <varname>multimaster.conn_strings</varname> variable. Additionally, you can specify the <literal>arbiter_process</literal> parameter to change the port used by the arbiter process to connect to the nodes. For details, see <xref linkend="multimaster-conn-strings"> and <xref linkend="multimaster-arbiter-port">.</para>
WAL for the disconnected node is overwritten. At this
542
-
point, automatic recovery is no longer possible. In this case, you can <link linkend="multimaster-restoring-a-node-manually">restore the node manually</link> by cloning the data from one of the alive nodes using <application>pg_basebackup</application>.
543
-
</para>
544
-
</listitem>
545
544
<listitem>
546
545
<para>
547
546
<varname>multimaster.min_recovery_lag</varname> — sets the
548
-
minimal WAL lag between the node to be restored and the current cluster state. When the
549
-
disconnected node is fast-forwarded up to the
547
+
minimal WAL lag between the node to be restored and the current cluster state.
548
+
By default, <varname>multimaster.min_recovery_lag</varname> is set to 100KB.
549
+
When the disconnected node is fast-forwarded up to the
WAL for the disconnected node is overwritten. At this
564
+
point, automatic recovery is no longer possible. In this case, you can <link linkend="multimaster-restoring-a-node-manually">restore the node manually</link> by cloning the data from one of the alive nodes using <application>pg_basebackup</application>.
565
+
</para>
566
+
</listitem>
558
567
</itemizedlist>
559
568
<para>
560
569
By default, <varname>multimaster.max_recovery_lag</varname> is
561
-
set to 1GB. Setting
570
+
set to 100MB. Setting
562
571
<varname>multimaster.max_recovery_lag</varname> to a larger
563
572
value increases the timeframe for automatic recovery, but
The maximum number of nodes allowed in the cluster. In most cases, three cluster nodes are enough to ensure high availability. Since the data on all cluster nodes is the same, you do not typically need more than five cluster nodes. The maximum possible number of nodes is limited to 64.</para><para>Default: the number of nodes specified in the <varname>multimaster.conn_strings</varname> variable
823
+
The maximum number of nodes allowed in the cluster. If you plan to add new nodes to your cluster, the <literal>multimaster.max_nodes</literal> value should exceed the initial number of nodes. In this case, you can add new nodes without restarting <productname>&productname;</productname>. In most cases, three cluster nodes are enough to ensure high availability. Since the data on all cluster nodes is the same, you do not typically need more than five cluster nodes. The maximum possible number of nodes is limited to 64.</para>
824
+
<para>Default: the number of nodes specified in the <varname>multimaster.conn_strings</varname> variable
<para>Node with this flag continues working even if it cannot access the majority of other nodes.
900
+
This is needed to break the symmetry if there is an even number of alive nodes in the cluster.
901
+
For example, a cluster with three nodes continues working if one of the nodes has crashed.
902
+
If connection between the remaining nodes is lost, the node with <varname>multimaster.major_node</varname> = <literal>true</literal> will continue working.
903
+
</para>
904
+
<important>
905
+
<para>This parameter should be used with caution. Only one node in the cluster
906
+
can have this parameter set to true. When set to <literal>true</literal> on several
907
+
nodes, this parameter can cause the split-brain problem.
0 commit comments