Tidak Ada Deskripsi

Miao Wang 45099fc7d3 Fix config_diff panics when old config or new config is empty 2 tahun lalu
.github c3b742c2a8 move set up go after checkout 2 tahun lalu
.umlrootfs b372744640 update ci script 2 tahun lalu
.vscode b2a22a9bbc update editor config 5 tahun lalu
autocomplete 83fc766147 feat(bash and zsh autocompletion for tunasynctl): 9 tahun lalu
cmd 60f92ceebb Fix incomplete usage on tunasynctl set-size 2 tahun lalu
docs bca49abd3c doc: increase default interval 2 tahun lalu
internal c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 4 tahun lalu
manager 32c4d38449 Fix wrong usage of val in leveldb backend 4 tahun lalu
systemd 28c8145137 feature(worker): limit rsync memory using cgroup 9 tahun lalu
tests 5c8d90608c feature(worker): implemented multi-file configrations. closing #23 9 tahun lalu
worker 45099fc7d3 Fix config_diff panics when old config or new config is empty 2 tahun lalu
.gitignore 8ebace4d9a Add support for multiarch builds 5 tahun lalu
.testpackages.txt 44af0d5e62 feature(worker): framework of mirror provider 9 tahun lalu
LICENSE 78f3501e19 Initial commit 11 tahun lalu
Makefile c26e9fb64a cgroupv2: add tests on cgv1 for implicit cgroup 4 tahun lalu
README.md 94b9b20626 Improve docs (#138) 5 tahun lalu
go.mod c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 4 tahun lalu
go.sum c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0 4 tahun lalu
package.json c311648546 chore(git): Made this repo commitizen frendly 9 tahun lalu

README.md

tunasync

Build Status Coverage Status Commitizen friendly GPLv3

Get Started

Download

Pre-built binary for Linux x86_64 and ARM64 is available at Github releases.

Design

# Architecture

- Manager: Central instance for status and job management
- Worker: Runs mirror jobs

+------------+ +---+                  +---+
| Client API | |   |    Job Status    |   |    +----------+     +----------+ 
+------------+ |   +----------------->|   |--->|  mirror  +---->|  mirror  | 
+------------+ |   |                  | w |    |  config  |     | provider | 
| Worker API | | H |                  | o |    +----------+     +----+-----+ 
+------------+ | T |   Job Control    | r |                          |       
+------------+ | T +----------------->| k |       +------------+     |       
| Job/Status | | P |   Start/Stop/... | e |       | mirror job |<----+       
| Management | | S |                  | r |       +------^-----+             
+------------+ |   |   Update Status  |   |    +---------+---------+         
+------------+ |   <------------------+   |    |     Scheduler     |
|   BoltDB   | |   |                  |   |    +-------------------+
+------------+ +---+                  +---+


# Job Run Process


PreSyncing                           Syncing                               Success
+-----------+     +----------+    +-----------+    +-------------+     +--------------+
|  pre-job  +--+->| pre-exec +--->|  job run  +--->|  post-exec  +-+-->| post-success |
+-----------+  ^  +----------+    +-----------+    +-------------+ |   +--------------+
               |                                                   |
               |                +-----------------+                | Failed
               +----------------+    post-fail    |<---------------+
                                +-----------------+

Building

Go version: 1.13

> make all

Binaries in the build-linux-amd64/.