Skip to content

Prolonged high CPU usage when the net tables grow too big #166

@steve-chavez

Description

@steve-chavez

Problem

There was a case where a user imported data causing millions of rows to be inserted into a table that had webhooks enabled. This caused high CPU usage for a prolonged period of time.

Proposal

With an in-memory queue, it's possible to bound it to a certain size. Once this size is surpassed, we could:

  • Block the producers of http requests, until there's more capacity in the queue.
  • Log an ERROR or WARNING.

Note

Spill over to disk is not an option (inserting into another table), as it would make the usage more complex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions