Skip to content

Commit

Permalink
[ws-manager-bridge] Sync node grpc options with go counterpart
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored and roboquat committed Aug 23, 2021
1 parent b316125 commit 1545241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ws-manager-bridge/src/bridge-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1545241

Please sign in to comment.