GithubHelp home page GithubHelp logo

Comments (1)

Amper avatar Amper commented on June 22, 2024

Hey @HarshitaJha.

In brief (but be sure to read the "Related links"):

  • Shards are needed if you have too many scraping targets and have reached your vertical scaling limits. If you're migrating from a single Prometheus instance, you probably don't need sharding.
  • If you really wish to achieve HA at the scraping level, then yes you need replication, but instead of cluster mode in vmagent you can just use HA pair - two equally configured vmagent replicas + deduplication at the database level. This is exactly how replicaCount works for vmagent in vm-operator. But that's up to you, the vmagent load doesn't last that long, so maybe losing a couple of scrape intervals on restart isn't a big deal for you.
  • It all depends on what you want to achieve. Did you choose a cluster because you really need HA and unlimited scalability? In this case, it's not fair to compare performance (with the same amount of resources) because you've chose other benefits (HA, replication, per-component scalability) instead. If you don't need it, you may prefer Single-version, it will work faster with the same resources, see more details in this question.
    I would also like to point out that in its current form your cluster (replicationFactor=2 with 2 vmstorages) will not be able to support HA correctly If one storage node is unavailable, there is nowhere to reroute the second replica of the data (see Replication and data safety, Cluster availability and other related links).

For all other points I believe that you can find the answers in the attached "Related links".

Related links:

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.