forked from MariaDB/mariadb-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
healthcheck.sh --connect large noise in error log
The --connect test does a tcp connection. There is no mysql@::1 or mysql@127.0.0.1 user created so the access is denied, but the healtcheck is correct. The entries in the error log because of the default log_warnings=2. To avoid hitting max_connect_errors (default 100), a non-connection way is to look at the proc status for listening sockets. While normally not a direct correlation to a connection, mariadb listens and is followed by accepting connections immedately without anything that can fail inbetween. We move the previous connect to mariadb_connect for compatibility if users want to continue with that mechanism. We pre-emtively create tcp listen as a mechanism and redirect connect to that. Closes MariaDB#430
- Loading branch information
1 parent
942cd53
commit 003ee86
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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