Skip to content

[BUG] OOM when clickhouse is slow and a lot of insert queries are sent #428

@bzed

Description

@bzed

Describe the bug
We regularly see the following issue:

  • clickhouse not being as fast as expected due to high load (not nice, things to optimize but these things can happen)
  • chproxy receiving lots of inserts from applications without being able to forward them in time. It happily accepts hundreds of connections in parallel...
  • chproxy being OOM killed
  • chproxy restarted, introducing even more load on the clickhouse server due to new connections....

To Reproduce

  • make clickhouse slow
  • put chproxy under load with lots of big parallel inserts.

Expected behavior
No OOM. Better memory handling. Cancel connections or let them wait before running OOM.

Environment information
chproxy v1.26.2
clickhosue 24.3.2.23

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