Documentation for C-Werk 2.0.

Previous page Supervisor Web-Interface  Failover Database Next page

The first time you launch the Supervisor, you should initialize the cluster. To do this, do the following:

  1. Select the Server's IP address from the list and click NEXT.
  2. Add the required Servers to the cluster. To do this, enter the IP address and click LINK.

    Attention!

    All сluster Servers must be available to each other.

    It is necessary to use Servers with the same architecture (x64), OS type and PostgreSQL version.

    Attention!

    The first three Servers added become the master Servers.

    The operation of the cluster is coordinated by its master Servers, which, in particular, take decisions to migrate nodes from one Server to another.

    The number of the master Servers in the cluster must be odd, not less than three and not more than five.

    If only two Servers are added, they can be configured as 1+1—master + backup Server (see 1+1 cluster configuration). 

  3. If required, you can add a user with administrator rights (see Set up access to a supervisor). After the cluster is created, only this user will have access to the supervisor. Do the following:

    1. Click the ADD button.

    2. Enter access credentials and click the NEXT button.

  4. After you added all Servers, click the INITIALIZE button.



This will initialize the cluster based on the selected Servers.

Note

If during the process of cluster creation, you added the Server that were already added to another cluster, they will be unavailable. If you try to initialize the cluster with unavailable Servers, they will be marked red, and the cluster won't be initialized.

In this case you need to go back to the step of adding the Servers and add the available Servers. 

To add other Servers to the cluster, do the following:

  1. On the HOSTS tab, click .
  2. Enter the IP address of the Server.
  3. If the Server you are adding is master, set the Manager checkbox.

  4. Click ADD HOST.
  5. Add all required Servers.

Note

To remove a Server from the cluster, click and then Remove.

Attention!

To change the IP addresses of the Server in the cluster, do the following:

  1. Remove the Server from the cluster.
  2. Change the IP address of the Server.
  3. Add the Server with a new IP address.
  • No labels