problem: too many timeouts under load or spike in load
This commit is contained in:
@@ -74,7 +74,7 @@ class GrpcUpstreams(
|
|||||||
val client = ReactorBlockchainGrpc.newReactorStub(channel.build())
|
val client = ReactorBlockchainGrpc.newReactorStub(channel.build())
|
||||||
this.client = client
|
this.client = client
|
||||||
var i = 0
|
var i = 0
|
||||||
val grpcExecutor = Executors.newFixedThreadPool(64) { r -> Thread(r, "grpc-up-$id-${i++}") };
|
val grpcExecutor = Executors.newCachedThreadPool { r -> Thread(r, "grpc-up-$id-${i++}") };
|
||||||
this.grpcTransport = EmeraldGrpcTransport.newBuilder()
|
this.grpcTransport = EmeraldGrpcTransport.newBuilder()
|
||||||
.forChannel(client.channel)
|
.forChannel(client.channel)
|
||||||
.setObjectMapper(objectMapper)
|
.setObjectMapper(objectMapper)
|
||||||
|
|||||||
Reference in New Issue
Block a user