-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Event Batching Configurable #306
Comments
Work updateNovember 18
|
UpdateChecked out branche and rebased to latest master. Fixed tests related to the message queue get and pop messages functions. |
UpdatePicked up the work after having it paused by other tasks. Rebased again and solved conflicts. There are new variables for setting the batch size and interval. The multitype queue already supported having a timeout interval, the mentioned variables will be used as the multitype queue timeout interval. The mechanism to either wait for the batch to be complete or the timeout to have passed is in place. What is missing now is a way to communicate how many messages have been used from the queue, so they can be popped at a latter staged if they were recived by the manager. Currently the queue doesn't enforce its invariant in any way, so how many messages are retrieved and how many are popped needs to match and this value has to be persisted throughout. |
UpdateThe number of messages retrieved is now shared between get and pop calls. Needs testing. Proposed configuration options need to be renamed. |
UpdateCreated PR for the issue. Waiting review. |
Parent Issue: #241
Description
Currently, the Wazuh Agent sends batches of messages from its queue to the server every second. We propose making the batching process configurable to allow greater flexibility.
The agent should send a batch of messages under the first condition that occurs:
batch_interval
has elapsed since the last batch and there are messages in the queue.batch_size
.This design ensures:
batch_interval
seconds.Proposed Configuration Options
The following parameters can be added to
agent.yml
:Parameter Details
batch_interval
:"500ms"
,"10s"
,"1m"
,"1h"
."1s"
to"1h"
.batch_size
:"1000"
to"1000000"
.The text was updated successfully, but these errors were encountered: