GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add keepalive setting in client library. · Issue #408 · googleapis/java-bigtable

This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Add keepalive setting in client library.  #408

Copy link
Copy link
Closed
#409
Closed
Add keepalive setting in client library. #408
#409
Copy link
Assignees
igorbernstein2
Labels
api: bigtableIssues related to the googleapis/java-bigtable API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@sushanb
sushanb
opened on Sep 3, 2020
Issue body actions

Java grpc does not have keepalive configuration by default. It will use the kernel tcp default configuration as the values

sysctl -a | grep tcp
net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 300
net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 300
net.ipv4.tcp_keepalive_time = 7200

Vals in seconds

Why Keepalive in GRPC Client

Keepalive is recommended to use when your peer dies before it is able to notify you or does not notify you. The reasons can be kernel panic, termination of the process handling that pee

Hence, if a server does not send GOAWAY to the client, the grpc client will send packets to the TCP peer but the TCP perr will not send any packets. This can happen when a server nodes goes down due to machine failure, release/rollouts.

As you noticed the tcp (unacknowledged , keepalive) times are in 5 mins and 2 hours, so the reasonable solution will be to add keepalive logic in client library.

Steps to reproduce

To reproduce the problem, run the following command on a gRPC client host:

iptables -I INPUT -s <server-ip> -p tcp --sport <server-port> -j DROP

Activity

  1. product-auto-label
    added
    api: bigtableIssues related to the googleapis/java-bigtable API.
    on Sep 3, 2020
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Sep 4, 2020
  3. kolea2
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Sep 9, 2020
  4. igorbernstein2
    closed this as completedin #409on Oct 6, 2020
  5. JustinBeckwith
    assigned
    igorbernstein2
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @igorbernstein2
    igorbernstein2

Labels

api: bigtableIssues related to the googleapis/java-bigtable API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.