-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirrors/rsync: Add systemd service instances
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,23 @@ | |
|
||
## rsyncd | ||
|
||
经过 2024 年夏季的 [ZFS rebuild](https://lug.ustc.edu.cn/planet/2024/12/ustc-mirrors-zfs-rebuild/) 之后,我们观测到 ZFS ARC cache 能够很好地缓存仓库文件的元数据,因此我们在 2025 年 1 月抛弃了 rsync-huai,改用原生的 rsync。 | ||
经过 2024 年夏季的 [ZFS rebuild](https://lug.ustc.edu.cn/planet/2024/12/ustc-mirrors-zfs-rebuild/) 之后,我们观测到 ZFS ARC cache 能够很好地缓存仓库文件的元数据,因此我们在 2025 年 1 月抛弃了 rsync-huai,改回原生的 rsync。 | ||
这样就不需要自己维护一个 fork,还需要时不时跟进最新的 security patch 了。 | ||
|
||
我们的 systemd service 文件: | ||
由于面向用户的服务程序实际上是 rsync-proxy(见下),因此我们在各个机器上实际启用的 instance 为: | ||
|
||
```ini title="/etc/systemd/system/[email protected]" | ||
--8<-- "mirrors/[email protected]" | ||
``` | ||
| 服务器 | systemd 服务 | 备注 | | ||
| :------: | :------------: | -------------------- | | ||
| mirrors2 | rsync@cernet | | | ||
| mirrors3 | rsync@cernet | | | ||
| mirrors4 | rsync@cernet | | | ||
| mirrors4 | rsync@mirrors2 | 供 mirrors2 拉取仓库 | | ||
|
||
??? abstract "我们的 systemd service 文件" | ||
|
||
```ini title="/etc/systemd/system/[email protected]" | ||
--8<-- "mirrors/[email protected]" | ||
``` | ||
|
||
??? info "rsync-huai (discontinued)" | ||
|
||
|
@@ -38,4 +48,4 @@ | |
|
||
## rsync-proxy | ||
|
||
详参 <https://github.com/ustclug/rsync-proxy>。为了让服务器能够记录 IP 与访问路径的关系,我们打开了 proxy protocol 特性。 | ||
详参 <https://github.com/ustclug/rsync-proxy>。为了让服务器能够记录 IP 与访问路径的关系,我们为 rsyncd 打开了 proxy protocol 特性。 |