Skip to content

timeout设置问题. #618

@smallevil

Description

@smallevil

当interactive_timeout和wait_timeout有任意一个值小于20时,kingshard的sys.log里会每隔几秒产生一条报错记录:
ERROR - node.go:[104] - [Node] "checkMaster" "Ping" "db.Addr=127.0.0.1:3306|error=connection was bad" conn_id=0
但不影响连接mysql,也不影响执行sql语句.

只有两个值同时大于20时,才不会报这个错.
有哪个有经验的大哥能回答一下,在使用mysql proxy时,这两个值设多少合适?
谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions