Skip to content
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

fix(sinks): use uncompressed body size for bytes sent #19060

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

dsmith3197
Copy link
Contributor

@dsmith3197 dsmith3197 commented Nov 6, 2023

@dsmith3197 dsmith3197 requested a review from a team November 6, 2023 14:52
@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Nov 6, 2023
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I look forward to having tests around this :)

Copy link
Contributor

@neuronull neuronull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this just needs a note to the upgrade guide?

@dsmith3197 dsmith3197 requested review from a team as code owners November 9, 2023 19:41
@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented Nov 9, 2023

Datadog Report

Branch report: dougsmith/uncompressed-sent-bytes
Commit report: 3a327b7

vector: 0 Failed, 0 New Flaky, 2015 Passed, 0 Skipped, 1m 21.2s Wall Time

@dsmith3197 dsmith3197 added this pull request to the merge queue Nov 10, 2023
Copy link

Regression Detector Results

Run ID: 5adc50a1-8657-4cf2-9f45-fbabffca8395
Baseline: af8ae99
Comparison: cd7172a
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

Because a target's optimization goal performance in each experiment will vary somewhat each time it is run, we can only estimate mean differences in optimization goal relative to the baseline target. We express these differences as a percentage change relative to the baseline target, denoted "Δ mean %". These estimates are made to a precision that balances accuracy and cost control. We represent this precision as a 90.00% confidence interval denoted "Δ mean % CI": there is a 90.00% chance that the true value of "Δ mean %" is in that interval.

We decide whether a change in performance is a "regression" -- a change worth investigating further -- if both of the following two criteria are true:

  1. The estimated |Δ mean %| ≥ 5.00%. This criterion intends to answer the question "Does the estimated change in mean optimization goal performance have a meaningful impact on your customers?". We assume that when |Δ mean %| < 5.00%, the impact on your customers is not meaningful. We also assume that a performance change in optimization goal is worth investigating whether it is an increase or decrease, so long as the magnitude of the change is sufficiently large.

  2. Zero is not in the 90.00% confidence interval "Δ mean % CI" about "Δ mean %". This statement is equivalent to saying that there is at least a 90.00% chance that the mean difference in optimization goal is not zero. This criterion intends to answer the question, "Is there a statistically significant difference in mean optimization goal performance?". It also means there is no more than a 10.00% chance this criterion reports a statistically significant difference when the true difference in mean optimization goal is zero -- a "false positive". We assume you are willing to accept a 10.00% chance of inaccurately detecting a change in performance when no true difference exists.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values of "Δ mean %" mean that baseline is faster, whereas positive values of "Δ mean %" mean that comparison is faster. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.

Fine details of change detection per experiment.
experiment goal Δ mean % Δ mean % CI confidence
datadog_agent_remap_datadog_logs_acks ingress throughput +1.40 [+1.33, +1.47] 100.00%
syslog_splunk_hec_logs ingress throughput +1.18 [+1.14, +1.21] 100.00%
syslog_regex_logs2metric_ddmetrics ingress throughput +1.11 [+1.00, +1.21] 100.00%
file_to_blackhole egress throughput +0.88 [-1.68, +3.45] 42.91%
datadog_agent_remap_datadog_logs ingress throughput +0.72 [+0.62, +0.81] 100.00%
http_to_http_acks ingress throughput +0.55 [-0.74, +1.85] 51.72%
syslog_log2metric_splunk_hec_metrics ingress throughput +0.52 [+0.40, +0.65] 100.00%
datadog_agent_remap_blackhole ingress throughput +0.23 [+0.14, +0.31] 100.00%
syslog_humio_logs ingress throughput +0.19 [+0.10, +0.29] 99.87%
http_to_http_noack ingress throughput +0.13 [+0.03, +0.22] 97.27%
datadog_agent_remap_blackhole_acks ingress throughput +0.07 [-0.02, +0.16] 81.49%
http_to_http_json ingress throughput +0.02 [-0.05, +0.09] 39.86%
splunk_hec_route_s3 ingress throughput +0.01 [-0.49, +0.51] 3.35%
otlp_grpc_to_blackhole ingress throughput +0.01 [-0.09, +0.11] 12.28%
splunk_hec_indexer_ack_blackhole ingress throughput +0.01 [-0.13, +0.15] 8.60%
enterprise_http_to_http ingress throughput +0.01 [-0.05, +0.06] 18.67%
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.14, +0.15] 1.91%
splunk_hec_to_splunk_hec_logs_noack ingress throughput -0.06 [-0.18, +0.05] 61.52%
fluent_elasticsearch ingress throughput -0.14 [-0.59, +0.31] 39.31%
http_to_s3 ingress throughput -0.15 [-0.42, +0.13] 62.35%
http_text_to_http_json ingress throughput -0.34 [-0.47, -0.21] 100.00%
http_elasticsearch ingress throughput -0.75 [-0.81, -0.69] 100.00%
syslog_loki ingress throughput -0.75 [-0.79, -0.71] 100.00%
socket_to_socket_blackhole ingress throughput -1.12 [-1.19, -1.05] 100.00%
syslog_log2metric_humio_metrics ingress throughput -1.57 [-1.65, -1.48] 100.00%
otlp_http_to_blackhole ingress throughput -1.59 [-1.74, -1.44] 100.00%

Copy link

Regression Detector Results

Run ID: 379f9285-5eef-462d-a1c2-26c76e96deab
Baseline: c7ae2a6
Comparison: ca64f31
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

Because a target's optimization goal performance in each experiment will vary somewhat each time it is run, we can only estimate mean differences in optimization goal relative to the baseline target. We express these differences as a percentage change relative to the baseline target, denoted "Δ mean %". These estimates are made to a precision that balances accuracy and cost control. We represent this precision as a 90.00% confidence interval denoted "Δ mean % CI": there is a 90.00% chance that the true value of "Δ mean %" is in that interval.

We decide whether a change in performance is a "regression" -- a change worth investigating further -- if both of the following two criteria are true:

  1. The estimated |Δ mean %| ≥ 5.00%. This criterion intends to answer the question "Does the estimated change in mean optimization goal performance have a meaningful impact on your customers?". We assume that when |Δ mean %| < 5.00%, the impact on your customers is not meaningful. We also assume that a performance change in optimization goal is worth investigating whether it is an increase or decrease, so long as the magnitude of the change is sufficiently large.

  2. Zero is not in the 90.00% confidence interval "Δ mean % CI" about "Δ mean %". This statement is equivalent to saying that there is at least a 90.00% chance that the mean difference in optimization goal is not zero. This criterion intends to answer the question, "Is there a statistically significant difference in mean optimization goal performance?". It also means there is no more than a 10.00% chance this criterion reports a statistically significant difference when the true difference in mean optimization goal is zero -- a "false positive". We assume you are willing to accept a 10.00% chance of inaccurately detecting a change in performance when no true difference exists.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values of "Δ mean %" mean that baseline is faster, whereas positive values of "Δ mean %" mean that comparison is faster. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.

Fine details of change detection per experiment.
experiment goal Δ mean % Δ mean % CI confidence
syslog_log2metric_splunk_hec_metrics ingress throughput +0.53 [+0.41, +0.66] 100.00%
splunk_hec_route_s3 ingress throughput +0.53 [+0.03, +1.03] 91.75%
syslog_regex_logs2metric_ddmetrics ingress throughput +0.48 [+0.40, +0.56] 100.00%
datadog_agent_remap_datadog_logs ingress throughput +0.30 [+0.21, +0.39] 100.00%
otlp_grpc_to_blackhole ingress throughput +0.29 [+0.19, +0.39] 100.00%
syslog_loki ingress throughput +0.28 [+0.25, +0.31] 100.00%
http_to_http_acks ingress throughput +0.24 [-1.07, +1.55] 23.77%
datadog_agent_remap_blackhole_acks ingress throughput +0.24 [+0.15, +0.32] 100.00%
http_to_http_noack ingress throughput +0.18 [+0.09, +0.28] 99.82%
syslog_log2metric_humio_metrics ingress throughput +0.10 [+0.03, +0.18] 97.35%
datadog_agent_remap_blackhole ingress throughput +0.08 [-0.00, +0.16] 89.37%
http_to_http_json ingress throughput +0.02 [-0.05, +0.10] 42.40%
splunk_hec_indexer_ack_blackhole ingress throughput +0.00 [-0.14, +0.14] 1.61%
splunk_hec_to_splunk_hec_logs_acks ingress throughput -0.00 [-0.14, +0.14] 1.63%
splunk_hec_to_splunk_hec_logs_noack ingress throughput -0.05 [-0.16, +0.07] 48.05%
enterprise_http_to_http ingress throughput -0.09 [-0.15, -0.03] 98.88%
fluent_elasticsearch ingress throughput -0.19 [-0.64, +0.26] 51.95%
syslog_humio_logs ingress throughput -0.20 [-0.27, -0.13] 100.00%
http_to_s3 ingress throughput -0.28 [-0.55, -0.00] 90.29%
datadog_agent_remap_datadog_logs_acks ingress throughput -0.43 [-0.52, -0.35] 100.00%
http_text_to_http_json ingress throughput -0.49 [-0.63, -0.36] 100.00%
socket_to_socket_blackhole ingress throughput -0.67 [-0.73, -0.60] 100.00%
syslog_splunk_hec_logs ingress throughput -0.75 [-0.82, -0.69] 100.00%
file_to_blackhole egress throughput -0.83 [-3.30, +1.64] 42.08%
http_elasticsearch ingress throughput -0.91 [-0.97, -0.85] 100.00%
otlp_http_to_blackhole ingress throughput -1.10 [-1.25, -0.95] 100.00%

Merged via the queue into master with commit ca64f31 Nov 13, 2023
40 checks passed
@dsmith3197 dsmith3197 deleted the dougsmith/uncompressed-sent-bytes branch November 13, 2023 10:02
neuronull pushed a commit that referenced this pull request Nov 13, 2023
* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
pront pushed a commit to dygfloyd/vector that referenced this pull request Nov 15, 2023
…9060)

* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
neuronull pushed a commit that referenced this pull request Nov 16, 2023
* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
jszwedko pushed a commit that referenced this pull request Nov 16, 2023
* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
dsmith3197 added a commit that referenced this pull request Jan 8, 2024
* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
…9060)

* fix(sinks): use uncompressed body size for bytes sent

* also http service

* add upgrade guide entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sinks Anything related to the Vector's sinks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants