Closed zhang0ZGC closed 7 years ago
fixed, thanks.
请问你是怎么做的?我的tornado程序和tormysql无法相连
@shi-cong Readme里面就是例子呀
@zhang0ZGC tornado本身有一个ioloop对象,而tormysql也有一个,如果不启动tornado只启动tormysql就没有问题;如果两个同时启动,就是说由tornado来启动tormysql,这就程序就会报错,"ioloop is already running"
@shi-cong 额。。4.5还不能用吗?我当时发现4.5不能用然后就切回4.4了--....
@zhang0ZGC
@zhang0ZGC 你用tormysql后端crud效率高吗?我现在用的是同步的自己写的连接池.
@shi-cong 刚刚特地去试了一下以前写的代码,在4.5上面还是没跑通。。不知道是不是因为我没升级tormysql的原因,我的是0.3.2,现在是0.3.5;还是我代码原因
@shi-cong
在我电脑上,单线程跑server,用ab测试去读获取数据,差不多是这个样子,数据库是在阿里云,如果是内网数据应该能好不少
@zhang0ZGC 你阿里云的机器是多少的配置,每秒完成的次数怎么那么多,我每秒的吞吐量最多只有85
@zhang0ZGC 你的连接池设置的好大啊,都有100
@zhang0ZGC 请问你的tornado4.5和tormysql一起每有报错吗?
@shi-cong centos7 1核1GB的,获取你里面还有什么操作阻塞了一下没准呢;感觉100还好吧。。;4.5的和tormysql会报错。。。不知道是不是我tormysql没升级的原因
在tornado 4.5上使用TorMysql会报pymysql.err.OperationalError错误。我试了一下example pool的例子: