Flagsmith / Flagsmith/flagsmith

High CPU usage in Docker (locally)

Open
#7,520 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

### How are you running Flagsmith

- [x] Self Hosted with Docker
- [ ] Self Hosted with Kubernetes
- [ ] SaaS at flagsmith.com
- [ ] Some other way (add details in description below)

### Describe the bug

While my "platform" is idling (no requests to any service, etc), the Flagsmith container is almost constantly on 10% cpu, and I think it's the main contributor to Docker in itself goes to a high CPU usage in total, and eventually turns on my fans (I'm speculating)

Any ideas regarding this behavior? Is there a background job running every X seconds, or something? Or what else could it be? 😅

PS: I'm using a Macbook M4 MAX. Fans shouldn't turn on just for running this imo, on this kind of hardware :) When I stop Flagsmith, I feel like the total Docker CPU and fan-turning-on issues don't occur as often..

### Steps To Reproduce

Just let it run in idle mode.

All other services are <1% cpu in idle, sometimes (few times a minute at most) jumping to 2-5% at most. But Flagsmith is constantly (every few seconds!) jumping to 10%

### Expected behavior

Low cpu usage, not constant spikes.

### Screenshots

Image

Image
Image

Other services idling look like this:

Image

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.