Comments (5)
Woker Id is declared in the name =
field in the [global]
section of the configuration of the worker. When a worker is successfully registered with the manager, it can be shown in tunasynctl workers
. Since normally the size can be reported by a worker automatically, when size is set manually, worker id should be included to act on behalf of that worker.
the field <mirror>
indicates the mirror the size of which will be set.
the field <size>
indicates the size of that mirror. Currently, <size>
is stored purely as a string, so you can use any unit you want.
The correct usage should be:
tunasynctl set-size -w <worker-id> <mirror> <size>
from tunasync.
I have fixed the misleading message in commit 60f92ce
from tunasync.
Successfully, thank you very much
from tunasync.
I want to know how Tuna counts the size of a mirror directory for some very large TB directories when it has a large number of directory levels and files. I currently use du or duc to calculate the directory size, which takes a long time.
from tunasync.
I want to know how Tuna counts the size of a mirror directory for some very large TB directories when it has a large number of directory levels and files. I currently use du or duc to calculate the directory size, which takes a long time.
Normally we do not use du
to calculate the size, since the expense on disk IO is too high. The size of mirrors using rsync
is extracted automatically from the output of rsync
. In terms of other mirrors using custom scripts, some of the scripts we provided in https://github.com/tuna/tunasync-scripts can give a total size of the mirror in the end of output, which can then be matched by the regex defined in the configuration of the worker. For example, the script for the mirror github-releases
is handled by the script https://github.com/tuna/tunasync-scripts/blob/master/github-release.py, the total size is given out at https://github.com/tuna/tunasync-scripts/blob/cae1194534d6cce0ddea031a2bf318b9aa0261a3/github-release.py#L296 , and the capture regex is defined at
tunasync/docs/zh_CN/workers.conf
Line 247 in 60f92ce
from tunasync.
Related Issues (20)
- failed when syncing ubuntu repository HOT 4
- "Generating global index page" too slow when mirroring pypi with tunasync HOT 9
- "Generating global index page" took too long... HOT 22
- 如果不用docker的话很多同步都需要补依赖和脚本什么的 HOT 36
- 使用仓库 debian 示例配置提示 Can't read config file ftpsync-debian.conf! HOT 1
- Loongarch64支持 HOT 3
- 使用代理配置后连接一直403 HOT 6
- 自定义镜像脚本工作异常 HOT 5
- 请问如何手动更新镜像状态 HOT 8
- tunasync tool failed to synchronize HOT 2
- 如何排除特定格式的文件或目录 HOT 4
- tunasync worker 同步指定的文件? HOT 5
- 求帮助,truenas-core系统下如何build? HOT 1
- 同步如何排除指定架构 HOT 1
- Worker panics when reloading config, if the old config contains no mirrors
- Adoptium jdk21的镜像没有同步 HOT 1
- 使用command方式同步,如何正确获取同步到的Size?
- 是否需要更换更快的GoWeb框架 HOT 1
- 如何将job日志合并到worker输出中 HOT 3
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 tunasync.