Read/Read-Write URIs for Amazon Web Services RDS
问题 I am using HAProxy to for AWS RDS (MySQL) load balancing for my app, that is written using Flask. The HAProxy.cfg file has following configuration for the DB listen mysql bind 127.0.0.1:3306 mode tcp balance roundrobin option mysql-check user haproxy_check option log-health-checks server db01 MASTER_DATABSE_ENDPOINT.rds.amazonaws.com server db02 READ_REPLICA_ENDPOINT.rds.amazonaws.com I am using SQLALCHEMY and it's URI is: SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://USER:PASSWORD@127.0.0.1