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

refactor(SharedTopologyController): Add blocking lock helper to SharedTopologyController #21243

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

ArunPiduguDD
Copy link
Contributor

@ArunPiduguDD ArunPiduguDD commented Sep 9, 2024

Overview

Have a use case which requires acquiring a lock on this resource from a non-async function, adding this helper method to simplify the flow.

@ArunPiduguDD ArunPiduguDD added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Sep 9, 2024
@ArunPiduguDD ArunPiduguDD requested a review from a team as a code owner September 9, 2024 17:19
@pront pront enabled auto-merge September 9, 2024 17:20
@github-actions github-actions bot added the domain: topology Anything related to Vector's topology code label Sep 9, 2024
@datadog-vectordotdev
Copy link

Datadog Report

Branch report: add-blocking-lock-to-shared-topology-controller
Commit report: 9dee033
Test service: vector

✅ 0 Failed, 7 Passed, 0 Skipped, 25.47s Total Time

@pront pront added this pull request to the merge queue Sep 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 9, 2024
…dTopologyController (#21243)

add blocking lock helper to SharedTopologyController
Copy link

github-actions bot commented Sep 9, 2024

Regression Detector Results

Run ID: 62c17d51-fe20-424b-a220-4dba4e68a25f Metrics dashboard

Baseline: 0fc48dd
Comparison: ed9d296

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 -8.00 [-14.58, -1.43]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
fluent_elasticsearch ingress throughput +1.99 [+1.49, +2.48]
splunk_hec_route_s3 ingress throughput +1.47 [+1.15, +1.80]
syslog_log2metric_humio_metrics ingress throughput +1.31 [+1.19, +1.43]
syslog_splunk_hec_logs ingress throughput +1.04 [+0.94, +1.14]
datadog_agent_remap_blackhole ingress throughput +0.81 [+0.69, +0.93]
http_to_s3 ingress throughput +0.67 [+0.40, +0.94]
otlp_grpc_to_blackhole ingress throughput +0.43 [+0.32, +0.54]
datadog_agent_remap_datadog_logs_acks ingress throughput +0.36 [+0.20, +0.51]
http_to_http_noack ingress throughput +0.19 [+0.10, +0.28]
http_to_http_json ingress throughput +0.08 [+0.02, +0.13]
splunk_hec_indexer_ack_blackhole ingress throughput +0.02 [-0.06, +0.10]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.02 [-0.07, +0.11]
splunk_hec_to_splunk_hec_logs_acks ingress throughput -0.00 [-0.11, +0.11]
socket_to_socket_blackhole ingress throughput -0.01 [-0.09, +0.07]
http_elasticsearch ingress throughput -0.03 [-0.20, +0.15]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput -0.27 [-0.39, -0.15]
http_text_to_http_json ingress throughput -0.30 [-0.42, -0.19]
datadog_agent_remap_blackhole_acks ingress throughput -0.39 [-0.51, -0.27]
syslog_loki ingress throughput -0.56 [-0.64, -0.48]
syslog_log2metric_splunk_hec_metrics ingress throughput -0.57 [-0.69, -0.45]
syslog_regex_logs2metric_ddmetrics ingress throughput -0.83 [-0.97, -0.69]
syslog_humio_logs ingress throughput -1.00 [-1.11, -0.90]
datadog_agent_remap_datadog_logs ingress throughput -1.53 [-1.72, -1.35]
http_to_http_acks ingress throughput -1.66 [-2.92, -0.41]
otlp_http_to_blackhole ingress throughput -1.81 [-1.94, -1.68]
file_to_blackhole egress throughput -8.00 [-14.58, -1.43]

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 Sep 9, 2024

Regression Detector Results

Run ID: e7b5e3cb-ce1d-4f79-a2f1-ccbc1ac695dd Metrics dashboard

Baseline: a91d606
Comparison: 9ccef3e

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 +6.49 [-0.76, +13.75]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +6.49 [-0.76, +13.75]
datadog_agent_remap_blackhole_acks ingress throughput +2.54 [+2.41, +2.66]
datadog_agent_remap_datadog_logs ingress throughput +2.34 [+2.11, +2.56]
syslog_splunk_hec_logs ingress throughput +1.29 [+1.18, +1.41]
otlp_grpc_to_blackhole ingress throughput +0.87 [+0.76, +0.99]
splunk_hec_route_s3 ingress throughput +0.44 [+0.12, +0.75]
http_to_http_noack ingress throughput +0.13 [+0.06, +0.21]
http_to_http_json ingress throughput +0.02 [-0.02, +0.06]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.10, +0.10]
splunk_hec_indexer_ack_blackhole ingress throughput +0.00 [-0.08, +0.08]
splunk_hec_to_splunk_hec_logs_noack ingress throughput -0.00 [-0.10, +0.09]
http_to_http_acks ingress throughput -0.07 [-1.34, +1.20]
syslog_log2metric_humio_metrics ingress throughput -0.09 [-0.23, +0.06]
fluent_elasticsearch ingress throughput -0.24 [-0.73, +0.25]
http_to_s3 ingress throughput -0.47 [-0.74, -0.21]
syslog_humio_logs ingress throughput -0.62 [-0.76, -0.47]
syslog_log2metric_splunk_hec_metrics ingress throughput -0.65 [-0.81, -0.50]
syslog_loki ingress throughput -0.98 [-1.05, -0.90]
socket_to_socket_blackhole ingress throughput -1.00 [-1.06, -0.93]
http_elasticsearch ingress throughput -1.19 [-1.34, -1.03]
syslog_regex_logs2metric_ddmetrics ingress throughput -1.22 [-1.36, -1.07]
http_text_to_http_json ingress throughput -1.26 [-1.37, -1.16]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput -1.52 [-1.63, -1.41]
otlp_http_to_blackhole ingress throughput -1.60 [-1.74, -1.46]
datadog_agent_remap_datadog_logs_acks ingress throughput -1.79 [-1.97, -1.62]
datadog_agent_remap_blackhole ingress throughput -1.95 [-2.05, -1.85]

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 master with commit 9ccef3e Sep 9, 2024
71 checks passed
@pront pront deleted the add-blocking-lock-to-shared-topology-controller branch September 9, 2024 19:23
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
…dTopologyController (vectordotdev#21243)

add blocking lock helper to SharedTopologyController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: topology Anything related to Vector's topology code no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants