-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
Incidents & Support
-
False
-
-
False
-
NEW
-
NEW
-
Bug Fix
-
Customer Facing
Description of problem:
In Logging 6.2.6, the value of vector_buffer_max_byte_size is always 0.
This value is incorrect.
In another environment using Logging 6.2.2, the value is correct (268435488).
This looks like a regression in 6.2.6.
Version-Release number of selected component (if applicable):
OpenShift v4.20.0
cluster-logging.v6.2.6
How reproducible:
Always
Steps to Reproduce:
Step1. Install Logging 6.2.6 and configure ClusterLogForwarder.
Step2. Check the value of vector_buffer_max_byte_size using Prometheus query.
Actual results:
The value of vector_buffer_max_byte_size is 0 in Logging 6.2.6.
In Logging 6.2.2, the value was 268435488.
Expected results:
The value should be the same as in Logging 6.2.2 (268435488), which matches the max_size defined in vector.toml.
Additional information:
We haven't investigated deeply yet, but we noticed 2 points that may be related to this issue:
Point 1:
Why was as u64 omitted for buffer_max_byte_size?
as u64 is used for max_size_events:
Also, vector_buffer_max_event_size still works even with 6.2.6.
Maybe as u64 is important.
Point 2:
There is a commit that adds buffer_id handling for metrics:
https://github.com/vparfonov/vector/commit/72428f3954ace3f678830438579ad11c9a1ff1bf
We think similar handling may be needed for buffer_max_byte_size and buffer_max_event_size.
In upstream, buffer_id handling was added in a similar place: