-
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
Change batch size calculation from message count to message size #388
Change batch size calculation from message count to message size #388
Conversation
54f39c2
to
54e4f50
Compare
72baa17
to
7455be2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LucioDonda Can you clarify why these errors are happening?
On the other hand, please confirm that the maximum proposed batch size matches the maximum body size that the server would accept.
5b109f0
to
019468e
Compare
src/agent/configuration_parser/include/configuration_parser.hpp
Outdated
Show resolved
Hide resolved
c09cfd7
to
c21cc9a
Compare
898109b
to
19556a0
Compare
7f944d6
to
f60dd92
Compare
f60dd92
to
40885d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
{ | ||
if constexpr (std::is_convertible_v<decltype(key), std::string_view>) | ||
{ | ||
// This is a workaround for parsing size units |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, open an issue to improve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomasTurina Issue created : #447
Description
After implementing the configuration options for event batching (#306), we need to change the way we build the batch. Instead of specifying
batch_size
as the number of messages we want to retrieve from the queue to build the message batch, we want to specify the batch size in bytes.The mechanism that the communicator component uses to retrieve messages needs to be changed, as it will now need to calculate the size of each message when creating the batch.
Configuration options
For this, the already implemented
batch_size
setting will be used, but will accept the following values instead:Details:
Tests