Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"High" CPU usage at idle with official Docker setup #460

Closed
xnyo opened this issue Jul 30, 2020 · 1 comment
Closed

"High" CPU usage at idle with official Docker setup #460

xnyo opened this issue Jul 30, 2020 · 1 comment
Assignees

Comments

@xnyo
Copy link

xnyo commented Jul 30, 2020

Hello, I tried setting up rudderstack with docker following the official documentation (https://docs.rudderstack.com/get-started/installing-and-setting-up-rudderstack/docker)
The only change I made to the docker-compose file was changing WORKSPACE_TOKEN with the correct value.
The server starts and the events get dispatched correctly, however the CPU usage at idle, with no events whatsoever is about 20-25% on my machine (i7-8550U 3.9GHz). I got similar results on a different machine too. I am running Linux and Docker 19.03.12.
All containers are on the "latest" tag, like in the provided docker-compose file (rudderlabs/rudder-server's hash is b0cf66d1817c and rudderlabs/rudder-transformer's hash is 4bb81602b25f)
Is this normal? If so, is there a way to reduce the CPU usage by tweaking the config file?

Thanks in advance!

@chandumlg
Copy link
Member

Hi
Sorry for the late response.

Please set the following environment variables. They will bring down the CPU usage drastically.
RSERVER_PROCESSOR_FIXED_LOOP_SLEEP_IN_MS
RSERVER_ROUTER_FIXED_LOOP_SLEEP_IN_MS

You can set their value to, say 2000, for 2 secs sleep.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants