The Charmed MySQL Router Operator is a database proxy for Group Replicated MySQL clusters.
MySQL Router is a middleware that provides transparent routing of MySQL servers and client applications. More info at MySQL Router.
The proxy sits between the MySQL cluster and a client application, e.g.:
flowchart TD
id1(Application) --db--> id2(MySQL Router)
id2 --db--> id3[(MySQL Cluster)]
This charm must be used coupled with mysql charm, through a relation, e.g.:
juju deploy mysql-k8s --trust
juju deploy mysql-router-k8s --trust
juju integrate mysql-k8s mysql-router-k8s
juju deploy mysql
juju deploy mysql-router
juju integrate mysql mysql-router
Relations are defined in metadata.yaml
are:
- Requires: db
- Provides: db
Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for developer guidance.