apache / apache/kvrocks

Memory limits on connections

Open
#2,284 5 comments 5 reactions 1 assignee Claimed by @AntiTopQuark View on GitHub
enhancement
Dominant language
C++
Stars
4.4k
Forks
658
Avg merge
1d 20h
Merged PRs (30d)
10

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.

### Motivation

The lack of memory constraints in current Kvrocks can lead to OOM, especially when deployed in container environments.

### Solution

We should provide mechanisms to limit memory and avoid OOM.

In the connection dimension:
- avoid large `WriteBatch`
- limit connection output buffer, support `client-output-buffer-limit` and `maxmemory-clients`

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.