High CPU load since restart haproxy bouncers
Hi, I have high CPU load since I restarted host with haproxy bouncers. I use a SQLITE database. The pprof result says slow request sqlite.
I tried to migrate to a mariadb database, and it doesn't solve the CPU load.
I have sometimes failed request with http code 500
These come from my differents hosts with bouncer. I observed that request with parameter startup=false does return 200 ..
About mariadb, I have sometimes this error:
Can you provide me advice to debug more in depth ?
10 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
© Created By WhyAydan for CrowdSec ❤️
The request 411 is :
And in crowdsec.log
I manage to retrieve normal CPU load after rebuild from scratch de LAPI. I re enroll all my machine and bouncer in fresh install.
By doing that I losted all my previous data.
Here is two more question:
- Here is a trick to reimport all previous data in the fresh DB ?
- Here is a procedure to follow when reload/restart haproxy service to not affect crowdsec service ?
How many decisions do you have ?
The initial query is a bit heavier as it will retrieve everything, but it should not be that slow
1519 including CAPI
sorry, I meant before you reinstalled everything
origin crowdsec: 294 197 😮
total in db: 608 053
that's a bit on the high side
If you have many bouncers querying LAPI at the same time, it could be an explanation
I have 5 bouncers. Is there a way to delay query ? All bouncers are querying at the same time
you'd have to restart the bouncers one by one
Resolving High CPU load since restart haproxy bouncers
This has now been resolved. If you think this is a mistake please run
/unresolve