I have an AWS RDS with 1 read replica (total 2 instances). I'm planning to install mysqlnd_ms plugin so that I can have my request pointed to the database servers in round robin fashion.
I have 2 basic questions which I couldn't find direct answers in documentation
- Using mysqlnd_ms, is there a way to say, not all select queries should point to slave(read replica). Each request should be alternatively pointed to the existing instances
- Suppose if we run 2 queries per request, then does each of the query points to 1 instance? This means it will be opening 2 database connections for each request? Am I understanding this correctly