cloudfoundry / pxc-release

BOSH release of Percona Xtradb Cluster
Apache License 2.0
30 stars 22 forks source link

[Feature] proxy reports backend as "INSTANCE/UUID" rather than "backend-INDEX" #42

Closed abg closed 10 months ago

abg commented 1 year ago

Thanks for opening a PR. Please make sure you've read and followed the Contributing guide, including signing the Contributor License Agreement.

Feature or Bug Description

What does this PR change?

This PR changes the proxy configuration to always name the backend based on the instance group and UUID in the form "$INSTANCE_GROUP_NAME/$UUID" that can be more trivially copy and pasted into other bosh commands when troubleshooting.

Motivation

Tell us about the problem you are facing, with context, that this PR solves.

Currently the proxy dashboard and api reports the MySQL backend a proxy is routing traffic to as "backend-INDEX". This is not always straight-forward to map to a specific MySQL vm. The motivation is to precisely report the mysql/UUID the proxy is treating as a backend and if marked unhealthy or having a high number of connection it is easier to find the specific MySQL instance to investigate.

Related Issue

If this PR was first opened as an issue, please provide the link to that issue here.