|
At the system level, there is a registry of RestFS clusters that the system can work with.
By default, the RestFS cluster registry has a default cluster, which is displayed in the URL: http://system.restfs.ecss:9990
RestFS cluster can have any name except for
RestFS cluster named |
At the system level, RestFS management/monitoring commands are under /restfs path.
At the virtual PBX level — under /domain/<DOMAIN>/restfs/ path.
To run RestFS in one node mode, it is enough to install ecss-restfs packet. During the installation, a number of questions were asked. Next, start the restfs service and check its status.
sudo apt install ecss-restfs sudo systemctl start ecss-restfs.service sudo systemctl status ecss-restfs.service |
By default, the service listens for HTTP requests on port 9990 and works with the /var/lib/ecss/restfs directory.
In order to ensure data replication between cluster servers, configure glusterfs-server. As example, ECSS-10 system running in a cluster with the following settings is given:
Running RestFS in cluster modeTo run RestFS in cluster mode, it is enough that ecss-restfs package is installed and launched on two nodes at once. Command to start ecss-restfs service:
Starting RestFS in case of unavailability of other cluster membersIn the applied glusterfs concept, all servers are equivalent. However, the volume section is not activated if there is no quorum (a cluster has a quorum if there are enough voting cluster elements with the same consistent cluster representation and activity). This is a defense mechanism that is typical for all distributed fault-tolerant systems and is designed to protect the system from split-brain - situation when each system believes that another node has failed. This situation may occur when only one of the servers is loaded, and the second one is turned off or unavailable. Volume will not be automatically activated until another server occurance for excluding data discrepancies. If starting the second server is impossible or delayed for a long time, then volume can be manually switched to operating mode by running the command:
Problems associated with the emergence of split-brainIf one of the cluster nodes is unavailable, problems with files may occur. After the work is restored, they will be in split, which is why you will have to start synchronization between nodes manually. In order to solve this problem, you will need to use cluster.favorite-child-policy key. When it is enabled, all files in the split will be automatically synchronized with each other according to specified rule. Enabling this parameter is performed by the command:
Editing the settings of glusterfs-server.service unitTo configure glusterfs service management via systemctl, run the command:
A text editor window should open. Enter the following parameters there:
Save the changes and run the command:
|