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

enhancement(gcs sink): add retry for 408 http error #21449

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

benjamin-awd
Copy link
Contributor

Closes #21447

@benjamin-awd benjamin-awd requested a review from a team as a code owner October 8, 2024 10:59
@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Oct 8, 2024
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.

Thank you for this quick fix @benjamin-awd !

Signed-off-by: Jesse Szwedko <[email protected]>
@jszwedko jszwedko added this pull request to the merge queue Oct 8, 2024
@@ -155,6 +155,7 @@ impl RetryLogic for GcsRetryLogic {

match status {
StatusCode::UNAUTHORIZED => RetryAction::Retry("unauthorized".into()),
StatusCode::REQUEST_TIMEOUT => RetryAction::Retry("request timeout".into()),
Copy link
Contributor

Choose a reason for hiding this comment

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

As a follow up, can we also update the retry policy docs for the affected GC sinks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pront I've raised a PR for it here: #21458

Copy link

github-actions bot commented Oct 9, 2024

Regression Detector Results

Run ID: 5a1f3da3-99ac-4b5a-9f1f-ea196088b821 Metrics dashboard

Baseline: 597ebd1
Comparison: ed4c786

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

No significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +7.35 [-0.02, +14.72]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +7.35 [-0.02, +14.72]
otlp_http_to_blackhole ingress throughput +3.88 [+3.71, +4.05]
syslog_humio_logs ingress throughput +3.42 [+3.28, +3.55]
syslog_loki ingress throughput +1.96 [+1.86, +2.07]
socket_to_socket_blackhole ingress throughput +1.88 [+1.80, +1.95]
syslog_splunk_hec_logs ingress throughput +1.12 [+1.00, +1.23]
syslog_log2metric_splunk_hec_metrics ingress throughput +1.01 [+0.91, +1.12]
fluent_elasticsearch ingress throughput +0.91 [+0.41, +1.40]
datadog_agent_remap_datadog_logs ingress throughput +0.62 [+0.48, +0.77]
datadog_agent_remap_blackhole ingress throughput +0.48 [+0.37, +0.59]
http_text_to_http_json ingress throughput +0.38 [+0.26, +0.50]
http_to_http_noack ingress throughput +0.14 [+0.06, +0.21]
http_to_http_json ingress throughput +0.06 [+0.01, +0.11]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.02 [-0.08, +0.11]
splunk_hec_indexer_ack_blackhole ingress throughput +0.01 [-0.07, +0.09]
http_to_http_acks ingress throughput +0.01 [-1.20, +1.21]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.10, +0.10]
otlp_grpc_to_blackhole ingress throughput -0.00 [-0.12, +0.11]
datadog_agent_remap_datadog_logs_acks ingress throughput -0.04 [-0.26, +0.18]
http_to_s3 ingress throughput -0.28 [-0.55, -0.01]
syslog_regex_logs2metric_ddmetrics ingress throughput -0.44 [-0.61, -0.27]
splunk_hec_route_s3 ingress throughput -0.68 [-1.01, -0.35]
datadog_agent_remap_blackhole_acks ingress throughput -0.87 [-0.99, -0.75]
syslog_log2metric_humio_metrics ingress throughput -0.94 [-1.09, -0.80]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput -1.05 [-1.14, -0.95]
http_elasticsearch ingress throughput -2.46 [-2.63, -2.29]

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Copy link

github-actions bot commented Oct 9, 2024

Regression Detector Results

Run ID: 20a8e306-f779-4517-bd53-0e0fdd10b40a Metrics dashboard

Baseline: 5581b24
Comparison: 290b9dd

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

Significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

perf experiment goal Δ mean % Δ mean % CI links
syslog_regex_logs2metric_ddmetrics ingress throughput +5.20 [+5.06, +5.34]

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +24.52 [+16.61, +32.42]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +24.52 [+16.61, +32.42]
syslog_regex_logs2metric_ddmetrics ingress throughput +5.20 [+5.06, +5.34]
splunk_hec_route_s3 ingress throughput +2.89 [+2.57, +3.20]
datadog_agent_remap_blackhole_acks ingress throughput +1.79 [+1.65, +1.93]
syslog_splunk_hec_logs ingress throughput +1.45 [+1.32, +1.58]
syslog_log2metric_splunk_hec_metrics ingress throughput +1.14 [+1.03, +1.26]
datadog_agent_remap_datadog_logs_acks ingress throughput +0.92 [+0.74, +1.10]
datadog_agent_remap_datadog_logs ingress throughput +0.77 [+0.55, +1.00]
syslog_humio_logs ingress throughput +0.69 [+0.60, +0.78]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput +0.52 [+0.43, +0.61]
datadog_agent_remap_blackhole ingress throughput +0.46 [+0.35, +0.58]
syslog_log2metric_humio_metrics ingress throughput +0.32 [+0.14, +0.50]
fluent_elasticsearch ingress throughput +0.22 [-0.27, +0.72]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.03 [-0.07, +0.12]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.01 [-0.08, +0.10]
http_to_http_noack ingress throughput -0.00 [-0.02, +0.02]
http_to_http_json ingress throughput -0.00 [-0.03, +0.03]
splunk_hec_indexer_ack_blackhole ingress throughput -0.01 [-0.09, +0.07]
syslog_loki ingress throughput -0.39 [-0.48, -0.30]
socket_to_socket_blackhole ingress throughput -0.45 [-0.50, -0.39]
otlp_grpc_to_blackhole ingress throughput -0.53 [-0.64, -0.42]
http_text_to_http_json ingress throughput -0.63 [-0.75, -0.52]
otlp_http_to_blackhole ingress throughput -0.73 [-0.88, -0.58]
http_to_s3 ingress throughput -0.81 [-1.08, -0.54]
http_to_http_acks ingress throughput -1.29 [-2.51, -0.08]
http_elasticsearch ingress throughput -1.88 [-2.07, -1.69]

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Merged via the queue into vectordotdev:master with commit 290b9dd Oct 9, 2024
64 checks passed
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.

GCS Sink does not retry on request timeout (http error 408)
3 participants