@@ -10297,7 +10297,13 @@ void ProxySQL_Admin::enable_aurora_testing() {
10297
10297
if (j==1) {
10298
10298
serverid = "host." + std::to_string(j) + "." + std::to_string(i+11) + ".aws-test.com";
10299
10299
} else {
10300
- serverid = "127.0." + std::to_string(j) + "." + std::to_string(i+11);
10300
+ if (j==2) {
10301
+ serverid = "host." + std::to_string(j) + "." + std::to_string(i+11) + ".cluster2.aws.test";
10302
+ } else {
10303
+ if (j==3) {
10304
+ serverid = "host." + std::to_string(j) + "." + std::to_string(i+11) + ".aws.3.test.com";
10305
+ }
10306
+ }
10301
10307
}
10302
10308
string sessionid= "";
10303
10309
sessionid = "b80ef4b4-" + serverid + "-aa01";
@@ -10312,8 +10318,8 @@ void ProxySQL_Admin::enable_aurora_testing() {
10312
10318
}
10313
10319
sqlite3_finalize(statement);
10314
10320
admindb->execute("INSERT INTO mysql_aws_aurora_hostgroups (writer_hostgroup, reader_hostgroup, active, domain_name, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, comment) VALUES (1271, 1272, 1, '.aws-test.com', 25, 120, 90, 1, 1, 'Automated Aurora Testing Cluster 1')");
10315
- admindb->execute("INSERT INTO mysql_aws_aurora_hostgroups (writer_hostgroup, reader_hostgroup, active, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, comment) VALUES (1273, 1274, 1, 25, 120, 90, 0, 1, 'Automated Aurora Testing Cluster 2')");
10316
- admindb->execute("INSERT INTO mysql_aws_aurora_hostgroups (writer_hostgroup, reader_hostgroup, active, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, comment) VALUES (1275, 1276, 1, 25, 120, 90, 0, 2, 'Automated Aurora Testing Cluster 3')");
10321
+ admindb->execute("INSERT INTO mysql_aws_aurora_hostgroups (writer_hostgroup, reader_hostgroup, active, domain_name, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, comment) VALUES (1273, 1274, 1, '.cluster2.aws.test' , 25, 120, 90, 0, 1, 'Automated Aurora Testing Cluster 2')");
10322
+ admindb->execute("INSERT INTO mysql_aws_aurora_hostgroups (writer_hostgroup, reader_hostgroup, active, domain_name, max_lag_ms, check_interval_ms, check_timeout_ms, writer_is_also_reader, new_reader_weight, comment) VALUES (1275, 1276, 1, '.aws.3.test.com' , 25, 120, 90, 0, 2, 'Automated Aurora Testing Cluster 3')");
10317
10323
admindb->execute("UPDATE mysql_aws_aurora_hostgroups SET active=1");
10318
10324
//admindb->execute("update mysql_servers set max_replication_lag=20");
10319
10325
load_mysql_servers_to_runtime();
0 commit comments