Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

BigQuery is very flakey on local / self-hosted #10

Closed

Description

@neilkakkar

Bigquery client takes > 30s for insert requests when run locally. Need to investigate why this is happening, since if we're facing this, other self-hosted clients would be too.

What's mystifying is that it works perfectly fine on cloud - there's never* a timeout.

While we don't lose data, thanks to the retry job queues, it would be nice to figure out why this is happening in the first place.


More context: See #9

Activity

  1. Twixes commented on Jun 14, 2021

    @Twixes
    Contributor

    Could you flesh this issue out a bit more please? I have no idea what the problem is without reading all of the linked issue (which is real long)

  2. neilkakkar commented on Jun 15, 2021

    @neilkakkar
    ContributorAuthor

    Local / self-hosted:
    image

    vs Cloud:

    image


    Note the timing differences, too!

  3. changed the title [-]BigQuery is very flakey on local[/-] [+]BigQuery is very flakey on local / self-hosted[/+] on Jun 17, 2021
  4. andrewm4894 commented on Jun 17, 2021

    @andrewm4894
    Member

    just adding an example from our posthog - lots of variance and some longish looking insert times and some failing it seems once they hit 30s

    image

  5. neilkakkar commented on Jun 17, 2021

    @neilkakkar
    ContributorAuthor

    More data points: I tried the bigquery plugin while setting the TASK_TIMEOUT to 60 seconds, and I still found similar issues (although a bit fewer, since it meant the requests taking between 30 to 60s were ok now).

    Also, it probably doesn't have much to do with payload size. (i.e. have noticed smaller payloads taking a lot longer, and then succeeding almost instantly on retry)

    Potential places to look for solutions:

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

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