我想知道我们如何在
gocql
中明确设置最大池大小?
我的意思是更改将同时运行的查询数量。
我们在 Grafana 中有
200ms
平均响应时间,但我们在 Cassansra 导出器面板中看到 24ms
平均读取延迟。它可能与泳池大小有关吗?
附言我认为这是 Java 驱动程序中的功能:
poolingOptions.setMaxRequestsPerConnection(num)
。 gocql 中的等价函数是什么?
我认为在 gocql 中没有 Cassandra Java 驱动程序的
setMaxRequestsPerConnection()
等价物。
NumConns: 2
在 cluster.go
),在服务器端,Cassandra 将接受最多 128 个并发请求(native_transport_max_threads: 128
在 cassandra.yaml
)。干杯!