Comments (2)
Hello @naughtyGitCat
There are a few ways to achieve this:
-
Separate read and write paths to use different sets of storage nodes.
You can change vminsert configuration to write data to 3 nodes out of 6 existing nodes. vmselects should still read the data from all 6 nodes. Once retention period removes all data from excessive storage nodes it's possible to remove those storage nodes and update vmselect configuration.
This option works well for short retention periods as it requires all storage nodes to be available until retention will remove the data. -
Re-import data to be distributed across 3 storage nodes.
The idea is to update vminsert configuration to only write data to 3 storage nodes which will be left in cluster.
After this you can export data from cluster and import back.
Please, make sure that deduplication is enabled before importing data. You can usededup.minScrapeIntervals=1ms
for this case.
In this case data will be distributed across 3 storage nodes used in vminsert configuration, deduplication will remove the duplicate samples created by import operations in the background.
After import is finished it is possible to remove unneeded storage nodes as the data for these storage nodes is already present in cluster. -
Create new cluster with the desired configuration and migrate the data.
This option is the most straightforward and simple to implement. It works unless it is required to update an existing cluster.
from victoriametrics.
thanks, your suggestion is very meticulous
from victoriametrics.
Related Issues (20)
- High requests and churn rate when writing metrics for /api/v1/import/prometheus in Pushgateway format HOT 5
- operations rate needed for vmbackup to GCS
- mask the cli flags related to username in the logs HOT 2
- After enabling Autocomplete in vmui, only a very small portion of data is displayed. HOT 1
- After upgrade VictoriaMetrics to newest release observed 100% CPU usage HOT 1
- support regex matching for `src_query_args` in vmauth HOT 5
- vmagent: service discovery support for OVH dedicated server and vps HOT 1
- victorialmetrics、vmalert组件认证支持从文件读取密文 HOT 1
- High CPU,once per the configured -retentionPeriod HOT 6
- [VictoriaLogs] timezone problems HOT 1
- Can the memory of vmstorage be reduced? HOT 1
- Implement sanitize logic for graphite as in other protocols .
- vmalert: long query execution in annotations blocks API HOT 4
- vmagent relable metrics HOT 12
- Use yaml.v3 instead of yaml.v2 HOT 1
- Where can I find the following documents on specific functions of monitoring indicators? HOT 1
- VictoriaLogs often has too many active merges when OOM occurs. HOT 4
- Send data with VM remote_write from vmagent to vminsert HOT 8
- cannot scrape target "https://172.16.0.74:2379/metrics" tls: failed to verify certificate: x509: certificate signed by unknown authority HOT 7
- VMUI show alerts as it is in prometheus
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.