[v18] disable mysql health check#58331
Merged
GavinFrazar merged 2 commits intobranch/v18from Aug 26, 2025
Merged
Conversation
MySQL automatically blocks remote clients that fail to handshake. Every TCP health check is counted as a failed handshake, eventually leading to the database blocking the Teleport database agent. MySQL's automatic host blocking feature can be effectively disabled by setting max_connect_errors to a very large value, but to avoid triggering service outages we should disable MySQL health checks by default. For now, an env var TELEPORT_ENABLE_MYSQL_DB_HEALTH_CHECKS can be set on the Teleport database service to enable MySQL health checks again.
Contributor
|
Amplify deployment status
|
r0mant
approved these changes
Aug 25, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports #58277 to branch/v18.
Changelog: Disabled MySQL database health checks to avoid MySQL blocking the Teleport Database Service for too many connection errors. MySQL health checks can be re-enabled by setting max_connect_errors on MySQL to its maximum value and setting the environment variable TELEPORT_ENABLE_MYSQL_DB_HEALTH_CHECKS=1 on the Teleport Database Service instance.