0
我試圖設置maxscale以使用schemarouter和readwritesplit。 我有很多我的mysql數據庫的碎片。每個分片都有一個從屬節點 所以,想法是在主節點上使用一個模式路由器,在從節點上使用一個模式路由器來代理所有分片。然後在readwritesplit中使用這2個服務。Maxscale:將readwritesplit和schemarouter結合起來
This cause the following issue:
2017-02-10 14:57:48 error : Failure loading users data from backend [10.161.66.145:4009] for service [Splitter Service]. MySQL error 2013, Lost connection to MySQL server at 'handshake: waiting for inital communication packet', system error: 110
2017-02-10 14:57:52 error : Failure loading users data from backend [10.161.66.145:4008] for service [Splitter Service]. MySQL error 2013, Lost connection to MySQL server at 'reading authorization packet', system error: 110
2017-02-10 14:57:52 error : Unable to get user data from backend database for service [Splitter Service]. Failed to connect to any of the backend databases.
任何幫助將是不錯的。
我的schemarouter都工作正常。 這裏是readwritesplit配置:
[max_ro]
type=server
address=10.10.10.10
port=4009
protocol=MySQLBackend
[max_rw]
type=server
address=10.10.10.10
port=4008
protocol=MySQLBackend
[Splitter Service]
type=service
router=readwritesplit
servers=max_ro,max_rw
user=maxscale
passwd=maxscale
[Splitter Listener]
type=listener
service=Splitter Service
protocol=MySQLClient
port=4010
感謝