-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#define PORT 8306 /* TCP listening port */ | ||
#define LISTENQ 128 /* TCP Backlog for listen() */ | ||
#define BUFSIZE 128 /* character buffer */ | ||
#define DEFAULT_HTTP_CODE 502 /* default to bad HTTP status code */ | ||
|
||
#define MYSQL_HOST "::1" | ||
#define MYSQL_USER "haproxy" | ||
#define MYSQL_PASSWORD "" | ||
|
||
#ifdef __APPLE__ | ||
#define MSG_NOSIGNAL 0x0 /* send(2) */ | ||
#endif | ||
|
||
#ifdef __MYSQL__ | ||
#define GOOD_IO_RUNNING "Yes" /* I/O thread */ | ||
#define GOOD_SQL_RUNNING "Yes" /* SQL thread */ | ||
#define GOOD_SECONDS_BEHIND 4 /* maximum acceptable lag behind master */ | ||
|
||
#define QUERY "show slave status" | ||
|
||
#elif __GALERA__ | ||
#define GOOD_GALERA_STATUS "4" /* wsrep_local_state */ | ||
#define READ_ONLY_STATUS "OFF" | ||
|
||
#define QUERY_WSREP_STATE "show global status where " \ | ||
"variable_name='wsrep_local_state'" | ||
#define QUERY_READ_ONLY "show global variables like 'read_only'" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters