mirror/merlin
Andrew Wang 2bc214a638 minor fix 2022-06-28 03:48:10 +00:00
..
arthur Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
cmd/arthur Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
config Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
logger Bump version, add verbosity and dry run options 2022-06-23 02:43:42 +00:00
sync Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
test fix gitignore 2021-09-09 00:31:28 -04:00
.gitignore write merlin.go 2021-09-17 00:31:49 -04:00
Handoff.md Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
README.md Bump version, add verbosity and dry run options 2022-06-23 02:43:42 +00:00
go.mod Bump version, add verbosity and dry run options 2022-06-23 02:43:42 +00:00
go.sum Bump version, add verbosity and dry run options 2022-06-23 02:43:42 +00:00
merlin-config-all.ini add trace for debian and archlinux 2022-06-04 18:45:10 -04:00
merlin-config.ini minor fix 2022-06-28 03:48:10 +00:00
merlin-go.service Move more repos to merlin-go 2022-06-28 03:36:51 +00:00
merlin.go Move more repos to merlin-go 2022-06-28 03:36:51 +00:00

README.md

Merlin

Build Status

This folder contains the code for merlin (which does the actual syncing) and arthur (which sends commands to merlin).

Check out the the mirror env for a testing environment

Usage

go build merlin.go

Then configure merlin-config.ini and run using ./merlin

Nice Features To Add

  • detect if an rsync process is stuck (watch the stdout/stderr of the rsync processes)
  • get the config or the rsync commond that a repo will sync with using a cli tool

Completed

  • add bwlimit option for each rsync process
  • write process manager
  • save state (last attempted time, last attempted status) for each repo, and restore state on startup (e.g. use JSON/INI file for each repo)
  • calculate difference between the scheduled time of a job and the time at which it actually ran; log this
  • add all repos to merlin-config.ini (*)
  • handle termination signals in merlin (SIGINT, SIGTERM); close stopChan for this
  • listen on Unix socket in merlin
  • implement arthur.go (commands: sync and status)
  • allow dynamic reloading in merlin
  • use separate log file for each child process (currently sharing stdout/stderr with parent)
  • implement zfssync in merlin (just invoke the existing Python script)