"swarm exec" support
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, docker-compose, go
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- Go
- Star
- 4.1k
- Fork
- 157
- Merge trung bình
- 4 giờ 35 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của offen/docker-volume-backup
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
offen/docker-volume-backup#910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Có thể đã có người làm @ciltocruz đã nhận 2 ngày trước. Đang mởenhancement pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
offen/docker-volume-backup#908 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feat: age post quantum supportĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
offen/docker-volume-backup#879 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrate away from `minio-go`Đang mởmaintenance pr welcome
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
offen/docker-volume-backup#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
offen/docker-volume-backup#796 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của offen/docker-volume-backup
Issue tương tự
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
router-for-me/CLIProxyAPI#8573 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyĐang mởbug package:cmd priority:3-low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
docToolchain/Bausteinsicht#761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Đang mởarea/knowledge kind/bug priority/p1 status/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openagentix/openagentix#253 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
quii/learn-go-with-tests#934 · 1 bình luận ·