Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b8868e3
docs: add AWS Aurora blue green design specs
wazir-ahmed Jul 31, 2026
4876a87
docs: refine Aurora BGD monitor FSM design
wazir-ahmed Aug 1, 2026
9bf316d
docs: finalize Aurora BGD simulator testing design
wazir-ahmed Aug 12, 2026
360e8eb
docs: approve Aurora BGD configuration and FSM designs
wazir-ahmed Aug 12, 2026
f6a83fe
docs: decouple Aurora BGD spec from local evidence path
wazir-ahmed Aug 12, 2026
05f9c43
docs: address Aurora BGD review feedback
wazir-ahmed Aug 12, 2026
ea8fb46
docs: record Aurora BGD status contract
wazir-ahmed Aug 13, 2026
529295f
docs: clarify Aurora BGD switchover lifecycle
wazir-ahmed Aug 13, 2026
e06fa1a
feat: add Aurora BGD hostgroup schema
wazir-ahmed Aug 13, 2026
5a68861
feat: publish Aurora BGD runtime status
wazir-ahmed Aug 13, 2026
e670d32
feat: persist Aurora BGD configuration fields
wazir-ahmed Aug 13, 2026
d085604
feat: synchronize Aurora BGD configuration
wazir-ahmed Aug 13, 2026
8e67581
fix: exclude Aurora BGD status from cluster checksum
wazir-ahmed Aug 13, 2026
7a73035
refactor: simplify Aurora BGD configuration paths
wazir-ahmed Aug 13, 2026
3d9c54a
test: streamline Aurora BGD phase 1 coverage
wazir-ahmed Aug 13, 2026
f98563e
refactor: share AWS BGD simulator topology
wazir-ahmed Aug 13, 2026
982baeb
feat: add Aurora replica simulator service
wazir-ahmed Aug 13, 2026
f3407bf
test: add Aurora BGD simulator controls
wazir-ahmed Aug 13, 2026
1c3702c
test: migrate Aurora scenarios to replica sets
wazir-ahmed Aug 13, 2026
5f6ed80
fix: harden Aurora simulator publication
wazir-ahmed Aug 14, 2026
25716bb
docs: clarify Aurora BGD status publisher contract
wazir-ahmed Aug 14, 2026
49c1c29
refactor: clarify Aurora simulator publication modes
wazir-ahmed Aug 14, 2026
d290158
Merge branch 'v3.0' into feat/aws-aurora-bgd
wazir-ahmed Aug 15, 2026
e437b3b
feat: add Aurora BGD discovery and membership tracking
wazir-ahmed Aug 15, 2026
d5f486a
feat: handle Aurora BGD active switchover
wazir-ahmed Aug 15, 2026
931df1e
feat: complete Aurora BGD switchover
wazir-ahmed Aug 15, 2026
561bff5
feat: harden Aurora BGD lifecycle handling
wazir-ahmed Aug 15, 2026
1456064
test: organize Aurora BGD simulator coverage
wazir-ahmed Aug 16, 2026
d8b5e6b
fix: address Aurora BGD phase 3 review
wazir-ahmed Aug 16, 2026
cb6445b
fix: harden Aurora BGD snapshot refresh
wazir-ahmed Aug 16, 2026
f957d0b
fix: finalize Aurora BGD phase 3 review
wazir-ahmed Aug 16, 2026
3c3877a
test: correlate Aurora routing probes
wazir-ahmed Aug 16, 2026
529ab6f
test: simplify Aurora BGD simulator coverage
wazir-ahmed Aug 17, 2026
cf3c35e
Merge branch 'v3.0' into feat/aws-aurora-bgd
wazir-ahmed Aug 20, 2026
02d6546
docs: document Aurora blue-green support
wazir-ahmed Aug 20, 2026
ad59272
test: tighten Aurora BGD scenario helpers
wazir-ahmed Aug 20, 2026
8894142
Merge remote-tracking branch 'origin/v3.0' into feat/aws-aurora-bgd
renecannao Sep 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

32 changes: 29 additions & 3 deletions include/MySQL_HostGroups_Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <atomic>
#include <thread>
#include <mutex>
#include <string>
#include <vector>

#include "ev.h"
#include "wqueue.h"
Expand Down Expand Up @@ -52,6 +54,8 @@
#define MYHGM_MYSQL_GALERA_HOSTGROUPS "CREATE TABLE mysql_galera_hostgroups (writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , backup_writer_hostgroup INT CHECK (backup_writer_hostgroup>=0 AND backup_writer_hostgroup<>writer_hostgroup) NOT NULL , reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND backup_writer_hostgroup<>reader_hostgroup AND reader_hostgroup>0) , offline_hostgroup INT NOT NULL CHECK (offline_hostgroup<>writer_hostgroup AND offline_hostgroup<>reader_hostgroup AND backup_writer_hostgroup<>offline_hostgroup AND offline_hostgroup>=0) , active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , max_writers INT NOT NULL CHECK (max_writers >= 0) DEFAULT 1 , writer_is_also_reader INT CHECK (writer_is_also_reader IN (0,1,2)) NOT NULL DEFAULT 0 , max_transactions_behind INT CHECK (max_transactions_behind>=0) NOT NULL DEFAULT 0 , comment VARCHAR , UNIQUE (reader_hostgroup) , UNIQUE (offline_hostgroup) , UNIQUE (backup_writer_hostgroup))"

#define MYHGM_MYSQL_AWS_AURORA_HOSTGROUPS "CREATE TABLE mysql_aws_aurora_hostgroups (writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND reader_hostgroup>0) , " \
"green_writer_hostgroup INT DEFAULT NULL CHECK (green_writer_hostgroup IS NULL OR green_writer_hostgroup>=0) , " \
"green_reader_hostgroup INT DEFAULT NULL CHECK (green_reader_hostgroup IS NULL OR green_reader_hostgroup>=0) , " \
"active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , aurora_port INT NOT NUlL DEFAULT 3306 , domain_name VARCHAR NOT NULL DEFAULT '' , " \
"max_lag_ms INT NOT NULL CHECK (max_lag_ms>= 10 AND max_lag_ms <= 600000) DEFAULT 600000 , " \
"check_interval_ms INT NOT NULL CHECK (check_interval_ms >= 100 AND check_interval_ms <= 600000) DEFAULT 1000 , " \
Expand All @@ -62,7 +66,7 @@
"min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , " \
"lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , " \
"autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , " \
"comment VARCHAR , UNIQUE (reader_hostgroup))"
"comment VARCHAR , bgd_status VARCHAR NOT NULL DEFAULT 'NONE' , UNIQUE (reader_hostgroup))"
Comment thread
gitar-bot[bot] marked this conversation as resolved.

#define MYHGM_MYSQL_AWS_RDS_BGD_HOSTGROUPS "CREATE TABLE mysql_aws_rds_bgd_hostgroups ("\
"writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , "\
Expand Down Expand Up @@ -356,6 +360,8 @@ class AWS_Aurora_Info {
public:
int writer_hostgroup;
int reader_hostgroup;
int green_writer_hostgroup;
int green_reader_hostgroup;
int aurora_port;
int max_lag_ms;
int add_lag_ms;
Expand All @@ -372,13 +378,25 @@ class AWS_Aurora_Info {
char * comment;
bool active;
bool active_;
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);
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);
AWS_Aurora_Info(int w, int r, int gw, int gr, 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);
bool update(int r, int gw, int gr, 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);
~AWS_Aurora_Info();
AWS_Aurora_Info(const AWS_Aurora_Info&) = delete;
AWS_Aurora_Info& operator=(const AWS_Aurora_Info&) = delete;
};

/**
* @brief Validate an Aurora hostgroup candidate and return its canonical configured projection.
*
* The returned result contains only valid rows, ordered like the Aurora Admin
* table. Legacy projections without green hostgroups are normalized with both
* green values set to SQL NULL. The caller owns the returned result.
*/
SQLite3_result* validate_and_filter_aws_aurora_hostgroups(
const SQLite3_result* candidate,
std::vector<std::string>& errors
);

struct p_hg_counter {
enum metric {
servers_table_version = 0,
Expand Down Expand Up @@ -770,6 +788,7 @@ class MySQL_HostGroups_Manager : public Base_HostGroups_Manager<MyHGC> {
public:
// Friend declaration for WebUI monitoring metrics collector
friend class ProxySQL::Monitoring::MetricsCollector;
friend class TestAuroraBGDRuntime;

std::mutex galera_set_writer_mutex;
/**
Expand Down Expand Up @@ -1104,6 +1123,13 @@ class MySQL_HostGroups_Manager : public Base_HostGroups_Manager<MyHGC> {
* @param status AWS_RDS_BGD_Status underlying value.
*/
void aws_rds_bgd_set_runtime_status(unsigned int writer_hg, int status);
/**
* @brief Publish the node-local Aurora BGD state for one runtime row.
*
* Invalid status strings and writer hostgroups not present at runtime are
* ignored. Configuration reloads do not write this column.
*/
void update_aws_aurora_bgd_status(int writer_hostgroup, const std::string& bgd_status);
/**
* @brief Aligns the runtime 'mysql_servers' table + checksums with the server state in MyHGM.
*
Expand Down
44 changes: 41 additions & 3 deletions include/ProxySQL_Admin_Tables_Definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,47 @@
// V2_0_10: Adds autopurge_missing_checks column
#define ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS_V2_0_10 "CREATE TABLE mysql_aws_aurora_hostgroups (writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND reader_hostgroup>0) , active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , aurora_port INT NOT NUlL DEFAULT 3306 , domain_name VARCHAR NOT NULL CHECK (SUBSTR(domain_name,1,1) = '.') , max_lag_ms INT NOT NULL CHECK (max_lag_ms>= 10 AND max_lag_ms <= 600000) DEFAULT 600000 , check_interval_ms INT NOT NULL CHECK (check_interval_ms >= 100 AND check_interval_ms <= 600000) DEFAULT 1000 , check_timeout_ms INT NOT NULL CHECK (check_timeout_ms >= 80 AND check_timeout_ms <= 3000) DEFAULT 800 , writer_is_also_reader INT CHECK (writer_is_also_reader IN (0,1)) NOT NULL DEFAULT 0 , new_reader_weight INT CHECK (new_reader_weight >= 0 AND new_reader_weight <=10000000) NOT NULL DEFAULT 1 , add_lag_ms INT NOT NULL CHECK (add_lag_ms >= 0 AND add_lag_ms <= 600000) DEFAULT 30 , min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , comment VARCHAR , UNIQUE (reader_hostgroup))"

#define ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS_V2_0_10

#define ADMIN_SQLITE_TABLE_RUNTIME_MYSQL_AWS_AURORA_HOSTGROUPS "CREATE TABLE runtime_mysql_aws_aurora_hostgroups (writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND reader_hostgroup>0) , active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , aurora_port INT NOT NUlL DEFAULT 3306 , domain_name VARCHAR NOT NULL CHECK (SUBSTR(domain_name,1,1) = '.') , max_lag_ms INT NOT NULL CHECK (max_lag_ms>= 10 AND max_lag_ms <= 600000) DEFAULT 600000 , check_interval_ms INT NOT NULL CHECK (check_interval_ms >= 100 AND check_interval_ms <= 600000) DEFAULT 1000 , check_timeout_ms INT NOT NULL CHECK (check_timeout_ms >= 80 AND check_timeout_ms <= 3000) DEFAULT 800 , writer_is_also_reader INT CHECK (writer_is_also_reader IN (0,1)) NOT NULL DEFAULT 0 , new_reader_weight INT CHECK (new_reader_weight >= 0 AND new_reader_weight <=10000000) NOT NULL DEFAULT 1 , add_lag_ms INT NOT NULL CHECK (add_lag_ms >= 0 AND add_lag_ms <= 600000) DEFAULT 30 , min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , comment VARCHAR , UNIQUE (reader_hostgroup))"
// V3_0_12: Adds nullable Aurora blue/green staging hostgroups.
#define ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS_V3_0_12 "CREATE TABLE mysql_aws_aurora_hostgroups ("\

Check failure on line 239 in include/ProxySQL_Admin_Tables_Definitions.h

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this macro by "const", "constexpr" or an "enum".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ_6yOkEzS2Z8t3kyMiR&open=AZ_6yOkEzS2Z8t3kyMiR&pullRequest=6044
"writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , "\
"reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND reader_hostgroup>0) , "\
"green_writer_hostgroup INT DEFAULT NULL CHECK (green_writer_hostgroup IS NULL OR green_writer_hostgroup>=0) , "\
"green_reader_hostgroup INT DEFAULT NULL CHECK (green_reader_hostgroup IS NULL OR green_reader_hostgroup>=0) , "\
"active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , "\
"aurora_port INT NOT NUlL DEFAULT 3306 , "\
"domain_name VARCHAR NOT NULL CHECK (SUBSTR(domain_name,1,1) = '.') , "\
"max_lag_ms INT NOT NULL CHECK (max_lag_ms>= 10 AND max_lag_ms <= 600000) DEFAULT 600000 , "\
"check_interval_ms INT NOT NULL CHECK (check_interval_ms >= 100 AND check_interval_ms <= 600000) DEFAULT 1000 , "\
"check_timeout_ms INT NOT NULL CHECK (check_timeout_ms >= 80 AND check_timeout_ms <= 3000) DEFAULT 800 , "\
"writer_is_also_reader INT CHECK (writer_is_also_reader IN (0,1)) NOT NULL DEFAULT 0 , "\
"new_reader_weight INT CHECK (new_reader_weight >= 0 AND new_reader_weight <=10000000) NOT NULL DEFAULT 1 , "\
"add_lag_ms INT NOT NULL CHECK (add_lag_ms >= 0 AND add_lag_ms <= 600000) DEFAULT 30 , "\
"min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , "\
"lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , "\
"autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , "\
"comment VARCHAR , UNIQUE (reader_hostgroup))"

#define ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS ADMIN_SQLITE_TABLE_MYSQL_AWS_AURORA_HOSTGROUPS_V3_0_12

#define ADMIN_SQLITE_TABLE_RUNTIME_MYSQL_AWS_AURORA_HOSTGROUPS "CREATE TABLE runtime_mysql_aws_aurora_hostgroups ("\

Check failure on line 260 in include/ProxySQL_Admin_Tables_Definitions.h

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this macro by "const", "constexpr" or an "enum".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ_6yOkEzS2Z8t3kyMiS&open=AZ_6yOkEzS2Z8t3kyMiS&pullRequest=6044
"writer_hostgroup INT CHECK (writer_hostgroup>=0) NOT NULL PRIMARY KEY , "\
"reader_hostgroup INT NOT NULL CHECK (reader_hostgroup<>writer_hostgroup AND reader_hostgroup>0) , "\
"green_writer_hostgroup INT DEFAULT NULL CHECK (green_writer_hostgroup IS NULL OR green_writer_hostgroup>=0) , "\
"green_reader_hostgroup INT DEFAULT NULL CHECK (green_reader_hostgroup IS NULL OR green_reader_hostgroup>=0) , "\
"active INT CHECK (active IN (0,1)) NOT NULL DEFAULT 1 , "\
"aurora_port INT NOT NUlL DEFAULT 3306 , "\
"domain_name VARCHAR NOT NULL CHECK (SUBSTR(domain_name,1,1) = '.') , "\
"max_lag_ms INT NOT NULL CHECK (max_lag_ms>= 10 AND max_lag_ms <= 600000) DEFAULT 600000 , "\
"check_interval_ms INT NOT NULL CHECK (check_interval_ms >= 100 AND check_interval_ms <= 600000) DEFAULT 1000 , "\
"check_timeout_ms INT NOT NULL CHECK (check_timeout_ms >= 80 AND check_timeout_ms <= 3000) DEFAULT 800 , "\
"writer_is_also_reader INT CHECK (writer_is_also_reader IN (0,1)) NOT NULL DEFAULT 0 , "\
"new_reader_weight INT CHECK (new_reader_weight >= 0 AND new_reader_weight <=10000000) NOT NULL DEFAULT 1 , "\
"add_lag_ms INT NOT NULL CHECK (add_lag_ms >= 0 AND add_lag_ms <= 600000) DEFAULT 30 , "\
"min_lag_ms INT NOT NULL CHECK (min_lag_ms >= 0 AND min_lag_ms <= 600000) DEFAULT 30 , "\
"lag_num_checks INT NOT NULL CHECK (lag_num_checks >= 1 AND lag_num_checks <= 16) DEFAULT 1 , "\
"autopurge_missing_checks INT NOT NULL CHECK (autopurge_missing_checks >= 0 AND autopurge_missing_checks <= 100) DEFAULT 0 , "\
"comment VARCHAR , "\
"bgd_status VARCHAR NOT NULL DEFAULT 'NONE' , UNIQUE (reader_hostgroup))"

// AWS RDS hostgroups; adds blue/green (green_*_hostgroup) over aurora.
// The runtime table carries one extra runtime-only column: auto_generated.
Expand Down
2 changes: 1 addition & 1 deletion include/ProxySQL_Cluster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#define CLUSTER_QUERY_PGSQL_SERVERS_SSL_PARAMS "PROXY_SELECT hostname, port, username, ssl_ca, ssl_cert, ssl_key, ssl_crl, ssl_crlpath, ssl_protocol_version_range, comment FROM runtime_pgsql_servers_ssl_params ORDER BY hostname, port, username"

/* @brief Query to be intercepted by 'ProxySQL_Admin' for 'runtime_mysql_aws_aurora_hostgroups'. See top comment for details. */
#define CLUSTER_QUERY_MYSQL_AWS_AURORA "PROXY_SELECT writer_hostgroup, reader_hostgroup, active, aurora_port, domain_name, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, add_lag_ms, min_lag_ms, lag_num_checks, autopurge_missing_checks, comment FROM runtime_mysql_aws_aurora_hostgroups ORDER BY writer_hostgroup"
#define CLUSTER_QUERY_MYSQL_AWS_AURORA "PROXY_SELECT writer_hostgroup, reader_hostgroup, green_writer_hostgroup, green_reader_hostgroup, active, aurora_port, domain_name, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, add_lag_ms, min_lag_ms, lag_num_checks, autopurge_missing_checks, comment FROM runtime_mysql_aws_aurora_hostgroups ORDER BY writer_hostgroup"
Comment thread
wazir-ahmed marked this conversation as resolved.
Comment thread
coderabbitai[bot] marked this conversation as resolved.

/* @brief Query to be intercepted by 'ProxySQL_Admin' for 'runtime_mysql_aws_rds_bgd_hostgroups'. See top comment for details. */
#define CLUSTER_QUERY_MYSQL_AWS_RDS_BGD "PROXY_SELECT writer_hostgroup, reader_hostgroup, green_writer_hostgroup, green_reader_hostgroup, active, writer_is_also_reader, check_interval_ms, check_timeout_ms, comment, auto_generated, status FROM runtime_mysql_aws_rds_bgd_hostgroups WHERE auto_generated=0 ORDER BY writer_hostgroup"
Expand Down
1 change: 1 addition & 0 deletions include/proxysql_admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ struct FlushVariableStats {

class ProxySQL_Admin {
friend class TestDiskUpgrade;
friend class TestAuroraBGDRuntime;
private:
volatile int main_shutdown;

Expand Down
6 changes: 5 additions & 1 deletion lib/Admin_Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4501,7 +4501,11 @@ void admin_session_handler(S* sess, void *_pa, PtrSize_t *pkt) {
(query_no_space_length==sizeof("CHECKSUM MEM MYSQL AURORA HOSTGROUPS") - 1 && !strncasecmp("CHECKSUM MEM MYSQL AURORA HOSTGROUPS", query_no_space, query_no_space_length))
||
(query_no_space_length==sizeof("CHECKSUM MYSQL AURORA HOSTGROUPS") - 1 && !strncasecmp("CHECKSUM MYSQL AURORA HOSTGROUPS", query_no_space, query_no_space_length))){
char *q=(char *)"SELECT * FROM mysql_aws_aurora_hostgroups ORDER BY writer_hostgroup";
char *q=(char *)
"SELECT writer_hostgroup,reader_hostgroup,green_writer_hostgroup,green_reader_hostgroup,active,"
"aurora_port,domain_name,max_lag_ms,check_interval_ms,check_timeout_ms,writer_is_also_reader,"
"new_reader_weight,add_lag_ms,min_lag_ms,lag_num_checks,autopurge_missing_checks,comment "
"FROM mysql_aws_aurora_hostgroups ORDER BY writer_hostgroup";
tablename=(char *)"MYSQL AURORA HOSTGROUPS";
SPA->admindb->execute_statement(q, &error, &cols, &affected_rows, &resultset);
}
Expand Down
Loading
Loading