Add virtual functions check_replication() and start_replication() for Clustrix
Implementations of check_replication() and start_replication() for Clustrix allows to use fix_replication() also for Clustrix nodes without checking it. Also several attempts to check nodes after restart are added - to wait for nodes if they are not running right after server daemon restart
This commit is contained in:
@ -30,22 +30,28 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief install_clustrix
|
||||
* @param m node index
|
||||
* @return 0 in case of success
|
||||
*/
|
||||
int install_clustrix(int m);
|
||||
|
||||
/**
|
||||
* @brief start_cluster Intstalls Clustrix on all nodes, configure license, form cluster
|
||||
* @return 0 in case of success
|
||||
*/
|
||||
int start_cluster();
|
||||
int start_replication();
|
||||
|
||||
/**
|
||||
* @brief cnf_servers Generate Clustrix servers description for maxscale.cnf
|
||||
* @return text for maxscale.cnf
|
||||
*/
|
||||
std::string cnf_servers();
|
||||
|
||||
/**
|
||||
* @brief check_replication Checks if Clustrix Cluster is up and running
|
||||
* @return 0 if Clustrix Cluster is ok
|
||||
*/
|
||||
int check_replication();
|
||||
|
||||
/**
|
||||
* @brief install_clustrix
|
||||
* @param m node index
|
||||
* @return 0 in case of success
|
||||
*/
|
||||
int prepare_server(int i);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user