loading table of contents...

2.2.1. State Diagram

[Note]Note

The following state diagram holds not for the initial replication! The initial replication is not fault-tolerant against connection losses but has to run without interruptions in order to succeed.

The following diagram shows the different states of the Replication Live Server:

Replication Live Server state diagram

Figure 2.1. Replication Live Server state diagram


In the figure the transitions denoted with numbers in circles have the following meaning:

  1. The server starts up and remains in administration mode. At this time, no Content Application Engine (CAE) can connect. The server connects with the Master Live Server and asks for changes. If there are changes, replication begins.

  2. The Master Live Server is not reachable. It has either broken down, has been stopped, is working defectively, or communication is disrupted. In this case, replication pauses. Every 30 seconds, the Replication Live Server attempts to connect to the Master Live Server.

  3. The Replication Live Server was able to reconnect to the Master Live Server. Replication starts again as described in 1.

  4. Replication is finished. The Replication Live Server is switched to online mode. If the Replication Live Server is started in transition 1 for the first time, it does not switch to online mode automatically. Instead, you have to switch to online mode manually with cm runlevel -u <user> -p <password> -r online -g 0. Later the server switch is done automatically. Once the Replication Live Server is switched online, it continues to monitor the Master Live Server for changes and, if necessary, starts the replication.

  5. As in 2., the connection to the Master Live Server is lost. Replication pauses, but the Replication Live Server remains online. Every 30 seconds, the Replication Live Server attempts to connect to the Master Live Server.

  6. The Replication Live Server reconnects to the Master Live Server and replication starts again, as described in 1.

  7. The database of Master Live Server has been reset. Replication stops and the Replication Live Server remains online. In order to synchronize with the Master Live Server, the database of Replication Live Server must also be reset.