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

View File

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