Skip to content

Long time-to-first-byte problem #245

@djensen47

Description

@djensen47

I've been experiencing long wait times for time-to-first-byte (TTFB) using the ingress-gce on GKE.

I compared going through the ingress-gce versus connecting directly to a pod. Going directly to the pod via a portforward, TTFB times are in the 300ms range.

Via the ingress I have noticed:

  • TTFB times between 1 - 5s
  • Happens a lot on GET OPTION calls but not always
  • Randomly occurs on other calls
  • These are all fetch calls (ajax-style) and in a single browser reload, it happens only once

We have two rules in our configuration, three when the echoserver is up, and also tls.

I also tried this against the "echo server" and I see long >300ms TTFB on GET /favicon.ico

My best guess at reproduction is to:

  • Set up a cluster
  • Deploy the "echo server" gcr.io/google_containers/echoserver:1.4
  • Deploy another webserver that the ingress can communicate with
  • Create an ingress that has two backends and tls
  • Open Chrome with developer tools open to the Network tab
  • Hit the echo server
  • Try this several times
  • Notice that favicon.ico will very between acceptable TTFB times of <100ms to >300ms possibly even as high as 1s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions