Phase 3.1 — Official ProxySQL Hooks
Goal: Built-in pre/post failover hooks that notify ProxySQL via its Admin API — no custom scripts needed. "orchestrator + ProxySQL works out of the box."
Sub-tasks
Design considerations
- Must be optional — orchestrator should work without ProxySQL configured
- Support multiple ProxySQL instances (fleet-wide failover)
- Respect existing hook mechanism (
PreFailoverProcesses, PostFailoverProcesses) — ProxySQL hooks should compose with, not replace, custom scripts
- Consider ProxySQL Cluster (admin variable propagation) for multi-ProxySQL setups
Dependencies
None — can start immediately.
Part of Phase 3 — Feature Direction.
Phase 3.1 — Official ProxySQL Hooks
Goal: Built-in pre/post failover hooks that notify ProxySQL via its Admin API — no custom scripts needed. "orchestrator + ProxySQL works out of the box."
Sub-tasks
LOAD MYSQL SERVERS TO RUNTIME,mysql_serverstable manipulation)go/proxysql/) — connection management, authentication, query execution against Admin interfaceConfigstruct — ProxySQL admin host/port/credentials, hostgroup mappings, hook enable/disableorchestrator-client -c proxysql-test)Design considerations
PreFailoverProcesses,PostFailoverProcesses) — ProxySQL hooks should compose with, not replace, custom scriptsDependencies
None — can start immediately.
Part of Phase 3 — Feature Direction.