"swarm exec" support
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, docker-compose, go
- Ambito
- devops, infrastructure
Direzione di ricerca
Read the linked issue 423 and the supplied swarm-backuper.sh and swarm-backuper-stack.yaml examples first. Then inspect the project's Docker Swarm support and entry points to determine where per-node exec and volume handling would fit. Done means defining and implementing the requested swarm-wide backup flow, including labeled exec steps, volume backups, and service scaling and restoration.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
Yes. The problem was described in issue 423. previous issue
Main points of problem
- Swarm cluster. 2 Nodes. MASTER_1, WORKER_1
- Run postgres with docker on WORKER_1
- Need to backup postgres. Before backup need to run script: pg_dump ...
- Up offen-backup on WORKER_1, add labels to deploy section of postgres stack (service)
- Catch the error: no master node. Can exec labels only on master
Describe the solution you'd like
Solution is
- Run offen-backup service ONLY on master node
- For exec labels - run one-time container (docker:25.0.5-cli-alpine) on EACH node when we found tasks (containers) with lables
- For volumes - run one-time container (offen-backup, for example) on EACH node when we found tasks (containers) with labels: volume-list (You can see it in my .sh script)
- If we want to use different timers for different exec-lables or different volume-list-labels - we can also use your idea of exec-label=database, but add support for exec and for volume-list
Additional context
I'm a big fan of docker-swarm. And use swarm cluster in production.
I spent some time and write .sh script for backup WHOLE swarm cluster, depends on labels and use your open-source project
swarm-backuper.sh
- GET all volumes from all nodes. Start docker dind container on each node and get volume list
- GET all services with label volume-list. in this label - we enter volumes, which we want to backup for this service. JOIN this volumes with volumes from step one. Result: MAP<node-name, [volume1, volume2, etc]>
- RUN all labels: exec-pre. Run separate container on each node, where we need to run exec-pre and run docker exec ...
- STOP all services with label: stop. Important: stop === scale to 0, Stop only services in replicated mode
- RUN offen-backup on each node with all volumes from step 2
- RESTORE all services with label: stop. Important: we need to use the JSON from step 4. Scale to original replicas number, before step 4
- RUN all labels: exec-post
How we can run it ?
swarm-backuper-stack.yaml
All of this functions can be write on GoLang and add to ypur project (offen-backup)
- Lingua principale
- Go
- Stelle
- 4.1k
- Fork
- 157
- Merge medio
- 4h 35m
- PR unite (30g)
- 15
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di offen/docker-volume-backup
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
offen/docker-volume-backup#910 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Forse già presa @ciltocruz l’ha presa 2 giorni fa. Apertaenhancement pr welcome
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
offen/docker-volume-backup#908 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
offen/docker-volume-backup#879 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Migrate away from `minio-go`Apertamaintenance pr welcome
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
offen/docker-volume-backup#869 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation pr welcome
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
offen/docker-volume-backup#796 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di offen/docker-volume-backup
Issue simili
-
area/ui-schema good first issue type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
router-for-me/CLIProxyAPI#8573 ·
I maintainer di solito rispondono entro 9 giorni
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyApertabug package:cmd priority:3-low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
docToolchain/Bausteinsicht#761 ·
I maintainer di solito rispondono entro 1 giorno
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Apertaarea/knowledge kind/bug priority/p1 status/accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openagentix/openagentix#253 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
quii/learn-go-with-tests#934 · 1 commento ·