-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Loki High CPU Usage #3020
Comments
Nothing shocking in the trace, you have someone doing a metric query, not sure why you would expect loki to not use CPU. Do you know what the query looks like ? |
It should be noted that in the same second you receive a push and you are querying. |
Could I get a cpu profile instead of a trace please?
Le sam. 5 déc. 2020 à 14:31, Luca Kröger <notifications@github.com> a
écrit :
… I'm having the same issues. After a restart the cpu usage goes back down
[image: image]
<https://user-images.githubusercontent.com/5812715/101244344-444a8d00-3706-11eb-9c76-46441371efa8.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3020 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIBF3JJUJOEWFGCC5LNPK3STIY2FANCNFSM4UKKW5KA>
.
|
Actually the initial profile was already a CPU profile - just forgot to upload it ;)
|
Thank you @cf-sewe, @cyriltovena I wasn't able to reproduce the bug again until now. It happened two times so far. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
@cf-sewe has the error occurred again recently? |
Yes that CPU hog occurs reliably after some time in my environment - however only on old Loki version 2.0.0. |
issue is occuring for me as well, running a fresh install of everything. will be back tomorrow with more info and what my current setup is |
This should be reopened. |
I agree this needs to be reopened, I’m not home so I can’t test anything but I’m running the most up to date version of truenas and I have grafana inside a jail. Loki is running on the same jail and is also the most up to date version with default configs. promtail is running inside another jail on the same system, that jail is running nginx and promtail is looking at the logs with a standard config with 2 replace’s the dashboard on grafana is the Loki V2.0 nginx dashboard after some time the cpu on the system gets pinned to 100% I believe it was around 1-2 hours but I could be completely wrong there. Stoping promtail has no effect proving it’s a Loki issue, restarting Loki fixes the problem for a little while. as I final note both promtail and Loki are started with the system through an rc.d file using the Daemon command will post configs and other reports when I get have later today |
After looking through the other issues posted it looks like this might be related to issue #3275 |
I've also added a test to prove the issue was happening and now is fixed. Fixes grafana#3275 Fixes grafana#3264 Fixes grafana#3020 Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Describe the bug
After some time, loki is running on 100% CPU.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment:
1
(1 core). Loki is running quite idle normally.Screenshots, Promtail config, or terminal output
pprof trace (10s)
pprof_trace.zip
loki 100 % in k9s
grafana dashboard
kubernetes dashboard for loki-stack
The text was updated successfully, but these errors were encountered: