{"action":"created","issue":{"url":"https://api.github.com/repos/louislivi/smproxy/issues/13","repository_url":"https://api.github.com/repos/louislivi/smproxy","labels_url":"https://api.github.com/repos/louislivi/smproxy/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/louislivi/smproxy/issues/13/comments","events_url":"https://api.github.com/repos/louislivi/smproxy/issues/13/events","html_url":"https://github.com/louislivi/smproxy/issues/13","id":383952686,"node_id":"MDU6SXNzdWUzODM5NTI2ODY=","number":13,"title":"今天才看到完美兼容mysql4.1-5.7","user":{"login":"gitzwt","id":16423694,"node_id":"MDQ6VXNlcjE2NDIzNjk0","avatar_url":"https://avatars1.githubusercontent.com/u/16423694?v=4","gravatar_id":"","url":"https://api.github.com/users/gitzwt","html_url":"https://github.com/gitzwt","followers_url":"https://api.github.com/users/gitzwt/followers","following_url":"https://api.github.com/users/gitzwt/following{/other_user}","gists_url":"https://api.github.com/users/gitzwt/gists{/gist_id}","starred_url":"https://api.github.com/users/gitzwt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitzwt/subscriptions","organizations_url":"https://api.github.com/users/gitzwt/orgs","repos_url":"https://api.github.com/users/gitzwt/repos","events_url":"https://api.github.com/users/gitzwt/events{/privacy}","received_events_url":"https://api.github.com/users/gitzwt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-11-24T02:38:45Z","updated_at":"2018-11-24T12:13:29Z","closed_at":null,"author_association":"NONE","body":"我服务器使用的oneinstack安装的mysql8.0版本,是不是启用这连接池服务有效果?"},"comment":{"url":"https://api.github.com/repos/louislivi/smproxy/issues/comments/441363635","html_url":"https://github.com/louislivi/smproxy/issues/13#issuecomment-441363635","issue_url":"https://api.github.com/repos/louislivi/smproxy/issues/13","id":441363635,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM2MzYzNQ==","user":{"login":"amuluowin","id":19545561,"node_id":"MDQ6VXNlcjE5NTQ1NTYx","avatar_url":"https://avatars0.githubusercontent.com/u/19545561?v=4","gravatar_id":"","url":"https://api.github.com/users/amuluowin","html_url":"https://github.com/amuluowin","followers_url":"https://api.github.com/users/amuluowin/followers","following_url":"https://api.github.com/users/amuluowin/following{/other_user}","gists_url":"https://api.github.com/users/amuluowin/gists{/gist_id}","starred_url":"https://api.github.com/users/amuluowin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amuluowin/subscriptions","organizations_url":"https://api.github.com/users/amuluowin/orgs","repos_url":"https://api.github.com/users/amuluowin/repos","events_url":"https://api.github.com/users/amuluowin/events{/privacy}","received_events_url":"https://api.github.com/users/amuluowin/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T12:13:29Z","updated_at":"2018-11-24T12:13:29Z","author_association":"NONE","body":"有几个建议：\r\n1.client采用\\Co\\Client，根据消息swoole下个大版本计划移除异步API。\r\n2.兼容docker，出个官方的docker镜像，可以采用docker的multi-stage build。基于容器的部署，可以直接sidecar进mysql容器。\r\n3.连接数配置那里，生成dbconfig的时候，应该除以worker_num，这样配置的连接数才是实际数据库连接数。否则用户需要自己计算实际连接数，防止超出数据库配置。\r\n4.worker_num配置建议支持function，例如一般连接数会设置为swoole_cpu_num()，或者swoole_cpu_num()*N这样。"}}
{"actor":{"display_login":"amuluowin"}}