Datastax - 增加 Cassandra IO 线程数
Datastax - increase Cassandra IO thread number
我遇到了如下错误:
"All connections on all I/O threads are busy"
直到我将 table 重新设计为最佳并允许对其进行适当的查询,我想增加 IO 线程的数量。服务器内存对我来说不是问题。我需要编辑一些配置文件吗?
我正在为 PHP
使用 datastax 驱动程序
为了增加 I/O 线程的数量,您需要使用 Cluster Builder 方法 withIOThreads
$cluster = Cassandra::cluster()
->withIOThreads(2)
->build();
$session = $cluster->connect();
我遇到了如下错误:
"All connections on all I/O threads are busy"
直到我将 table 重新设计为最佳并允许对其进行适当的查询,我想增加 IO 线程的数量。服务器内存对我来说不是问题。我需要编辑一些配置文件吗?
我正在为 PHP
使用 datastax 驱动程序为了增加 I/O 线程的数量,您需要使用 Cluster Builder 方法 withIOThreads
$cluster = Cassandra::cluster()
->withIOThreads(2)
->build();
$session = $cluster->connect();