apache / apache/cassandra-gocql-driver

How to set pool size

Open
#1,679 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.7k
Forks
658
PR merge metrics
No merged PRs in 30d

Description

Hey,
I wanted to know how can we explicitly set max pool size in `gocql`?

I mean changing the number of queries which will be run simultaneously.

We are having `150ms` avg response time in our monitoring in client side, but we are seeing `24ms` avg read latency in Cassansra exporter. Can it be related to pool size?

EDIT: I think that's the function in Java driver: `poolingOptions.setMaxRequestsPerConnection(num)`. What is the equivalent function in `gocql`?

Contributor guide

Open the contributing guide

Research direction

Start by tracing gocql's session and connection-pool configuration and compare it with the Java driver's setMaxRequestsPerConnection. Confirm whether an existing Go setting controls concurrent queries per connection, then document its usage and explain whether it could account for the reported latency.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.