Skip to content
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

feat: add instance dialing to health check #871

Merged
merged 40 commits into from
Aug 12, 2021

Conversation

tifftoff
Copy link
Contributor

@tifftoff tifftoff commented Aug 5, 2021

  • Add function to client that exposes instances list
  • Add Dial op to proxy readiness criteria
  • Close each connection after dialing
  • Add error path tests
  • Add health check flags to README
  • Dial all specified instances in non-fuse modes
  • Remove InstanceGetter
  • Change tests so they work with new NewServer
  • Add sample yaml config w/ probes
  • Add fields for each probe
  • Validate instances in fuse mode
  • Add end to end tests for successful dialing

Co-authored-by: Mona Zhang monazhang@google.com

@google-cla google-cla bot added the cla: yes label Aug 5, 2021
@enocom enocom changed the title Add instance dialing to health check feat: add instance dialing to health check Aug 5, 2021
@enocom enocom self-requested a review August 6, 2021 16:34
Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looking pretty good. A number of comments below.

cmd/cloud_sql_proxy/cloud_sql_proxy.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/internal/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/internal/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/internal/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
proxy/proxy/client.go Outdated Show resolved Hide resolved
tests/healthcheck_test.go Outdated Show resolved Hide resolved
tests/healthcheck_test.go Outdated Show resolved Hide resolved
proxy/util/cloudsqlutil.go Outdated Show resolved Hide resolved
proxy/proxy/client.go Outdated Show resolved Hide resolved
tifftoff and others added 10 commits August 9, 2021 20:56
* Add function to client that exposes instances list
* Add Dial op to proxy readiness criteria
* Close each connection after dialing
* Add error path tests for dialing in readiness test
* Add health check flags to README
* Dial all specified instances in non-fuse modes
* Remove InstanceGetter
* Change tests so they work with new NewServer
* Fix flag
* Add sample yaml config w/ probes
* Add fields for each probe
* Validate instances in fuse mode
* Add end to end tests for successful dialing
Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few accidental additions that need to be removed.

proxy/util/cloudsqlutil.go Outdated Show resolved Hide resolved
proxy/proxy/client.go Outdated Show resolved Hide resolved
tests/healthcheck_test.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/internal/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/internal/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
cmd/cloud_sql_proxy/cloud_sql_proxy.go Outdated Show resolved Hide resolved
tests/alldb_test.go Outdated Show resolved Hide resolved
tests/healthcheck_test.go Outdated Show resolved Hide resolved
@tifftoff tifftoff requested a review from kurtisvg August 12, 2021 17:45
@kurtisvg kurtisvg requested a review from enocom August 12, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants