MXS-2428 Allow fixed Clustrix configuration

If 'dynamic_node_detection' has been set to false, then the
Clustrix monitor will not dynamically figure out what nodes are
available, but instead use the bootstrap nodes as such.

With 'dynamic_node_detection' being false, the Clustrix monitor
will do no cluster checks, but simply ping the health port of
each server.
This commit is contained in:
Johan Wikman
2019-04-15 13:41:39 +03:00
parent e09a6c8100
commit 8b29e70f63
3 changed files with 61 additions and 16 deletions

View File

@ -123,11 +123,14 @@ private:
bool check_cluster_membership(MYSQL* pHub_con,
std::map<int, ClustrixMembership>* pMemberships);
void populate_from_bootstrap_servers();
void update_server_statuses();
void make_health_check();
void initiate_delayed_http_check();
bool check_http(Call::action_t action);
void update_http_urls();
bool perform_softfail(SERVER* pServer, json_t** ppError);
bool perform_unsoftfail(SERVER* pServer, json_t** ppError);