mycat配置mysql的讀寫分離

讀寫分離模式 修改mycat的schema.xml: balance爲1:讓全部的readHost及備用的writeHost參與select的負載均衡。  switchType爲2:基於MySQL主從同步的狀態決定是否切換。  heartbeat:主從切換的心跳語句必須爲show slave status。  <dataHost name="localhost1" maxCon="1000" mi
相關文章
相關標籤/搜索