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
In particular, both instances use the same directory for storing write-ahead logs and snapshots.
1442
+
1443
+
When you start both cluster applications on the same machine, the instance from the first one will be the primary instance and the second will be the standby instance.
1444
+
In the :ref:`logs <configuration_reference_log>` of the second cluster instance, you should see a notification:
1445
+
1446
+
.. code-block:: text
1447
+
1448
+
main/104/interactive I> Entering hot standby mode
1449
+
1450
+
This means that the standby instance is ready to take over if the primary instance goes down.
1451
+
The standby instance initializes and tries to take a lock on a directory for storing write-ahead logs
1452
+
but fails because the primary instance has made a lock on this directory.
1453
+
1454
+
If the primary instance goes down for any reason, the lock is released.
1455
+
In this case, the standby instance succeeds in taking the lock and becomes the primary instance.
1456
+
1457
+
``database.hot_standby`` has no effect:
1458
+
1459
+
* If :ref:`wal.mode <configuration_reference_wal_mode>` is set to ``none``.
1460
+
* If :ref:`wal.dir_rescan_delay <configuration_reference_wal_dir_rescan_delay>` is set to a large value on macOS or FreeBSD. On these platforms, the hot standby mode is designed so that the loop repeats every ``wal.dir_rescan_delay`` seconds.
1461
+
* For spaces created with :ref:`engine <space_opts_engine>` set to ``vinyl``.
1462
+
1463
+
Examples on GitHub: `hot_standby_1 <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/config/instances.enabled/hot_standby_1>`_, `hot_standby_2 <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/config/instances.enabled/hot_standby_2>`_
0 commit comments