26 Commits

Author SHA1 Message Date
zyx
b1f2679fbf [cmd provider] add support of match size in logs 2020-03-20 10:30:44 +08:00
z4yx
02468e21c0 add an option "rsync_override" 2020-03-13 15:12:52 +08:00
z4yx
908f098c72 [mirror config] job fails on pattern match in log 2020-03-09 21:48:06 +08:00
Yuxiang Zhang
22cfdfc9c2
[mirror config] extra rsync options (#107)
* support "rsync_options" array in config

* add test for new options

* fix tests
2020-03-09 20:48:09 +08:00
WANG Ziqin
6b56c4254c feat(btrfs_snapshot_hook): reimplemented Btrfs snapshots
TODO: test coverage
2019-08-02 13:31:33 +08:00
zyx
1aa4ae9cc1 Merge remote-tracking branch 'kinosang/master' into wip-test-pr 2019-04-13 02:07:41 +08:00
bigeagle
a475b044c6 feat(worker): add 'use_ipv4' option for rsync provider 2017-09-08 00:15:48 +08:00
7IN0SAN9
563860d424
fix #63 2017-03-27 13:09:56 +08:00
bigeagle
fd277388d5
fix(worker): fixed multi-manager configuration
the worker must be registerred on the manager

`extra_status_manager` option is replaced by `api_base_list`, which overrides the `api_base` option
2016-12-12 23:17:50 +08:00
bigeagle
7601e5793f
fix(worker): improved cgroup creation 2016-12-10 04:14:39 +08:00
bigeagle
ebd462be36
feat(worker): Implemented docker executor, close #55
if docker is enabled in configure file and `docker_image` is set on mirror config, the command would

be executed via `docker run ...`
2016-12-10 02:44:45 +08:00
bigeagle
a0b8ef08ab feat(worker): implemented extra_status_manager option to enable a worker reporting status to multi 2016-12-06 23:59:15 +08:00
bigeagle
86153c59e3
feat(worker): ZFS support: isolate mirrors in zfs datasets 2016-12-05 00:44:55 +08:00
bigeagle
2b83ea4b45 feat(worker): added global exec_on_success and exec_on_failure options
if `exec_on_success` is set on mirror-level config, it overrides the global option; if on mirror

level, extra hook cmd is needed, use `exec_on_success_extra` option
2016-10-21 01:20:31 +08:00
bigeagle
ebeee6bc34
feat(worker): added username option for rsync providers 2016-06-14 21:37:03 +08:00
bigeagle
5c8d90608c
feature(worker): implemented multi-file configrations. closing #23 2016-05-03 16:52:38 +08:00
bigeagle
51fa12900d
feature(worker): ability to hot reload mirror job configrations, close #18 2016-05-02 17:45:21 +08:00
bigeagle
56459f2ce0
feature(worker): implemented mirror role (master/slave) option 2016-04-30 16:44:39 +08:00
bigeagle
bd423eec4e
feature(worker): added exec_on_success and exec_on_failure option and hooks 2016-04-30 16:44:15 +08:00
bigeagle
f8fd1ae460
style: better logging 2016-04-30 16:43:47 +08:00
bigeagle
924fda6dd8
feature(worker): use cgroup track job process, so that they can be all-killed 2016-04-30 16:43:30 +08:00
bigeagle
f8151e689f
refactor(worker): export worker's LoadConfig 2016-04-30 16:41:51 +08:00
bigeagle
6062aa4b9d
refactor(worker): rename provider.setLogFile to provider.prepareLogFile 2016-04-30 16:40:45 +08:00
bigeagle
8b56fda1e9
feature(worker): added worker http server config 2016-04-30 16:40:27 +08:00
bigeagle
f336fda736
feature(worker): mirrorConfig -> mirrorProvider 2016-04-30 16:39:53 +08:00
bigeagle
d8b45d7231
feature(worker): worker config file 2016-04-30 16:39:47 +08:00