|
60 | 60 | "new_reader_weight INT CHECK (new_reader_weight >= 0 AND new_reader_weight <=10000000) NOT NULL DEFAULT 1 , " \ |
61 | 61 | "add_lag_ms INT NOT NULL CHECK (add_lag_ms >= 0 AND add_lag_ms <= 600000) DEFAULT 30 , " \ |
62 | 62 | "min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , " \ |
63 | | - "lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , comment VARCHAR ," \ |
64 | | - "UNIQUE (reader_hostgroup))" |
| 63 | + "lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , " \ |
| 64 | + "autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , " \ |
| 65 | + "comment VARCHAR , UNIQUE (reader_hostgroup))" |
65 | 66 |
|
66 | 67 | #define MYHGM_GEN_ADMIN_RUNTIME_SERVERS "SELECT hostgroup_id, hostname, port, gtid_port, CASE status WHEN 0 THEN \"ONLINE\" WHEN 1 THEN \"SHUNNED\" WHEN 2 THEN \"OFFLINE_SOFT\" WHEN 3 THEN \"OFFLINE_HARD\" WHEN 4 THEN \"SHUNNED\" END status, weight, compression, max_connections, max_replication_lag, use_ssl, max_latency_ms, comment FROM mysql_servers ORDER BY hostgroup_id, hostname, port" |
67 | 68 |
|
@@ -344,14 +345,15 @@ class AWS_Aurora_Info { |
344 | 345 | int check_timeout_ms; |
345 | 346 | int writer_is_also_reader; |
346 | 347 | int new_reader_weight; |
| 348 | + int autopurge_missing_checks; |
347 | 349 | // TODO |
348 | 350 | // add intermediary status value, for example the last check time |
349 | 351 | char * domain_name; |
350 | 352 | char * comment; |
351 | 353 | bool active; |
352 | 354 | bool active_; |
353 | | - AWS_Aurora_Info(int w, int r, int _port, char *_end_addr, int maxl, int al, int minl, int lnc, int ci, int ct, bool _a, int wiar, int nrw, char *c); |
354 | | - bool update(int r, int _port, char *_end_addr, int maxl, int al, int minl, int lnc, int ci, int ct, bool _a, int wiar, int nrw, char *c); |
| 355 | + AWS_Aurora_Info(int w, int r, int _port, char *_end_addr, int maxl, int al, int minl, int lnc, int ci, int ct, bool _a, int wiar, int nrw, int amc, char *c); |
| 356 | + bool update(int r, int _port, char *_end_addr, int maxl, int al, int minl, int lnc, int ci, int ct, bool _a, int wiar, int nrw, int amc, char *c); |
355 | 357 | ~AWS_Aurora_Info(); |
356 | 358 | AWS_Aurora_Info(const AWS_Aurora_Info&) = delete; |
357 | 359 | AWS_Aurora_Info& operator=(const AWS_Aurora_Info&) = delete; |
|
0 commit comments