Skip to content

Drop events/rules with low priority on high load #1343

@yanivagman

Description

@yanivagman

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:

  1. Add priority field for each event
  2. Add priority field for each rule
  3. In tracee-ebpf, update a bpf map (use already existing chosen_events map?) with events to drop that are of low priority when required
  4. On rules engine in tracee-rules, don't send events to rules with low priority when required
  5. Implement load monitoring in tracee-ebpf
  6. Implement load monitoring in tracee-rules
  7. Expose an API to set events/rules priority
  8. Expose an API to provide statistics of tracee-ebpf and tracee-rules dropped events/rules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions