crowdsec/pkg/database/ent
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
..
alert Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer Ent update : 0.7.0 (#692) 2021-03-15 18:46:52 +01:00
decision Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
enttest Ent update : 0.7.0 (#692) 2021-03-15 18:46:52 +01:00
event Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
hook lapi: fix ipv6 operations (#567) 2021-01-14 16:27:45 +01:00
machine Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
migrate 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
predicate Ent update : 0.7.0 (#692) 2021-03-15 18:46:52 +01:00
runtime Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
schema 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
alert.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
alert_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
alert_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
alert_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
alert_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
bouncer_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
client.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
config.go Ent update : 0.7.0 (#692) 2021-03-15 18:46:52 +01:00
context.go lapi: fix ipv6 operations (#567) 2021-01-14 16:27:45 +01:00
decision.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
decision_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
decision_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
decision_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
decision_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
ent.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
event.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
event_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
event_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
event_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
event_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
generate.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
machine.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
machine_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
machine_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
machine_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
machine_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta_create.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta_delete.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta_query.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
meta_update.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
mutation.go Entgo 0.9 (#1018) 2021-10-22 16:15:57 +02:00
runtime.go lapi: fix ipv6 operations (#567) 2021-01-14 16:27:45 +01:00
tx.go Ent update : 0.7.0 (#692) 2021-03-15 18:46:52 +01:00