It's regarding this instruction from AWS.
I am not sure if there is an issue with hostgroup_id. When I run “SELECT hostgroup_id, hostname, status FROM mysql_servers;” , it show 10 for the master, and 20 for the read replica, however, after I run the “LOAD MYSQL SERVERS TO RUNTIME; SAVE MYSQL SERVERS TO DISK;”, the hostgroup_id both hosts are all change to 20. Is it normal? Please advise. Thanks
ProxySQLAdmin> INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight,max_connections) VALUES ('uatrds1.ap-southeast-2.rds.amazonaws.com
',10,3306,1000,10000);
Query OK, 1 row affected (0.00 sec)
ProxySQLAdmin> INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight,max_connections) VALUES ('uatreadreplica.ap-southeast-2.rds.amazonaws.com
',20,3306,1000,10000);
Query OK, 1 row affected (0.00 sec)
ProxySQLAdmin> SELECT hostgroup_id, hostname, status FROM mysql_servers;
+--------------+--------------------------------------------------------------+--------+
| hostgroup_id | hostname | status |
+--------------+--------------------------------------------------------------+--------+
| 10 | uatrds1.ap-southeast-2.rds.amazonaws.com
| ONLINE |
| 20 | uatreadreplica.ap-southeast-2.rds.amazonaws.com
| ONLINE |
+--------------+--------------------------------------------------------------+--------+
ProxySQLAdmin> LOAD MYSQL SERVERS TO RUNTIME;
Query OK, 0 rows affected (0.00 sec)
ProxySQLAdmin> SAVE MYSQL SERVERS TO DISK;
Query OK, 0 rows affected (0.02 sec)
ProxySQLAdmin> SELECT hostgroup_id, hostname, status FROM mysql_servers;
+--------------+--------------------------------------------------------------+--------+
| hostgroup_id | hostname | status |
+--------------+--------------------------------------------------------------+--------+
| 20 | uatrds1.ap-southeast-2.rds.amazonaws.com
| ONLINE |
| 20 | uatreadreplica.ap-southeast-2.rds.amazonaws.com
| ONLINE |
+--------------+--------------------------------------------------------------+--------+
2 rows in set (0.00 sec)