cockroachdb / cockroachdb/cockroach

Degraded performance in CPU, RAM and disk utilisation

Open
#118,752 6 comments 0 reactions 0 assignees View on GitHub
C-bug O-community P-3 T-kv X-blathers-triaged
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

We have a VPS with currently 4 cores and 8GB RAM on which 11 different Netbird installations are running self-hosted. One Netbird installation consists of Zitadel + Cockroachdb + Netbird. We have started to notice a high utilisation of both RAM and CPU, but especially writing to disk despite the fact that all dockers are configured to log only info and not debug.

**To Reproduce**

Install a version of Netbird (self-hosted):
`export NETBIRD_DOMAIN=netbird.example.com; curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started-with-zitadel.sh | bash` it will deploy the same enviroment in a lower scale.

**Expected behavior**
A much lower consumption of resources, and it is also not very clear to me why all these cockroach threads are opened for a single container on which it is running

**Additional data / screenshots**
![image](https://github.com/cockroachdb/cockroach/assets/45329342/e4744202-1d96-42db-9982-3bae6af81f73)
![image](https://github.com/cockroachdb/cockroach/assets/45329342/4d23d2d1-ec87-4e51-9ca6-273ac32b97e9)
![image](https://github.com/cockroachdb/cockroach/assets/45329342/371809e4-1d52-4da2-a200-214da6a895e4)
![image](https://github.com/cockroachdb/cockroach/assets/45329342/ab3d0fe6-0fda-4a9b-b589-cc3bf537ba0e)
![image](https://github.com/cockroachdb/cockroach/assets/45329342/7d94f124-5f24-49ea-bdaf-194b7a1d0942)

**Environment:**
- CockroachDB version 22.2.2
- Zitadel version 2.31.3
- Server OS: Debian 12
- Client app cockroach sql

Jira issue: CRDB-35886

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.