Commit 600ad77
committed
Recalculate maxQueueSize based on shards count
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 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.1 parent ad4ff1c commit 600ad77
File tree
2 files changed
+2
-1
lines changed- driver-core/src/main/java/com/datastax/driver/core
2 files changed
+2
-1
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
0 commit comments