67 68互为主从 66为67从

区分双主写的数据,设置不同的自增id

67:

SET @@auto_increment_offset=2;
SET @@auto_increment_increment=2;

68:

SET @@auto_increment_offset=1;
SET @@auto_increment_increment=2;

查询日志

jvm 1    | 2018-08-22 03:56:30,730 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SET PROFILING=1;  (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,730 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SET PROFILING=1 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,731 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,732 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,732 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:56:30,733 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:56:30,733 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:56:30,734 [DEBUG][$_NIOREACTOR-1-RW] con need syn ,total syn cmd 1 commands SET names utf8;schema change:false con:MySQLConnection [id=18, lastTime=1534881390734, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=27, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=0], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.mysql.nio.MySQLConnection:MySQLConnection.java:448)
jvm 1 | 2018-08-22 03:56:30,743 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=18, lastTime=1534881390721, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=27, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.66, port=3306, statusSync=io.mycat.backend.mysql.nio.MySQLConnection$StatusSync@6b32ea32, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:56:30,743 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=18, lastTime=1534881390721, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=27, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:56:30,746 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,747 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,747 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:56:30,748 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:56:30,748 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:56:30,748 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:56:30,748 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:56:30,749 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:56:30,749 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:56:30,749 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:56:30,755 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534881390745, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:56:30,755 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534881390745, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:56:30,781 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] select * from user; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,781 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,782 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache hit cache ,key:MEMBERselect * from user (io.mycat.cache.impl.EnchachePool:EnchachePool.java:71)
jvm 1 | 2018-08-22 03:56:30,782 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user, route={
jvm 1 | 1 -> dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:56:30,783 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:56:30,784 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:56:30,785 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534881390780, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, respHandler=SingleNodeHandler [node=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, packetId=10], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:56:30,786 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534881390780, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:56:30,809 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,810 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,810 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:56:30,811 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:56:30,811 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:56:30,811 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:56:30,812 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:56:30,812 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:56:30,812 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:56:30,812 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:56:30,817 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534881390800, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:56:30,818 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534881390800, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:56:30,822 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,823 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:30,823 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache miss cache ,key:MEMBERSELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 03:56:30,826 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID, route={
jvm 1 | 1 -> dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:56:30,828 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:56:30,828 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:56:30,828 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:56:30,829 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:56:30,829 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:56:30,829 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:56:30,829 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:56:30,831 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=13, lastTime=1534881390819, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=22, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=4], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:56:30,831 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=13, lastTime=1534881390819, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=22, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:56:30,832 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:30,833 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:31,080 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:56:31,080 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:56:31,081 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache miss cache ,key:MEMBERSELECT * FROM `member`.`user` LIMIT 0 (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 03:56:31,084 [WARN ][$_NIOREACTOR-1-RW] find no Route:SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.route.parser.druid.impl.DruidSelectParser:DruidSelectParser.java:436)
jvm 1 | 2018-08-22 03:56:31,084 [WARN ][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 err:java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0 java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.tryRoute(DruidSelectParser.java:437)
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.changeSql(DruidSelectParser.java:287)
jvm 1 | at io.mycat.route.parser.druid.impl.DefaultDruidParser.parser(DefaultDruidParser.java:67)
jvm 1 | at io.mycat.route.impl.DruidMycatRouteStrategy.routeNormalSqlWithAST(DruidMycatRouteStrategy.java:84)
jvm 1 | at io.mycat.route.impl.AbstractRouteStrategy.route(AbstractRouteStrategy.java:81)
jvm 1 | at io.mycat.route.RouteService.route(RouteService.java:133)
jvm 1 | at io.mycat.server.ServerConnection.routeEndExecuteSQL(ServerConnection.java:273)
jvm 1 | at io.mycat.server.ServerConnection.execute(ServerConnection.java:222)
jvm 1 | at io.mycat.server.handler.SelectHandler.handle(SelectHandler.java:105)
jvm 1 | at io.mycat.server.ServerQueryHandler.query(ServerQueryHandler.java:79)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:317)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:337)
jvm 1 | at io.mycat.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:71)
jvm 1 | at io.mycat.net.FrontendConnection.rawHandle(FrontendConnection.java:478)
jvm 1 | at io.mycat.net.FrontendConnection.handle(FrontendConnection.java:460)
jvm 1 | at io.mycat.net.AbstractConnection.onReadData(AbstractConnection.java:321)
jvm 1 | at io.mycat.net.NIOSocketWR.asynRead(NIOSocketWR.java:190)
jvm 1 | at io.mycat.net.AbstractConnection.asynRead(AbstractConnection.java:273)
jvm 1 | at io.mycat.net.NIOReactor$RW.run(NIOReactor.java:102)
jvm 1 | at java.lang.Thread.run(Thread.java:748)
jvm 1 | (io.mycat.server.ServerConnection:ServerConnection.java:281)

插入日志

jvm 1    | 2018-08-22 03:57:53,737 [DEBUG][Timer1] con query sql:select user() to con:MySQLConnection [id=4, lastTime=1534881473737, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=12, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false]  (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 03:57:53,738 [DEBUG][Timer1] con query sql:select user() to con:MySQLConnection [id=15, lastTime=1534881473738, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 03:57:53,739 [DEBUG][Timer1] con query sql:select user() to con:MySQLConnection [id=14, lastTime=1534881473739, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=24, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 03:57:53,740 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=4, lastTime=1534881473721, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=12, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:53,740 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534881473721, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=24, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:53,741 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534881473721, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,859 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SET PROFILING=1; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,859 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SET PROFILING=1 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,861 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,861 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,861 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:57:55,862 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:57:55,862 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:57:55,862 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:57:55,863 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:57:55,863 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:57:55,863 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:57:55,863 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:57:55,871 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=12, lastTime=1534881475842, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=23, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:57:55,871 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=12, lastTime=1534881475842, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=23, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,875 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,875 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,875 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:57:55,877 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:57:55,877 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:57:55,877 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:57:55,877 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:57:55,877 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:57:55,878 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:57:55,878 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:57:55,885 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=17, lastTime=1534881475870, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=26, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:57:55,886 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=17, lastTime=1534881475870, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=26, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,906 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] insert into user(name) values ('sdf'); (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,906 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]insert into user(name) values ('sdf') (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,936 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]insert into user(name) values ('sdf'), route={
jvm 1 | 1 -> dn1{insert into user(name) values ('sdf')}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:57:55,937 [DEBUG][$_NIOREACTOR-1-RW] con need syn ,total syn cmd 1 commands SET names utf8;schema change:false con:MySQLConnection [id=3, lastTime=1534881475937, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{insert into user(name) values ('sdf')}, respHandler=SingleNodeHandler [node=dn1{insert into user(name) values ('sdf')}, packetId=0], host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=true] (io.mycat.backend.mysql.nio.MySQLConnection:MySQLConnection.java:448)
jvm 1 | 2018-08-22 03:57:55,952 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=3, lastTime=1534881475919, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{insert into user(name) values ('sdf')}, respHandler=SingleNodeHandler [node=dn1{insert into user(name) values ('sdf')}, packetId=1], host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=true] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:57:55,952 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=3, lastTime=1534881475919, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,967 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,967 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,967 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:57:55,968 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:57:55,971 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534881475960, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:57:55,971 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534881475960, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=25, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,973 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,974 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 03:57:55,974 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache miss cache ,key:MEMBERSELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID, route={
jvm 1 | 1 -> dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 03:57:55,975 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 03:57:55,976 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 03:57:55,976 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 03:57:55,976 [DEBUG][$_NIOREACTOR-1-RW] con need syn ,total syn cmd 1 commands SET names utf8;schema change:false con:MySQLConnection [id=19, lastTime=1534881475976, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=28, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=0], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.mysql.nio.MySQLConnection:MySQLConnection.java:448)
jvm 1 | 2018-08-22 03:57:55,977 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=19, lastTime=1534881475960, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=28, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=4], host=192.168.5.66, port=3306, statusSync=io.mycat.backend.mysql.nio.MySQLConnection$StatusSync@4aa86640, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 03:57:55,977 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=19, lastTime=1534881475960, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=28, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 03:57:55,978 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 03:57:55,978 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=3, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)

停掉67

查询日志

jvm 1    | 2018-08-22 04:20:01,097 [INFO ][Timer0] no ilde connection in pool,create new connection for hostM1 of schema member  (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:20:01,097 [DEBUG][Timer0] con query sql:select user() to con:MySQLConnection [id=19, lastTime=1534882801097, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=33, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:20:01,098 [DEBUG][Timer0] con query sql:select user() to con:MySQLConnection [id=17, lastTime=1534882801098, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=33, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:20:01,099 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=19, lastTime=1534882801089, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=33, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,100 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=17, lastTime=1534882801089, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=33, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,101 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882801089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:20:01,101 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:20:01,101 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:20:01,103 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882801089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:20:01,104 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:20:01,104 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:20:01,106 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882801089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:20:01,106 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:20:01,106 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:20:01,122 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882801089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:20:01,122 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:20:01,123 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:20:01,132 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882801112, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:20:01,132 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:20:01,660 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SET PROFILING=1; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,660 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SET PROFILING=1 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,661 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,662 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,662 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:20:01,662 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:20:01,662 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:20:01,662 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:20:01,663 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:20:01,663 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:20:01,663 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:20:01,663 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:20:01,671 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534882801650, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:20:01,671 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534882801650, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,675 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,675 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,676 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:20:01,676 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:20:01,676 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:20:01,676 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:20:01,676 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:20:01,677 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:20:01,677 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:20:01,677 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:20:01,684 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534882801669, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:20:01,684 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534882801669, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,705 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] select * from user; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,706 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,706 [DEBUG][$_NIOREACTOR-0-RW] SQLRouteCache hit cache ,key:MEMBERselect * from user (io.mycat.cache.impl.EnchachePool:EnchachePool.java:71)
jvm 1 | 2018-08-22 04:20:01,706 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user, route={
jvm 1 | 1 -> dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:20:01,706 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:20:01,707 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:20:01,708 [DEBUG][$_NIOREACTOR-0-RW] con need syn ,total syn cmd 1 commands SET names utf8;schema change:false con:MySQLConnection [id=16, lastTime=1534882801708, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=34, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, respHandler=SingleNodeHandler [node=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, packetId=0], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.mysql.nio.MySQLConnection:MySQLConnection.java:448)
jvm 1 | 2018-08-22 04:20:01,710 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=16, lastTime=1534882801708, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=34, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, respHandler=SingleNodeHandler [node=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, packetId=8], host=192.168.5.68, port=3306, statusSync=io.mycat.backend.mysql.nio.MySQLConnection$StatusSync@78b1a185, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:20:01,710 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=16, lastTime=1534882801708, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=34, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,730 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,731 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,731 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:20:01,731 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:20:01,732 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:20:01,732 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:20:01,732 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:20:01,732 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:20:01,732 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:20:01,733 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:20:01,733 [DEBUG][$_NIOREACTOR-0-RW] con need syn ,total syn cmd 1 commands SET names utf8;schema change:false con:MySQLConnection [id=19, lastTime=1534882801733, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=33, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=0], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.mysql.nio.MySQLConnection:MySQLConnection.java:448)
jvm 1 | 2018-08-22 04:20:01,741 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=19, lastTime=1534882801728, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=33, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=io.mycat.backend.mysql.nio.MySQLConnection$StatusSync@56e38ef3, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:20:01,742 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=19, lastTime=1534882801728, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=33, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,745 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,745 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:01,745 [DEBUG][$_NIOREACTOR-0-RW] SQLRouteCache miss cache ,key:MEMBERSELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID, route={
jvm 1 | 1 -> dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:20:01,747 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:20:01,748 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:20:01,749 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534882801728, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=4], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:20:01,749 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534882801728, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:20:01,750 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:01,750 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:02,023 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:20:02,024 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:20:02,024 [DEBUG][$_NIOREACTOR-0-RW] SQLRouteCache miss cache ,key:MEMBERSELECT * FROM `member`.`user` LIMIT 0 (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 04:20:02,026 [WARN ][$_NIOREACTOR-0-RW] find no Route:SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.route.parser.druid.impl.DruidSelectParser:DruidSelectParser.java:436)
jvm 1 | 2018-08-22 04:20:02,026 [WARN ][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 err:java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0 java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.tryRoute(DruidSelectParser.java:437)
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.changeSql(DruidSelectParser.java:287)
jvm 1 | at io.mycat.route.parser.druid.impl.DefaultDruidParser.parser(DefaultDruidParser.java:67)
jvm 1 | at io.mycat.route.impl.DruidMycatRouteStrategy.routeNormalSqlWithAST(DruidMycatRouteStrategy.java:84)
jvm 1 | at io.mycat.route.impl.AbstractRouteStrategy.route(AbstractRouteStrategy.java:81)
jvm 1 | at io.mycat.route.RouteService.route(RouteService.java:133)
jvm 1 | at io.mycat.server.ServerConnection.routeEndExecuteSQL(ServerConnection.java:273)
jvm 1 | at io.mycat.server.ServerConnection.execute(ServerConnection.java:222)
jvm 1 | at io.mycat.server.handler.SelectHandler.handle(SelectHandler.java:105)
jvm 1 | at io.mycat.server.ServerQueryHandler.query(ServerQueryHandler.java:79)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:317)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:337)
jvm 1 | at io.mycat.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:71)
jvm 1 | at io.mycat.net.FrontendConnection.rawHandle(FrontendConnection.java:478)
jvm 1 | at io.mycat.net.FrontendConnection.handle(FrontendConnection.java:460)
jvm 1 | at io.mycat.net.AbstractConnection.onReadData(AbstractConnection.java:321)
jvm 1 | at io.mycat.net.NIOSocketWR.asynRead(NIOSocketWR.java:190)
jvm 1 | at io.mycat.net.AbstractConnection.asynRead(AbstractConnection.java:273)
jvm 1 | at io.mycat.net.NIOReactor$RW.run(NIOReactor.java:102)
jvm 1 | at java.lang.Thread.run(Thread.java:748)
jvm 1 | (io.mycat.server.ServerConnection:ServerConnection.java:281)

插入日志

jvm 1    | 2018-08-22 04:18:01,097 [INFO ][Timer1] no ilde connection in pool,create new connection for hostM1 of schema member  (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:18:01,097 [DEBUG][Timer1] con query sql:select user() to con:MySQLConnection [id=14, lastTime=1534882681097, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:18:01,098 [DEBUG][Timer1] con query sql:select user() to con:MySQLConnection [id=12, lastTime=1534882681098, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=30, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:18:01,099 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534882681089, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:01,099 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=12, lastTime=1534882681089, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=30, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:01,100 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882681089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:18:01,100 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:18:01,100 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:18:01,115 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882681089, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:18:01,115 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:18:01,115 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:18:01,117 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882681108, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:18:01,117 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:18:01,118 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:18:01,119 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882681108, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:18:01,120 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:18:01,120 [INFO ][$_NIOConnector] no ilde connection in pool,create new connection for hostM1 of schema member (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:413)
jvm 1 | 2018-08-22 04:18:01,122 [INFO ][$_NIOConnector] close connection,reason:java.net.ConnectException: 拒绝连接 ,MySQLConnection [id=0, lastTime=1534882681108, user=anyone, schema=member, old shema=member, borrowed=false, fromSlaveDB=false, threadId=0, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.net.AbstractConnection:AbstractConnection.java:508)
jvm 1 | 2018-08-22 04:18:01,122 [INFO ][$_NIOConnector] can't get connection for sql :select user() (io.mycat.sqlengine.SQLJob:SQLJob.java:114)
jvm 1 | 2018-08-22 04:18:02,301 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SET PROFILING=1; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,302 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SET PROFILING=1 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,303 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,303 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,304 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:18:02,304 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:18:02,304 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:18:02,304 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:18:02,305 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:18:02,305 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:18:02,305 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:18:02,305 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:18:02,313 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534882682289, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:18:02,314 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534882682289, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:02,317 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,317 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,318 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:18:02,318 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:18:02,318 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:18:02,318 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:18:02,319 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:18:02,319 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:18:02,319 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:18:02,319 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:18:02,327 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534882682308, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:18:02,327 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534882682308, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:02,360 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] insert into user(name) values ('sdf'); (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,360 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]insert into user(name) values ('sdf') (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,361 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]insert into user(name) values ('sdf'), route={
jvm 1 | 1 -> dn1{insert into user(name) values ('sdf')}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:18:02,361 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:18:02,361 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:18:02,361 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:18:02,362 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:18:02,362 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:18:02,362 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:18:02,369 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534882682351, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{insert into user(name) values ('sdf')}, respHandler=SingleNodeHandler [node=dn1{insert into user(name) values ('sdf')}, packetId=1], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=true] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:18:02,369 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534882682351, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:02,379 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,380 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,380 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:18:02,381 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:18:02,381 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:18:02,381 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:18:02,382 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:18:02,382 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:18:02,382 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:18:02,382 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:18:02,390 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534882682370, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:18:02,390 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534882682370, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=31, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:02,394 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,395 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:18:02,395 [DEBUG][$_NIOREACTOR-0-RW] SQLRouteCache miss cache ,key:MEMBERSELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 04:18:02,397 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID, route={
jvm 1 | 1 -> dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:18:02,397 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:18:02,397 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:18:02,397 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:18:02,398 [DEBUG][$_NIOREACTOR-0-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:18:02,398 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:18:02,398 [DEBUG][$_NIOREACTOR-0-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:18:02,398 [DEBUG][$_NIOREACTOR-0-RW] select read source hostM2 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:18:02,400 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=15, lastTime=1534882682389, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=4], host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:18:02,400 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=15, lastTime=1534882682389, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=32, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:18:02,401 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:18:02,402 [DEBUG][$_NIOREACTOR-0-RW] ServerConnection [id=4, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)

写操作都到68

重启67

查询日志

jvm 1    | 2018-08-22 04:59:54,029 [DEBUG][Timer0] con query sql:select user() to con:MySQLConnection [id=14, lastTime=1534885194029, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false]  (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:59:54,030 [DEBUG][Timer0] con query sql:select user() to con:MySQLConnection [id=1, lastTime=1534885194030, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=46, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:59:54,032 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534885194026, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:54,033 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=1, lastTime=1534885194026, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=46, charset=latin1, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.68, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:54,034 [DEBUG][Timer0] con query sql:select user() to con:MySQLConnection [id=13, lastTime=1534885194034, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=41, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.sqlengine.SQLJob:SQLJob.java:88)
jvm 1 | 2018-08-22 04:59:54,035 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=13, lastTime=1534885194026, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=41, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,680 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SET PROFILING=1; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,681 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SET PROFILING=1 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,682 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,683 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,683 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:59:55,685 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:59:55,685 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:59:55,685 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:59:55,686 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:59:55,686 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:59:55,686 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:59:55,687 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:59:55,697 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534885195685, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:59:55,698 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534885195685, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,702 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,702 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,703 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:59:55,704 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:59:55,704 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:59:55,705 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:59:55,705 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:59:55,705 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:59:55,706 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:59:55,706 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:59:55,714 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534885195706, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:59:55,714 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534885195706, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,736 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] select * from user; (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,736 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,736 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache hit cache ,key:MEMBERselect * from user (io.mycat.cache.impl.EnchachePool:EnchachePool.java:71)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]select * from user, route={
jvm 1 | 1 -> dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:59:55,737 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:59:55,738 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=12, lastTime=1534885195727, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=40, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, respHandler=SingleNodeHandler [node=dn1{SELECT *
jvm 1 | FROM user
jvm 1 | LIMIT 100}, packetId=12], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:59:55,738 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=12, lastTime=1534885195727, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=40, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,759 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SHOW STATUS (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,759 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,759 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SHOW STATUS, route={
jvm 1 | 1 -> dn1{SHOW STATUS}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:59:55,760 [DEBUG][$_NIOREACTOR-1-RW] select read source hostS1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:59:55,764 [DEBUG][$_NIOREACTOR-1-RW] release connection MySQLConnection [id=11, lastTime=1534885195747, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=39, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SHOW STATUS}, respHandler=SingleNodeHandler [node=dn1{SHOW STATUS}, packetId=104], host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:59:55,764 [DEBUG][$_NIOREACTOR-1-RW] release channel MySQLConnection [id=11, lastTime=1534885195747, user=flins, schema=member, old shema=member, borrowed=true, fromSlaveDB=true, threadId=39, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.66, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,767 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,767 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:55,767 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache miss cache ,key:MEMBERSELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 04:59:55,769 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID, route={
jvm 1 | 1 -> dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}
jvm 1 | } rrs (io.mycat.server.NonBlockingSession:NonBlockingSession.java:110)
jvm 1 | 2018-08-22 04:59:55,769 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:166)
jvm 1 | 2018-08-22 04:59:55,769 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:168)
jvm 1 | 2018-08-22 04:59:55,769 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:177)
jvm 1 | 2018-08-22 04:59:55,770 [DEBUG][$_NIOREACTOR-1-RW] node.getRunOnSlave() null (io.mycat.backend.mysql.nio.handler.SingleNodeHandler:SingleNodeHandler.java:179)
jvm 1 | 2018-08-22 04:59:55,771 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:96)
jvm 1 | 2018-08-22 04:59:55,771 [DEBUG][$_NIOREACTOR-1-RW] rrs.getRunOnSlave() null (io.mycat.backend.datasource.PhysicalDBNode:PhysicalDBNode.java:127)
jvm 1 | 2018-08-22 04:59:55,771 [DEBUG][$_NIOREACTOR-1-RW] select read source hostM1 for dataHost:localhost1 (io.mycat.backend.datasource.PhysicalDBPool:PhysicalDBPool.java:456)
jvm 1 | 2018-08-22 04:59:55,772 [DEBUG][$_NIOREACTOR-0-RW] release connection MySQLConnection [id=14, lastTime=1534885195765, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, respHandler=SingleNodeHandler [node=dn1{SELECT QUERY_ID, SUM(DURATION) AS SUM_DURATION FROM INFORMATION_SCHEMA.PROFILING GROUP BY QUERY_ID}, packetId=4], host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.server.NonBlockingSession:NonBlockingSession.java:341)
jvm 1 | 2018-08-22 04:59:55,772 [DEBUG][$_NIOREACTOR-0-RW] release channel MySQLConnection [id=14, lastTime=1534885195765, user=anyone, schema=member, old shema=member, borrowed=true, fromSlaveDB=false, threadId=10, charset=utf8, txIsolation=3, autocommit=true, attachment=null, respHandler=null, host=192.168.5.67, port=3306, statusSync=null, writeQueue=0, modifiedSQLExecuted=false] (io.mycat.backend.datasource.PhysicalDatasource:PhysicalDatasource.java:442)
jvm 1 | 2018-08-22 04:59:55,774 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:55,774 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT STATE AS `状态`, ROUND(SUM(DURATION),7) AS `期间`, CONCAT(ROUND(SUM(DURATION)/*100,3), '%') AS `百分比` FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= GROUP BY STATE ORDER BY SEQ (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:56,133 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER] SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.net.FrontendConnection:FrontendConnection.java:288)
jvm 1 | 2018-08-22 04:59:56,133 [DEBUG][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.server.ServerQueryHandler:ServerQueryHandler.java:57)
jvm 1 | 2018-08-22 04:59:56,134 [DEBUG][$_NIOREACTOR-1-RW] SQLRouteCache miss cache ,key:MEMBERSELECT * FROM `member`.`user` LIMIT 0 (io.mycat.cache.impl.EnchachePool:EnchachePool.java:77)
jvm 1 | 2018-08-22 04:59:56,136 [WARN ][$_NIOREACTOR-1-RW] find no Route:SELECT * FROM `member`.`user` LIMIT 0 (io.mycat.route.parser.druid.impl.DruidSelectParser:DruidSelectParser.java:436)
jvm 1 | 2018-08-22 04:59:56,137 [WARN ][$_NIOREACTOR-1-RW] ServerConnection [id=1, schema=MEMBER, host=192.168.5.110, user=mycatuser,txIsolation=3, autocommit=true, schema=MEMBER]SELECT * FROM `member`.`user` LIMIT 0 err:java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0 java.sql.SQLNonTransientException: find no Route:SELECT * FROM `member`.`user` LIMIT 0
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.tryRoute(DruidSelectParser.java:437)
jvm 1 | at io.mycat.route.parser.druid.impl.DruidSelectParser.changeSql(DruidSelectParser.java:287)
jvm 1 | at io.mycat.route.parser.druid.impl.DefaultDruidParser.parser(DefaultDruidParser.java:67)
jvm 1 | at io.mycat.route.impl.DruidMycatRouteStrategy.routeNormalSqlWithAST(DruidMycatRouteStrategy.java:84)
jvm 1 | at io.mycat.route.impl.AbstractRouteStrategy.route(AbstractRouteStrategy.java:81)
jvm 1 | at io.mycat.route.RouteService.route(RouteService.java:133)
jvm 1 | at io.mycat.server.ServerConnection.routeEndExecuteSQL(ServerConnection.java:273)
jvm 1 | at io.mycat.server.ServerConnection.execute(ServerConnection.java:222)
jvm 1 | at io.mycat.server.handler.SelectHandler.handle(SelectHandler.java:105)
jvm 1 | at io.mycat.server.ServerQueryHandler.query(ServerQueryHandler.java:79)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:317)
jvm 1 | at io.mycat.net.FrontendConnection.query(FrontendConnection.java:337)
jvm 1 | at io.mycat.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:71)
jvm 1 | at io.mycat.net.FrontendConnection.rawHandle(FrontendConnection.java:478)
jvm 1 | at io.mycat.net.FrontendConnection.handle(FrontendConnection.java:460)
jvm 1 | at io.mycat.net.AbstractConnection.onReadData(AbstractConnection.java:321)
jvm 1 | at io.mycat.net.NIOSocketWR.asynRead(NIOSocketWR.java:190)
jvm 1 | at io.mycat.net.AbstractConnection.asynRead(AbstractConnection.java:273)
jvm 1 | at io.mycat.net.NIOReactor$RW.run(NIOReactor.java:102)
jvm 1 | at java.lang.Thread.run(Thread.java:748)
jvm 1 | (io.mycat.server.ServerConnection:ServerConnection.java:281)

缺损数据自动同步过去

写操作还是到68

重启mycat

写操作还是到68

mycat 主从切换分析过程的更多相关文章

  1. mycat读写分离与主从切换

    1, 分库分表的优缺点.以及为什么分表方式无法成为主流? 分表:在台server上,长处是易维护,相似表分区.缺点是在一台dbserver上.无法分担IO.负载集中. 分库:在多台server上,长处 ...

  2. Spring AOP实现Mysql数据库主从切换(一主多从)

    设置数据库主从切换的原因:数据库中经常发生的是“读多写少”,这样读操作对数据库压力比较大,通过采用数据库集群方案, 一个数据库是主库,负责写:其他为从库,负责读,从而实现读写分离增大数据库的容错率.  ...

  3. Mycat读写分离、主从切换、分库分表的操作记录

    系统开发中,数据库是非常重要的一个点.除了程序的本身的优化,如:SQL语句优化.代码优化,数据库的处理本身优化也是非常重要的.主从.热备.分表分库等都是系统发展迟早会遇到的技术问题问题.Mycat是一 ...

  4. mycat(读写分离、负载均衡、主从切换)

    博主本人平和谦逊,热爱学习,读者阅读过程中发现错误的地方,请帮忙指出,感激不尽 1.环境准备 1.1新增两台虚拟机 mycat01:192.168.247.81 mycat02:192.168.247 ...

  5. Mycat主从模式下的读写分离与自动切换

    1. 机器环境 192.168.2.136 mycat1 192.168.2.134 mydb1 192.168.2.135 mydb2 2在mysql1.mysql2上安装mysql 更改root用 ...

  6. 20135202闫佳歆--week 8 实验:理解进程调度时机跟踪分析进程调度与进程切换的过程--实验及总结

    week 8 实验:理解进程调度时机跟踪分析进程调度与进程切换的过程 1.环境搭建: rm menu -rf git clone https://github.com/megnning/menu.gi ...

  7. 通过gdb跟踪进程调度分析进程切换的过程

    作者:吴乐 山东师范大学 <Linux内核分析>MOOC课程http://mooc.study.163.com/course/USTC-1000029000 本实验目的:通过gdb在lin ...

  8. Mycat读写分离、主从切换学习(转)

    http://blog.csdn.net/zhanglei_16/article/details/50707487 Mycat读写分离.主从切换学习问题一:分表.分库的优缺点,以及分表无法成为主流分表 ...

  9. mycat读写分离与主从切换【转】

    什么是mycat,以及mycat的优点和特性本文不做赘述,本文继续本着实战的态度,来分享一些个人对mycat的基础功能实践.本文mycat的读写分离和主从切换的环境为mysql主从环境. 如何安装my ...

随机推荐

  1. KeyValuePair 和 Dictionary 的关系和区别

    KeyValuePair 和 Dictionary 的关系 1.KeyValuePair      a.KeyValuePair 是一个结构体(struct):     b.KeyValuePair  ...

  2. jquery如何阻止子元素继承父元素的事件(又称事件冒泡)

    非常简单,子元素上添加如下代码即可 $('a').click(function(e){ e.stopPropagation(); }); 老版本为event,现在用e就行

  3. jquery中attr属性操作

  4. python学习Day10 函数的介绍(定义、组成、使用)

    今日学习内容: 1.什么是函数 :函数就是一个含有特定功能的变量,一个解决某问题的工具 函数的定义:通过关键字def + 功能名字():代码体(根据需求撰写代码逻辑) 2.为什么要用函数:可以复用:函 ...

  5. vue--组件基础

    组件是可复用的 vue 实例,它与new Vue 接收相同的参数,例如:data.methods.computed.watch 以及生命周期钩子.除了 el 等. 1.组件注册必须有一个组件名. 组件 ...

  6. vue 自定义组件使用v-model(组件通信方式1)

    父组件通过v-model传递值给子组件时,会自动传递一个value的prop属性,在子组件中通过this.$emit(‘input’,val)自动修改父组件v-model绑定的值 child: < ...

  7. python入门(十五):装饰器

    1.装饰器(decorator):设计模式 作用:给不同的函数和方法,增加不同的公用的功能. @classmethod,@staticmethod等均是装饰器 定义一个装饰函数,函数必须返回一个闭包函 ...

  8. 一千行ABAP代码实现Windows传统游戏扫雷

    *&---------------------------------------------------------------------* *& Report ZCHENH087 ...

  9. selenium使用技巧

    标签(空格分隔): selenium 我们进行selenium的时候,就是通过webdriver,对浏览器做一些操作的: webdriver,除了find操作,之外还有哪些方法和属性呢? 1.获取当前 ...

  10. 《Go程序设计语言》读书笔记-函数

    函数包含连续执行的语句,可以使用代码中通过调用函数来执行他们,函数能够将一个复杂的工作切分成多个更小的模块,使多人写作变得容易.另外,函数对他的使用者隐藏了实现细节.这几方面的特性使得函数成为多数编程 ...