Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Drain does not check for Galera cluster health #208

Closed
@CAFxX

Description

@CAFxX

The drain script currently does not check whether the cluster is healthy before stopping a node:

#!/bin/bash -e
/var/vcap/packages/mariadb/support-files/mysql.server stop --pid-file=/var/vcap/sys/run/mysql/mysql.pid > /dev/null
return_code=$?
echo 0
exit ${return_code}

We think it would be safer to check if all cluster nodes are online and in sync before asking the local node to shutdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions