You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/05/14 10:35:37 UTC

[GitHub] [incubator-brpc] fuzhufang opened a new issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

fuzhufang opened a new issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404


   请问brpc 有类似 redis-cli 的 mysqlclient 吗?  或者未来会提供? mysql 应用非常广泛, 如果 brpc 添加能在 bthread 使用的 mysqlclient 将会更好. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] luobuda edited a comment on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
luobuda edited a comment on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-845655979


   还有需要配置文件,可以参考https://gist.github.com/luobuda/3d7f9cd4ca187a6e27f507f210449a2d


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] lgqss commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
lgqss commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-845635357


   需要注意的就是在bthread中使用会切pthread,所以不能使用pthread local,连接数配置需要考虑并发请求数,而不是ptrhead数


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] fuzhufang commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
fuzhufang commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-845614816


   非常感谢您的指点.  同是百度开源, 就是说 baikal-client 是可以使用在 bthread 里的, 对吧?  请问使用上是否有些值得注意的地方呢?
   
   > baikalDB开源了一个,欢迎交流使用:https://github.com/baidu/BaikalDB/tree/master/baikal-client
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] luobuda commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
luobuda commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-845655979


   还有需要配置文件,可以参考https://gist.github.com/luobuda/89ce73f3c9fb2ed3d5e215ee39783107


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] luobuda commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
luobuda commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-851778255


   > > 需要注意的就是在bthread中使用会切pthread,所以不能使用pthread local,连接数配置需要考虑并发请求数,而不是ptrhead数
   > 
   > 请问 “连接数配置需要考虑并发请求数,而不是ptrhead数” 是什么意思呢?指的是 https://gist.github.com/luobuda/3d7f9cd4ca187a6e27f507f210449a2d 这里面的 :
   > 
   > ```
   > #每个connectionpool中的连接数
   > connection_num: 3
   > #每个实例最大的连接数
   > max_connection_per_instance:5
   > ```
   > 
   > 这些吗?
   这两个配置是对单个mysql实例来说的,“连接数配置需要考虑并发请求数,而不是ptrhead数” 其实说的链接数:pthread=M:N这种关系,baikal-client用的libmariadb异步接口
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] fuzhufang edited a comment on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
fuzhufang edited a comment on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-845614816


   非常感谢您的指点.  同是百度开源, 就是说 baikal-client 是可以使用在 bthread 里的,  我在baikal-client代码里是看到有bthread命名的代码,  请问使用上是否有些值得注意的地方呢?  
   
   > baikalDB开源了一个,欢迎交流使用:https://github.com/baidu/BaikalDB/tree/master/baikal-client
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] mapleFU commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
mapleFU commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-851578301


   > 需要注意的就是在bthread中使用会切pthread,所以不能使用pthread local,连接数配置需要考虑并发请求数,而不是ptrhead数
   
   请问 “连接数配置需要考虑并发请求数,而不是ptrhead数” 是什么意思呢?指的是 https://gist.github.com/luobuda/3d7f9cd4ca187a6e27f507f210449a2d 这里面的 :
   ```
   #每个connectionpool中的连接数
   connection_num: 3
   #每个实例最大的连接数
   max_connection_per_instance:5
   ```
   这些吗?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] luobuda commented on issue #1404: 请问brpc有在bthread使用的mysqlclient 吗?

Posted by GitBox <gi...@apache.org>.
luobuda commented on issue #1404:
URL: https://github.com/apache/incubator-brpc/issues/1404#issuecomment-842783075


   baikalDB开源了一个,欢迎交流使用:https://github.com/baidu/BaikalDB/tree/master/baikal-client


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org