From 154524129550b45ed1d1395c0d7e8c54a2e7e4f5 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Mon, 23 Aug 2021 09:05:59 -0400 Subject: [PATCH] [ws-manager-bridge] Sync node grpc options with go counterpart --- components/ws-manager-bridge/src/bridge-controller.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/ws-manager-bridge/src/bridge-controller.ts b/components/ws-manager-bridge/src/bridge-controller.ts index 9132a72c16f6aa..9db34f30ae170a 100644 --- a/components/ws-manager-bridge/src/bridge-controller.ts +++ b/components/ws-manager-bridge/src/bridge-controller.ts @@ -86,12 +86,14 @@ export class BridgeController { const bridge = this.bridgeFactory() as WorkspaceManagerBridge; const clientProvider = async () => { const grpcOptions = { - "grpc.keepalive_timeout_ms": 20000, + "grpc.keepalive_timeout_ms": 1000, + "grpc.keepalive_time_ms": 5000, "grpc.http2.min_time_between_pings_ms": 1000, - "grpc.keepalive_time_ms": 30000, "grpc.keepalive_permit_without_calls": 1, "grpc-node.max_session_memory": 50, + "grpc.max_reconnect_backoff_ms": 5000, }; + return this.clientProvider.get(cluster.name, grpcOptions); } bridge.start(cluster, clientProvider);