Add maxRequestsPerConnection to Scylla config
This commit is contained in:
parent
3c1a727b6a
commit
c3e5fe6abf
2 changed files with 4 additions and 2 deletions
|
@ -29,8 +29,9 @@ export type Source = {
|
||||||
password: string;
|
password: string;
|
||||||
};
|
};
|
||||||
connections?: {
|
connections?: {
|
||||||
local: number;
|
local?: number;
|
||||||
remote: number;
|
remote?: number;
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
redis: {
|
redis: {
|
||||||
|
|
|
@ -32,6 +32,7 @@ function newClient(): Client | null {
|
||||||
[types.distance.local]: config.scylla.connections?.local || 2,
|
[types.distance.local]: config.scylla.connections?.local || 2,
|
||||||
[types.distance.remote]: config.scylla.connections?.remote || 1,
|
[types.distance.remote]: config.scylla.connections?.remote || 1,
|
||||||
},
|
},
|
||||||
|
maxRequestsPerConnection: config.scylla.connections?.maxRequestsPerConnection || 2048,
|
||||||
},
|
},
|
||||||
requestTracker,
|
requestTracker,
|
||||||
credentials: config.scylla.credentials,
|
credentials: config.scylla.credentials,
|
||||||
|
|
Loading…
Reference in a new issue