apache / apache/couchdb-helm

Too much memory consumption of couchdb pods when running on distributions with cgroup v2.

Open
#161 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
55
Forks
68
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
CouchDB pods will not start (due mainly to OOM killed).
If we use no resource limits, we can observe the couchdb pods are using peak memory of almost 3.5GB.
Then it stabilizes to 1.6GB , which is way too much in any case.
Note that this is not observed at all on nodes running on cgroup v1, so we suspect cgroup v2 being the root cause of this resource issue.

**Version of Helm and Kubernetes**:
Kubernetes: 1.27.6 (rancher)
Helm : 3.15
Nodes running on : Rocky Linux 9.3
Linux Kernel : using cgroup v2 (see https://kubernetes.io/docs/concepts/architecture/cgroups/)

**What happened**:
At startup couchdb pods are using too much memory (almost 4GB) and get killed if the resources are not given to support such a high load.

**What you expected to happen**:
At startup, couchdb pods should consume only few MB of memory as they would do on nodes running with cgroup v1

**How to reproduce it** (as minimally and precisely as possible):
You can easily reproduce by deploying latest chart 4.5.6 on such cluster described above.
You will notice the 3 couchdb pods taking more than 3GB of memory.

**Anything else we need to know**:
Well, may be we could expect some specific tuning in the charts for handling cgroup v2 nodes, if possible.
We haven't found anything in the documentation about that.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with chart 4.5.6 on Kubernetes 1.27.6 nodes using Rocky Linux 9.3 and cgroup v2, then compare the three CouchDB pods' startup memory with cgroup v1. Done means identifying a chart-level adjustment, if possible, that prevents the multi-gigabyte startup usage and OOM kills.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes, linux
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.