Giter Club home page Giter Club logo

Comments (2)

zekker6 avatar zekker6 commented on May 27, 2024

Hello @naughtyGitCat

There are a few ways to achieve this:

  1. 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.

  2. 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 use dedup.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.

  3. 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.

naughtyGitCat avatar naughtyGitCat commented on May 27, 2024

thanks, your suggestion is very meticulous

from victoriametrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.