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
Depends on:
Reported: 2020-04-22 16:32 UTC by nbari
Modified: 2021-01-25 15:17 UTC (History)
1 user (show)

See Also:
egypcio: maintainer-feedback-

httpwsrep shar (40.30 KB, text/plain)
2020-04-22 16:32 UTC, nbari
no flags Details
update to latest version (44.10 KB, text/plain)
2020-07-16 22:48 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'


WWW: https://crates.io/crates/httpwsrep
Comment 1 nbari 2020-07-16 22:48:41 UTC
Created attachment 216502 [details]
update to latest version
Comment 2 Vinícius Zavam freebsd_committer 2021-01-25 15:16:33 UTC
I am not the maintainer of this one. sorry