MXS-2275 Implement [un]softfailing
It is now possible to [un]softfail a Clustrix node via MaxScale using a Clustrix monitor module command. In case a node is successfully softfailed, the `Being Drained` bit will automatically turned on. Similarly, if a node is successfully unsoftfailed, the `Being Drained` bit will be cleared.
This commit is contained in:
@ -87,6 +87,20 @@ private:
|
||||
void initiate_delayed_http_check();
|
||||
bool check_http(Call::action_t action);
|
||||
|
||||
bool perform_softfail(SERVER* pServer, json_t** ppError);
|
||||
bool perform_unsoftfail(SERVER* pServer, json_t** ppError);
|
||||
|
||||
enum class Operation
|
||||
{
|
||||
SOFTFAIL,
|
||||
UNSOFTFAIL,
|
||||
};
|
||||
|
||||
bool perform_operation(Operation operation,
|
||||
SERVER* pServer,
|
||||
json_t** ppError);
|
||||
|
||||
|
||||
static long now()
|
||||
{
|
||||
return mxb::WorkerLoad::get_time_ms();
|
||||
|
||||
Reference in New Issue
Block a user