Bug 245829 - [NEW PORT] databases/httpwsrep: HTTP status codes for galera cluster
Summary: [NEW PORT] databases/httpwsrep: HTTP status codes for galera cluster
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://crates.io/crates/httpwsrep
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-22 16:32 UTC by nbari
Modified: 2020-04-22 16:33 UTC (History)
0 users

See Also:


Attachments
httpwsrep shar (40.30 KB, text/plain)
2020-04-22 16:32 UTC, nbari
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nbari 2020-04-22 16:32:28 UTC
Created attachment 213699 [details]
httpwsrep shar

This helps to check a galera cluster using HAProxy - option httpchk
which queries the galera node and gets its current state from:
SHOW STATUS LIKE 'wsrep_local_state';

If wsrep_local_state == 4 it will return 'HTTP 200 OK', otherwise
'HTTP 503 Service Unavailable'

https://youtu.be/yylV9WntnB4

WWW: https://crates.io/crates/httpwsrep