Add maxRequestsPerConnection to Scylla config

This commit is contained in:
ThatOneCalculator 2023-09-26 16:06:26 -07:00
parent 3c1a727b6a
commit c3e5fe6abf
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 4 additions and 2 deletions

View file

@ -29,8 +29,9 @@ export type Source = {
password: string;
};
connections?: {
local: number;
remote: number;
local?: number;
remote?: number;
maxRequestsPerConnection?: number;
};
};
redis: {

View file

@ -32,6 +32,7 @@ function newClient(): Client | null {
[types.distance.local]: config.scylla.connections?.local || 2,
[types.distance.remote]: config.scylla.connections?.remote || 1,
},
maxRequestsPerConnection: config.scylla.connections?.maxRequestsPerConnection || 2048,
},
requestTracker,
credentials: config.scylla.credentials,