Skip to content

Reduce unnecessary network buffer to avoid TiProxy OOM #1092

@djshow832

Description

@djshow832

Development Task

When TLS is enabled, each connection uses 4*32K=128KB of memory.
The result is that a 2C4G instance can only hold 5K connections.

Image

Since the data is buffered by basicReadWriter, tlsReadWriter doesn't need to buffer it again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions