java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

Recalculate maxQueueSize based on shards count

Open dkropachev opened this issue 7 months ago • 0 comments

Currently maxQueueSize is 256 by default. Problem is that some hosts can have 1 shard, others can have 256 shards. While having cap of 256 pending requests for 1 shard host is ok, for bigger host of 256 shards it is way to low. This commit scales maxQueueSize by number of shards, which allow default value works for hosts of any size.

Fix: https://github.com/scylladb/java-driver/issues/577

dkropachev avatar Jul 09 '25 16:07 dkropachev