Added a simple test for dbshard router.

The test sets a session variable and queries a union of this variable and a value in each of the databases.
This commit is contained in:
Markus Makela
2014-12-17 13:44:44 +02:00
parent 6013009c13
commit e6fca9b50d
5 changed files with 230 additions and 0 deletions

View File

@ -57,6 +57,13 @@ user=maxuser
passwd=maxpwd
filters=Hint
[DBShard Router]
type=service
router=dbshard
servers=server1,server2,server3,server4
user=maxuser
passwd=maxpwd
[RW Split Hint Router]
type=service
router=readwritesplit
@ -109,6 +116,12 @@ service=RW Split Router
protocol=MySQLClient
port=4006
[DBShard Listener]
type=listener
service=DBShard Router
protocol=MySQLClient
port=4010
[RW Split Hint Listener]
type=listener
service=RW Split Hint Router