Comments (3)
Some appendix after re-test: It may be unsafe to remove any remotewrite configuration except the last one.
To reproduce:
- setup multiple remotewrite configurations with different URL. The folder structure should be:
└── persistent-queue
├── 1_A
├── 2_B
├── 3_C
├── 4_D
├── 5_E
└── 6_F
- remove 1st remotewrite configuration. The expected folder structure becomes:
└── persistent-queue
├── 1_B
├── 2_C
├── 3_D
├── 4_E
└── 5_F
vmagent
compare the expect result and current folder structure, and decided to:
- remove 6 folders.
- create 5 folders.
Logs:
2024-04-18T09:00:30.493Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "1_B6EB6B7CD67EE018"
2024-04-18T09:00:30.500Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "2_7671E3D57693E853"
2024-04-18T09:00:30.506Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "3_ABAF801ED13C9AA1"
2024-04-18T09:00:30.512Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "4_0FA401F50943511E"
2024-04-18T09:00:30.521Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "5_39D21E2644A67225"
2024-04-18T09:00:30.528Z info app/vmagent/remotewrite/remotewrite.go:266 removing dangling queue "6_ED4C191D78378D55"
2024-04-18T09:00:30.534Z info app/vmagent/remotewrite/remotewrite.go:273 removed 6 dangling queues from "vmagent-remotewrite-data", active queues: 5
from victoriametrics.
Hello @jiekun!
Thanks for such detailed report! Really appreciate it!
Potential solutions would be:
I don't think we need to fix it, at least for now. Please see my reasoning in this commit 4251292
from victoriametrics.
Sure. Let me close the issue. Thanks for your attention.
It's still necessary to mention the case again as in the 1st comment:
- if we have
n
configs (with different URLs), removing the configs[i] will result in potential data loss for configi+1
ton
remote write.
Instead of just covering the case with identical url
s, it would be good to cover the more general one (also a more risky one) in code comment. And I tried to ensure that this case is also noticed by our maintainers, rather than the original bug report.
from victoriametrics.
Related Issues (20)
- vmauth per-user metrics can cause high memory usage in the long term HOT 2
- vmbackup cannot open a snapshot that it just created HOT 7
- How to drop selected metrics received at victoriametrics (single) from api/v1/write remoteWrite vmagents? HOT 4
- Scrape CRD's support by single-node VictoriaMetrics HOT 2
- victorialogs crash HOT 4
- ERROR: 422 on query with binary operation and keep_metric_names HOT 4
- vmui requests are not automatically quoted HOT 1
- Graphite queries not calculated correctly HOT 1
- how to set custom tag in filebeat output.elasticsearch _stream_fields HOT 2
- vmagent k8s target discovery is too slow HOT 4
- Data integrity problem after the vmstorage breaks down HOT 3
- victoria logsQL sort unexpected result. HOT 3
- How to search log as quickly as possible while writing log in client side HOT 2
- Attempts to configure VM for small memory footprint don't yield expected results HOT 2
- Maximum advised storage capacity for a vmstorage instance? HOT 1
- VictoriaMetrics Datadog APM/Trace Agent URL integration HOT 3
- MetricsQL: Document stalness marker differences between `default_rollup` and `last_over_time` HOT 2
- How to properly setup remoteWrite credentials in vmagent HOT 8
- VictoriaLogs UI sometimes loses log records in Firefox HOT 8
- Teach -httpAuth.username to read content of a file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from victoriametrics.