So, i tried to set up the readwritesplit router with 1 master and 1 slave. Here, the replication mechanism worked fine but the queries are always executed on the master server.
Example output for a read query:
mysql -h localhost -u maxuser -p test -e "select c1, @@server_id from t1"
Enter password:
+------+-------------+
| c1 | @@server_id |
+------+-------------+
| 1 | 1 |
+------+-------------+
server_id for master is 1 whereas for slave it is 11, which is never displayed in the output.