crowdsec/pkg/database
blotus 25a2d528b0
Alerts flush: Optimization of the flush mechanism (batch and limit to one job) + add cscli alerts flush command (#1024)
- Don't allow running more than one alert flush job at a time to prevent runaway CPU usage in some case. (fix High CPU after Upgrade to 1.2.0 #1022)
 - Add a cscli alerts flush command to manually flush the alerts in the database (fixes Improvement/Manual flush mechanism #1023 ).
 - Enable cascading deletion on alerts as we upgraded ent: Deleting an alert in the database will automatically delete all related decisions, events and meta
 - Add an index on alerts.id to try to improve flush performance with very big sqlite database.
- Flush alert now operates in batch
2021-10-26 13:33:45 +02:00
..
ent Alerts flush: Optimization of the flush mechanism (batch and limit to one job) + add cscli alerts flush command (#1024) 2021-10-26 13:33:45 +02:00
alerts.go Alerts flush: Optimization of the flush mechanism (batch and limit to one job) + add cscli alerts flush command (#1024) 2021-10-26 13:33:45 +02:00
bouncers.go improve error management of cscli bouncers add (#495) 2020-12-01 16:16:01 +01:00
database.go Alerts flush: Optimization of the flush mechanism (batch and limit to one job) + add cscli alerts flush command (#1024) 2021-10-26 13:33:45 +02:00
decisions.go Allow bouncers to filter decisions by scope (#817) 2021-05-31 15:07:09 +02:00
errors.go Apiclient tests (#484) 2020-11-30 16:15:07 +01:00
machines.go Improve CAPI pull management (#871) 2021-08-25 11:45:29 +02:00
utils.go local api (#482) 2020-11-30 10:37:17 +01:00