-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Description
When system load is high, we might be required to drop some events/rules.
Currently we don't have a mechanism to prioritize events/rules, neither a mechanism to reduce load consumed by tracee-ebpf and tracee-rules.
To improve system performance on high loads, the following can be implemented:
- Add priority field for each event
- Add priority field for each rule
- In tracee-ebpf, update a bpf map (use already existing chosen_events map?) with events to drop that are of low priority when required
- On rules engine in tracee-rules, don't send events to rules with low priority when required
- Implement load monitoring in tracee-ebpf
- Implement load monitoring in tracee-rules
- Expose an API to set events/rules priority
- Expose an API to provide statistics of tracee-ebpf and tracee-rules dropped events/rules
pomozoff