googleapis / nodejs-spanner

Node.js client for Google Cloud Spanner: the world’s first fully managed relational database service to offer both strong consistency and horizontal scalability.
https://cloud.google.com/spanner/
Apache License 2.0
135 stars 99 forks source link

feat: grpc keep alive settings #2086

Closed surbhigarg92 closed 1 month ago

surbhigarg92 commented 1 month ago

This PR sets default grpc keep alive options for Spanner library

'grpc.keepalive_time_ms': 30000,
'grpc.keepalive_timeout_ms': 10000,

These settings can be over written by passing to spanner options

const spanner = new Spanner({ 
    'grpc.keepalive_time_ms': 30000,
    'grpc.keepalive_timeout_ms': 10000,
  });
olavloite commented 1 month ago

I changed the title of the PR to feat: instead of chore:, because I think this should go into the release notes.