Improve blocked host error message

The error now explains how the problem can be mitigated by increasing
max_connect_errors on the backend server.
This commit is contained in:
Markus Mäkelä 2019-03-02 04:20:09 +02:00
parent ab7c19e1a4
commit 7fb2ae571b
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -333,11 +333,10 @@ static void handle_error_response(DCB* dcb, GWBUF* buffer)
* This will prevent repeated authentication failures. */
if (errcode == ER_HOST_IS_BLOCKED)
{
MXS_ERROR("Server %s has been put into maintenance mode due "
"to the server blocking connections from MaxScale. "
"Run 'mysqladmin -h %s -P %d flush-hosts' on this "
"server before taking this server out of maintenance "
"mode.",
MXS_ERROR("Server %s has been put into maintenance mode due to the server blocking connections "
"from MaxScale. Run 'mysqladmin -h %s -P %d flush-hosts' on this server before taking "
"this server out of maintenance mode. To avoid this problem in the future, set "
"'max_connect_errors' to a larger value in the backend server.",
dcb->server->name,
dcb->server->address,
dcb->server->port);