Skip to content

Good gRPC deployment pods frequently fail at least one health check #3308

Closed

Description

@ahmetb

/area networking
/kind bug

From my current experience, no matter what gRPC service you deploy, even including the sample grpc-ping-go app, you'll see at least one failed health check in the pod.

Despite the app is totally fine, it fails one HTTP health check (%90 of the time), which is GET /health on :8082 (queue-proxy container):

$ kubectl describe pod [...]

Events:
  Type     Reason     Age   From                                                    Message
  ----     ------     ----  ----                                                    -------
  Normal   Scheduled  7s    default-scheduler                                       Successfully assigned default/productcatalogservice-dsvgk-deployment-77b69b669f-v2rjm to gke-kn-hipstershop-default-pool-dd20ed91-nd2x
  Normal   Pulled     6s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Container image "docker.io/istio/proxy_init:1.0.2" already present on machine
  Normal   Created    6s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Created container
  Normal   Started    6s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Started container
  Normal   Pulled     4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Container image "gcr.io/knative-releases/github.com/knative/serving/cmd/queue@sha256:e19ca17d2b729904d2662a30b6c5c27cf4b62fd64baef2da4125525a4f9346e5" already present on machine
  Normal   Created    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Created container
  Normal   Started    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Started container
  Normal   Pulled     4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Container image "gcr.io/google-samples/microservices-demo/productcatalogservice@sha256:1aa051838dd0de9be25321bdc42cb3b4f247a01642cfd75b6ae866182495c531" already present on machine
  Normal   Created    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Created container
  Normal   Started    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Started container
  Normal   Pulled     4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Container image "docker.io/istio/proxyv2:1.0.2" already present on machine
  Normal   Created    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Created container
  Normal   Started    4s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Started container
  Warning  Unhealthy  3s    kubelet, gke-kn-hipstershop-default-pool-dd20ed91-nd2x  Readiness probe failed: Get http://10.36.1.43:8022/health: dial tcp 10.36.1.43:8022: connect: connection refused

I think it's a timing/ordering issue ––but I think it's kinda distracting from actual failures about my app. I spent a long time trying to understand what is /health and why is it querying :8022. It's not immediately obvious to new users.

Activity

  1. added
    kind/bug
    on Feb 23, 2019
  2. tanzeeb commented on Apr 2, 2019

    @tanzeeb
    Contributor

    /assign

  3. added 2 commits that reference this issue on Apr 23, 2019
    1db4885
    d95d8f0
  4. tanzeeb commented on Apr 23, 2019

    @tanzeeb
    Contributor

    Not gRPC specific, can be reproduced on all services. K8s readiness probe checks before the queue-proxy health handler is started.

  5. tanzeeb commented on Apr 23, 2019

    @tanzeeb
    Contributor

    Update: We may want to leave this unfixed, see thread in #3869

  6. mattmoor commented on May 8, 2019

    @mattmoor
    Contributor

    A possible solution to this is to use an exec probe in the queue-proxy to probe itself, which can hang.

    IIRC this has potential issues checking for mesh readiness, but I'm mulling a possible solution involving the downward API.

  7. mattmoor commented on May 8, 2019

    @mattmoor
    Contributor

    tl;dr I think that we should probably find a way to make exec probes in the queue-proxy work, and block until they get what they want.

  8. mattmoor commented on May 8, 2019

    @mattmoor
    Contributor

    IDK that we need the downward API other than to workaround Istio, and we hopefully no longer need to workaround istio, which IIUC has its own readiness probes.

  9. mattmoor commented on Jun 12, 2019

    @mattmoor
    Contributor

    /assign @joshrider

    I believe the issue assigned to Josh should address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/networkingkind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions