-
Notifications
You must be signed in to change notification settings - Fork 22
Feature/dns proxy healthcheck tnz 66259 #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
abg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments.
abg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few more comments on the "pingdb" integration test.
aa39c24 to
8631d4e
Compare
|
Re-submitting this for review. The last 2 commits are trivial (bumps to dependencies & "Eventually()" intervals); the prior 3 are:
|
- Validate proxy dns healthcheck script influences bosh dns behavior and that connections to the proxy via the bosh-dns proxy link address continue to work. - Cycle that test across all proxies (presumes 2 proxy nodes) to ensure we observe DNS route new connections away from an unhealthy proxy. [TNZ-66259](https://vmw-jira.broadcom.net/browse/TNZ-66259) Authored-by: Kim Bassett <[email protected]>
Runs a new "pingdb" command provided by the switchboard module to validate the proxy is routing connections to a valid MySQL backend. [TNZ-66259](https://vmw-jira.broadcom.net/browse/TNZ-66259) Authored-by: Kim Bassett <[email protected]>
pingdb is expected to be colocated with the proxy and connects over localhost to the local proxy instance on the proxy port and establishes a MySQL connection without credentials. If a MySQL server response is detected, the proxy is routing connections to a valid backend and pingdb succeeds. Otherwise pingdb fails on any other error. Notes: - Move the switchboard proxy main entrypoint to ./cmd/proxy/ - Adds new ./cmd/pingdb to aid in DNS healthchecks for the proxy - Adds new internal/testing/docker package to assist in integration tests for the new pingdb command [TNZ-66259](https://vmw-jira.broadcom.net/browse/TNZ-66259) Authored-by: Kim Bassett <[email protected]>
2db4170 to
e1173f3
Compare
|
Rebased on main and cleaned up some of the commit history after an internal discussion with @kimago Once unit tests pass on the rebased changes, I will merge. |
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?
Discussed in Jira story notes: https://vmw-jira.broadcom.net/browse/TNZ-66259?focusedId=20850661&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-20850661
Motivation
Tell us about the problem you are facing, with context, that this PR solves.
Related Issue
If this PR was first opened as an issue, please provide the link to that issue here.