8000 fix(config): Make config watcher recursive. by iFurySt · Pull Request #20996 · vectordotdev/vector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(config): Make config watcher recursive. #20996

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

Merged

Conversation

iFurySt
Copy link
Contributor
@iFurySt iFurySt commented Aug 4, 2024

Close #20547, this problem is that the watcher doesn't watch dir recursively.

This easily changes the watcher to watch dir recursively. While this may not be the best solution, considering that config::watcher::spawn_thread is currently only used for watching config. IMHO, it seems intuitive to watch paths recursively.

Please let me know if you have any concerns about potential implications for users to upgrade the version.

@iFurySt iFurySt requested a review from a team as a code owner August 4, 2024 09:38
@iFurySt iFurySt changed the title fix(config watcher): Make config watcher recursive. fix(config): Make config watcher recursive. Aug 4, 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.

Good catch, thanks @iFurySt !

Could we add:

@iFurySt
Copy link
Contributor Author
iFurySt commented Aug 7, 2024

Of course, let me handle it

Signed-off-by: ifuryst <ifuryst@gmail.com>
@iFurySt iFurySt force-pushed the bugfix/recursive-config-watcher branch from eba9045 to 06f4ff4 Compare August 8, 2024 04:33
@iFurySt
Copy link
Contributor Author
iFurySt commented Aug 8, 2024

image

Xnip2024-08-08_12-14-24

@jszwedko All requested changes were done. The unit tests passed on my machine. Feel free to review it again when you have time.

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.

Perfect, thank you for this contribution!

Copy link
Member
jszwedko commented Aug 8, 2024

I think this just needs a cargo fmt.

Signed-off-by: ifuryst <ifuryst@gmail.com>
auto-merge was automatically disabled August 9, 2024 02:13

Head branch was pushed to by a user without write access

@iFurySt
Copy link
Contributor Author
iFurySt commented Aug 9, 2024

@jszwedko Sorry for that, I've fixed it. It looks like the md checking failed rather than rust files. Unfortunately, the cargo fmt (or make fmt) can't fix the markdown fmt.

Xnip2024-08-09_10-12-18

@jszwedko
Copy link
Member
jszwedko commented Aug 9, 2024

@jszwedko Sorry for that, I've fixed it. It looks like the md checking failed rather than rust files. Unfortunately, the cargo fmt (or make fmt) can't fix the markdown fmt.

Xnip2024-08-09_10-12-18

Ah, yes, the markdown lint errors have to be fixed manually. I see you did so. Thank you!

@jszwedko jszwedko enabled auto-merge August 9, 2024 14:30
@jszwedko jszwedko added this pull request to the merge queue Aug 9, 2024
Copy link
github-actions bot commented Aug 9, 2024

Regression Detector Results

Run ID: 8b939301-4cfe-4491-a2f9-77d7ea099449 Metrics dashboard

Baseline: 93e423f
Comparison: 559e069

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.59 [-13.51, +0.34]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
syslog_humio_logs ingress throughput +3.16 [+3.03, +3.30]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput +1.02 [+0.93, +1.10]
datadog_agent_remap_datadog_logs_acks ingress throughput +0.62 [+0.45, +0.80]
syslog_loki ingress throughput +0.46 [+0.36, +0.57]
http_to_s3 ingress throughput +0.35 [+0.09, +0.62]
http_text_to_http_json ingress throughput +0.33 [+0.22, +0.44]
http_to_http_acks ingress throughput +0.25 [-1.07, +1.57]
socket_to_socket_blackhole ingress throughput +0.22 [+0.15, +0.28]
http_to_http_noack ingress throughput +0.14 [+0.07, +0.22]
otlp_grpc_to_blackhole ingress throughput +0.12 [+0.00, +0.24]
http_to_http_json ingress throughput +0.02 [-0.02, +0.05]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.01 [-0.08, +0.11]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.01 [-0.09, +0.10]
splunk_hec_indexer_ack_blackhole ingress throughput -0.02 [-0.10, +0.06]
otlp_http_to_blackhole ingress throughput -0.18 [-0.36, -0.01]
syslog_splunk_hec_logs ingress throughput -0.47 [-0.54, -0.39]
datadog_agent_remap_blackhole_acks ingress throughput -0.74 [-0.85, -0.63]
http_elasticsearch ingress throughput -0.86 [-1.00, -0.72]
fluent_elasticsearch ingress throughput -0.86 [-1.35, -0.38]
syslog_regex_logs2metric_ddmetrics ingress throughput -0.99 [-1.13, -0.86]
syslog_log2metric_splunk_hec_metrics ingress throughput -1.20 [-1.31, -1.09]
splunk_hec_route_s3 ingress throughput -2.04 [-2.34, -1.74]
datadog_agent_remap_blackhole ingress throughput -2.28 [-2.40, -2.15]
syslog_log2metric_humio_metrics ingress throughput -2.79 [-2.94, -2.63]
datadog_agent_remap_datadog_logs ingress throughput -3.72 [-3.92, -3.53]
file_to_blackhole egress throughput -6.59 [-13.51, +0.34]

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 559e069 Aug 9, 2024
49 checks passed
frankh pushed a commit to frankh/vector that referenced this pull request Aug 12, 2024
* fix: Make config watcher recursive.

Signed-off-by: ifuryst <ifuryst@gmail.com>

* fix check-fmt fail.

Signed-off-by: ifuryst <ifuryst@gmail.com>

---------

Signed-off-by: ifuryst <ifuryst@gmail.com>
ym pushed a commit to ym/vector that referenced this pull request Aug 18, 2024
* fix: Make config watcher recursive.

Signed-off-by: ifuryst <ifuryst@gmail.com>

* fix check-fmt fail.

Signed-off-by: ifuryst <ifuryst@gmail.com>

---------

Signed-off-by: ifuryst <ifuryst@gmail.com>
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
* fix: Make config watcher recursive.

Signed-off-by: ifuryst <ifuryst@gmail.com>

* fix check-fmt fail.

Signed-off-by: ifuryst <ifuryst@gmail.com>

---------

Signed-off-by: ifuryst <ifuryst@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--watch-config hot reloading is not working with config namespacing
2 participants
0