Comments (11)
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.
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.
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.
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.
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.
@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.
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.
I think you still need a sidecar to access the volume where snapshots are created.
from helm-charts.
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.
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.
Ahhhh ok check 👍 . Yeah then it's going to be really hard not using a sidecar
from helm-charts.
Related Issues (20)
- chart "vmagent" version "v0.10.4" not found in https://victoriametrics.github.io/helm-charts/ repository HOT 1
- helm install failed when serviceMonitor is enabled HOT 1
- Allow adding additional labels to alert rules in victoria-metrics-k8s-stack helm chart
- Latest v0.22 victoria-metrics-k8s-stack is unable to uninstall HOT 4
- How to properly setup remoteWrite credentials in vmagent HOT 1
- Deprecated etcd alert "etcdHighNumberOfFailedGRPCRequests"
- Labels should be truncated HOT 2
- Helm Charts: missing Ingress Definition for TLS
- Cannot support existingClaim and different pvc for different vmstorage pods at the same time HOT 12
- Add a `vmstorage.vmbackup.enabled` value to the `victoria-metrics-cluster` chart HOT 1
- Added values file option for -remoteWrite.relabelConfig & -remoteWrite.urlRelabelConfig HOT 3
- Allow setting `metricRelabelings` on ServiceMonitors
- Support options for vmagent to scrape targets via a proxy HOT 2
- Duplicated VictoriaMetrics datasource HOT 1
- [k8s-stack/kube-etcd] Cannot specify mTLS auth configuration HOT 2
- Custom container port name is not supported. HOT 2
- Outdated CRD on victoria-metrics-k8s-stack chart HOT 2
- config-reloader liveness checks failing in victoria-metrics-k8s-stack 0.21.0 HOT 3
- Typo in Role template for Victoria-metrics-operator HOT 1
- Setting Alertmanager's config-reloader container resources in victoria-metrics-k8s-stack values HOT 1
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 helm-charts.