GithubHelp home page GithubHelp logo

Comments (11)

valyala avatar valyala commented on May 23, 2024

As I know, the vmbackup ma run as a sidecar in the same pod as single-node VictoriaMetrics or vmstorage component in cluster version. cc'ing @tenmozes for more input

from helm-charts.

tenmozes avatar tenmozes commented on May 23, 2024

actually vmbackup is a cli command which can not be executed like sidecar, need to demonize it and add scheduling
this is main reason why it doesn't exist in helm chart

from helm-charts.

WyriHaximus avatar WyriHaximus commented on May 23, 2024

actually vmbackup is a cli command which can not be executed like sidecar, need to demonize it and add scheduling
this is main reason why it doesn't exist in helm chart

Yeah this is why I was thinking about using a cronjob for it. But if it only works with file access to the data that is going to be a bit harder

from helm-charts.

immerrr avatar immerrr commented on May 23, 2024

I think it should be possible, I am currently working on patching the helm chart to add a sidecar container to the server pod that would run vmbackup instance managed by crond.

Looks like vmbackup image is based off alpine, and according to

https://gist.github.com/AntonFriberg/692eb1a95d61aa001dbb4ab5ce00d291

I only need to put an incremental vmbackup invocation into /etc/periodic/hourly that would invoke a snapshot-creating request via curl against localhost (btw, would be a bit less moving pieces if vmbackup would be able to send the "create snapshot" request itself), and then put that snapshot into the /latest directory. And then a daily invocation of vmbackup would copy the /latest directory a daily snapshot, that script would go into /etc/periodic/daily.

from helm-charts.

ulikl avatar ulikl commented on May 23, 2024

Regarding "btw, would be a bit less moving pieces if vmbackup would be able to send the "create snapshot" request itself":
vmbackup has the option "-snapshot.createURL string" to do exactly this.

from helm-charts.

immerrr avatar immerrr commented on May 23, 2024

@ulikl ah, thank you, good to know!

does it mean that when i pass a -snapshotName=<local-snapshot> to vmbackup with -snapshot.createURL, it will create a snapshot automatically?

from helm-charts.

WyriHaximus avatar WyriHaximus commented on May 23, 2024

So does this mean we wouldn't have to go with the sidecar route and could go with a pod (cronjob) instead? Is -snapshot.createURL the URL of VM?

from helm-charts.

immerrr avatar immerrr commented on May 23, 2024

I think you still need a sidecar to access the volume where snapshots are created.

from helm-charts.

WyriHaximus avatar WyriHaximus commented on May 23, 2024

Ok wait, then how should I read:

 -snapshot.createURL string
    	VictoriaMetrics create snapshot url. When this is given a snapshot will automatically be created during backup. Example: http://victoriametrics:8428/snaphsot/create

(From: https://victoriametrics.github.io/vmbackup.html )

I might be missing some VM knowledge how snapshots work here tbh :D

from helm-charts.

immerrr avatar immerrr commented on May 23, 2024

This is the URL on the VictoriaMetrics (vmstorage) instance itself, that would trigger a creation of a snapshot in its corresponding data directory. If vmbackup has access to that directory, it can then send the generated file wherever you point it (S3, GCP, etc).

from helm-charts.

WyriHaximus avatar WyriHaximus commented on May 23, 2024

Ahhhh ok check 👍 . Yeah then it's going to be really hard not using a sidecar

from helm-charts.

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.