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

conncheck: allow to disable via config #1052

Merged
merged 2 commits into from Jan 7, 2020
Merged

Conversation

julienschmidt
Copy link
Member

@julienschmidt julienschmidt commented Jan 6, 2020

Description

Add an option to disable the conncheck introduced in #934 via config / DSN. The default is to perform this liveliness check of connections on supported platforms, if not explicitly disabled.

Fixes #996

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

@julienschmidt julienschmidt added this to the v1.5.0 milestone Jan 6, 2020
@julienschmidt julienschmidt changed the title chonncheck: allow to disable via config conncheck: allow to disable via config Jan 6, 2020
@julienschmidt julienschmidt mentioned this pull request Jan 6, 2020
5 tasks
@methane
Copy link
Member

methane commented Jan 7, 2020

I am not good at English, but I feel "liveness" is commonly used in context of healthcheck.
https://wikidiff.com/liveliness/liveness

@julienschmidt
Copy link
Member Author

Both seems to be used. E.g. Kubernetes uses "Liveness", in Red Hat Enterprise Virtualization "Liveliness" is used.
But "liveness" seems to be more fitting and was also used in #934. I'll change it.

@julienschmidt
Copy link
Member Author

@methane PTAL

@julienschmidt
Copy link
Member Author

I just pushed another minimal change, where I just fixed two occurrences of the word liveness in the description of the DSN param to be lower-cased.

@julienschmidt julienschmidt merged commit 6844171 into master Jan 7, 2020
@julienschmidt julienschmidt deleted the connncheck_optional branch January 7, 2020 11:55
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* conncheck: allow to disable via config

* dsn: refactor writing of params in FormatDSN
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* conncheck: allow to disable via config

* dsn: refactor writing of params in FormatDSN
@zjj zjj mentioned this pull request Jan 8, 2022
5 tasks
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.

conncheck should be optional
3 participants