Health check with GUI enabled on MaxScale 2.5

129 views
Skip to first unread message

art...@gmail.com

unread,
Oct 27, 2020, 4:31:21 PM10/27/20
to MaxScale
Hi,
Would it be realistic to ever be able to use the commandline health-check option in MaxScale 2.5 with the GUI enabled? I don't want to loose a beautiful GUI, but at the same time check it is desperately needed to perform HA.

br,
Arthur

Markus Mäkelä

unread,
Oct 28, 2020, 2:29:55 AM10/28/20
to maxs...@googlegroups.com

Hi,

What do you mean by the command line health-check option? If you're talking about MaxCtrl, it works the same way even if the GUI is enabled. If you're talking about the HTTP 200 response that's sent when the root resource is requested, the functionality should still be the same but only the contents differ.

Markus

--
You received this message because you are subscribed to the Google Groups "MaxScale" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxscale+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/a514d22e-7e66-4318-9246-31fcaee26b76n%40googlegroups.com.
-- 
Markus Mäkelä, Senior Software Engineer
MariaDB Corporation
t: +358 40 7740484

art...@gmail.com

unread,
Oct 28, 2020, 4:17:19 PM10/28/20
to MaxScale
Hi,
Thank you for your response.
Some clarifications. Yes, I've analyse HTTP 200 OK. With previous versions of MaxScale (up to 2.4.13) I have set listener on port 6444:

[MaxInfo-JSON-Listener]
type=listener
service=MaxInfo
protocol=HTTPD
port=6444

and do health-check by command:
and got a compact answer like:

HTTP/1.1 200 OK
Date: Wed, 28 Oct 2020 21:47:54 GMT
Server: MaxScale(c) v.1.0.0
Connection: close
WWW-Authenticate: Basic realm="MaxInfo"
Content-Type: application/json

The closest analogue for this  with version 2.5 and GUI enabled I found with this query:
Yes, it indeed return HTTP 200 OK as well, but with big body (json data) (Content-Length: 5095).

May be there exists any other URL that will give me HTTP 200, but without or with smaller body?


br,
Arthur

Markus Mäkelä

unread,
Oct 29, 2020, 3:32:42 AM10/29/20
to maxs...@googlegroups.com

Hi,

You could use `http://localhost:8989/maxscale/threads/0?pretty=false`. This will always work and it'll return around 500 bytes of data in the payload which is an improvement over the 5000 bytes of the `monitors` endpoint.

With the addition of the MaxScale GUI, there's really no resources that would return the minimal payload. We could add a health check endpoint that would return a 200 OK without a body. If you can, please open an issue about this on the MariaDB Jira under the MaxScale project and describe the issue you're facing.

Markus

Reply all
Reply to author
Forward
0 new messages