Simple wrapper class for the MySQL Orchestrator API, and some convenience scripts.
MySQL Orchestrator has a robust REST API.
This humble library provides the following:
- A base
Orchestrator
class orchestrator-run.py
: Wraps the base class for calling from CLIauto-master-writer.py
: Detects a healthy cluster with a master that hasread_only = true
, and setsread_only = false
(this allows configuring all cluster nodes to start in read-only mode, and still provide an automated way to set the master as writeable.
- Copy
config.sample.yaml
toconfig.yaml
- Edit to taste
- Execute
orchestrator-run.py --help
for help.
See auto-master-writer.py for an example of how to
extend the base Orchestrator
class.