Skip to content

capi: throttle signal push for non-enrolled instances and increase the batch size - #4798

Merged
blotus merged 4 commits into
masterfrom
blotus/signal-push-opti
Nov 12, 2026
Merged

blotus merged 4 commits into
masterfrom
blotus/signal-push-opti

Conversation

@blotus

@blotus blotus commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Increase signals push interval to CAPI:

  • 5 minutes for unenrolled instances
  • 1 minute for enrolled but community plan only if we have a constant stream alerts. Otherwise we send ASAP (subject to the 10s default interval).

Also increase the maximum batch size to 200, and set a max body size to 6MiB.

If too many signals need to be pushed, then multiple requests will be made.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

@blotus: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.47619% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.87%. Comparing base (849c7a2) to head (fefd3a2).
⚠️ Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
pkg/apiserver/apic.go 90.32% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4798      +/-   ##
==========================================
+ Coverage   71.82%   71.87%   +0.04%     
==========================================
  Files         545      545              
  Lines       37163    37210      +47     
==========================================
+ Hits        26691    26743      +52     
+ Misses      10471    10466       -5     
  Partials        1        1              
Flag Coverage Δ
bats 45.27% <19.04%> (+<0.01%) ⬆️
unit-linux 49.88% <90.47%> (+0.10%) ⬆️
unit-windows 37.85% <90.47%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@buixor buixor added this to the 1.8.3 milestone Nov 10, 2026
@blotus
blotus merged commit 107a1e7 into master Nov 12, 2026
17 checks passed
@blotus
blotus deleted the blotus/signal-push-opti branch November 12, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants