「DeveloperWiki:新しいミラー」の版間の差分
(セクション見出しの訳出) |
|||
1行目: | 1行目: | ||
[[Category:DeveloperWiki]] |
[[Category:DeveloperWiki]] |
||
− | [[Category:Arch |
+ | [[Category:Arch 開発]] |
+ | [[en:DeveloperWiki:NewMirrors]] |
||
− | === Adding a new mirror === |
||
+ | === 新しいミラーの追加 === |
||
This text should outline the procedure for adding a new mirror for Arch packages. |
This text should outline the procedure for adding a new mirror for Arch packages. |
||
+ | === 個人的なミラーに関するノート === |
||
− | === Notes about private mirrors === |
||
* Bandwidth is not free for the mirrors. They must pay for all the data they serve you |
* Bandwidth is not free for the mirrors. They must pay for all the data they serve you |
||
14行目: | 15行目: | ||
* Really please look at the alternatives listed [https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Network_shared_pacman_cache here] before setting up a private mirror |
* Really please look at the alternatives listed [https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Network_shared_pacman_cache here] before setting up a private mirror |
||
+ | ==2つのティアを使用したミラーリング方式== |
||
− | ==2-tier mirroring scheme== |
||
Due to the high load and bandwidth limits Arch Linux uses 2-tier mirroring scheme. |
Due to the high load and bandwidth limits Arch Linux uses 2-tier mirroring scheme. |
||
22行目: | 23行目: | ||
All other mirrors should sync from one of tier 1 mirrors. Syncing from archlinux.org is not allowed. |
All other mirrors should sync from one of tier 1 mirrors. Syncing from archlinux.org is not allowed. |
||
+ | == ミラー管理者向け == |
||
− | == For the mirror administrator == |
||
− | ==== |
+ | ==== ティア2必要要件 ==== |
* Disk-space >= 60 GB |
* Disk-space >= 60 GB |
||
* Sync off a tier 1 mirror (see https://archlinux.org/mirrors/tier/1/) |
* Sync off a tier 1 mirror (see https://archlinux.org/mirrors/tier/1/) |
||
33行目: | 34行目: | ||
* http support |
* http support |
||
− | ==== |
+ | ==== ティア1必要要件 ==== |
* Tier 2 requirements |
* Tier 2 requirements |
||
* Bandwidth >= 100Mbit/s |
* Bandwidth >= 100Mbit/s |
||
41行目: | 42行目: | ||
You can use rsync directly or [https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/syncrepo/files/syncrepo-template.sh this script] as a starting point. Please note that the script tries to minimize load and bandwidth used (about 3MiB of metadata for each rsync run as of 2018-03-01) in case there are no changes. Feel free to remove this check if you don't sync very often or your upstream mirror does not provide the lastupdate file. |
You can use rsync directly or [https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/syncrepo/files/syncrepo-template.sh this script] as a starting point. Please note that the script tries to minimize load and bandwidth used (about 3MiB of metadata for each rsync run as of 2018-03-01) in case there are no changes. Feel free to remove this check if you don't sync very often or your upstream mirror does not provide the lastupdate file. |
||
+ | === 機能リクエストを作成する === |
||
− | === Create a feature-request === |
||
{{Note|We are not accepting new ftp mirrors.}} |
{{Note|We are not accepting new ftp mirrors.}} |
||
56行目: | 57行目: | ||
The contact email(s) will be used by Arch Linux staff to contact the mirror administrator if they have questions regarding the mirror or if there are problems with the mirror. If a contact email is not provided, the mirror listing may be removed at any time, especially if problems occur, without prior contact to the admin. |
The contact email(s) will be used by Arch Linux staff to contact the mirror administrator if they have questions regarding the mirror or if there are problems with the mirror. If a contact email is not provided, the mirror listing may be removed at any time, especially if problems occur, without prior contact to the admin. |
||
+ | === 連絡先とメーリングリスト === |
||
− | === Contact info and mailing lists === |
||
Feel free to join the [https://mailman.archlinux.org/mailman/listinfo/arch-mirrors arch-mirrors mailing list] which can be used for general discussion about our mirrors. If you want to inform our users about downtime of your mirror please use the [https://lists.archlinux.org/listinfo/arch-mirrors-announce arch-mirrors-announce] mailing list. You do not need to subscribe to be able to post to arch-mirrors-announce. |
Feel free to join the [https://mailman.archlinux.org/mailman/listinfo/arch-mirrors arch-mirrors mailing list] which can be used for general discussion about our mirrors. If you want to inform our users about downtime of your mirror please use the [https://lists.archlinux.org/listinfo/arch-mirrors-announce arch-mirrors-announce] mailing list. You do not need to subscribe to be able to post to arch-mirrors-announce. |
||
62行目: | 63行目: | ||
If you want to reach the Arch Linux staff for questions, you can either use the arch-mirrors list, you can open a bug report on our tracker or you can send a mail to [mailto:mirrors@archlinux.org mirrors@archlinux.org]. |
If you want to reach the Arch Linux staff for questions, you can either use the arch-mirrors list, you can open a bug report on our tracker or you can send a mail to [mailto:mirrors@archlinux.org mirrors@archlinux.org]. |
||
− | == |
+ | == Arch Linux 側 == |
* Add the mirror info to the Django admin site |
* Add the mirror info to the Django admin site |
||
68行目: | 69行目: | ||
* Regenerate the pacman-mirrorlist package |
* Regenerate the pacman-mirrorlist package |
||
− | == |
+ | == ミラーサイズ == |
To give you an impression how much space will be needed for a mirror here are some numbers (as of 2018-03-01): |
To give you an impression how much space will be needed for a mirror here are some numbers (as of 2018-03-01): |
2020年6月9日 (火) 11:41時点における版
目次
新しいミラーの追加
This text should outline the procedure for adding a new mirror for Arch packages.
個人的なミラーに関するノート
- Bandwidth is not free for the mirrors. They must pay for all the data they serve you
- This still applies although you pay your ISP
- A full mirror is over 50GB in size
- There are many packages that will be downloaded that you will likely never use
- Mirror operators will much prefer you to download only the packages you need
- Really please look at the alternatives listed here before setting up a private mirror
2つのティアを使用したミラーリング方式
Due to the high load and bandwidth limits Arch Linux uses 2-tier mirroring scheme.
There are few tier 1 mirrors that sync directly from archlinux.org every hour.
All other mirrors should sync from one of tier 1 mirrors. Syncing from archlinux.org is not allowed.
ミラー管理者向け
ティア2必要要件
- Disk-space >= 60 GB
- Sync off a tier 1 mirror (see https://archlinux.org/mirrors/tier/1/)
- Sync all contents of the upstream mirror (i.e. do not sync only some repositories)
- Do not sync more often than every hour, but you should sync at least once a day
- Sync on a random minute so it is more likely the requests will be spaced out with other mirrors
- Use the following rsync options: -rtlvH --delete-after --delay-updates --safe-links
- If you ever wish to send downtime notifications to our users, please use the arch-mirrors-announce list. You do not need to subscribe to be able to post.
- http support
ティア1必要要件
- Tier 2 requirements
- Bandwidth >= 100Mbit/s
- rsync support
- Proven reliability (be a tier 2 mirror for a while and have reasonable uptime, response to out-of-sync notifications etc.)
You can use rsync directly or this script as a starting point. Please note that the script tries to minimize load and bandwidth used (about 3MiB of metadata for each rsync run as of 2018-03-01) in case there are no changes. Feel free to remove this check if you don't sync very often or your upstream mirror does not provide the lastupdate file.
機能リクエストを作成する
Go to https://bugs.archlinux.org and create a feature-request (category: mirrors) containing the following information:
- Mirror domain name
- Geographical location of the mirror (country)
- URLs for supported access methods (http(s), rsync) (no ftp)
- Your mirror's available bandwidth
- An administrative contact email (optional, see below)
- An alternative administrative contact email (optional)
- (tier 1 mirrors) Rsync IPs so your server(s) can be allowed to sync off tier 0 (rsync.archlinux.org)
- (tier 2 mirrors) The name of tier 1 mirror you are syncing from. You can find available tier 1 mirrors here
The contact email(s) will be used by Arch Linux staff to contact the mirror administrator if they have questions regarding the mirror or if there are problems with the mirror. If a contact email is not provided, the mirror listing may be removed at any time, especially if problems occur, without prior contact to the admin.
連絡先とメーリングリスト
Feel free to join the arch-mirrors mailing list which can be used for general discussion about our mirrors. If you want to inform our users about downtime of your mirror please use the arch-mirrors-announce mailing list. You do not need to subscribe to be able to post to arch-mirrors-announce.
If you want to reach the Arch Linux staff for questions, you can either use the arch-mirrors list, you can open a bug report on our tracker or you can send a mail to mirrors@archlinux.org.
Arch Linux 側
- Add the mirror info to the Django admin site
- Regenerate the rsync whitelist with the gen_rsyncd.conf.pl script - only for tier 1 mirrors, or when disabling access to a previously untiered mirror (also done by an hourly cronjob)
- Regenerate the pacman-mirrorlist package
ミラーサイズ
To give you an impression how much space will be needed for a mirror here are some numbers (as of 2018-03-01):
Mandatory:
- pool (all packages) - 42GB
- repositories (core, community, extra, testing, gnome-unstable, kde-unstable, multilib) - total ~100MB
Optional:
- iso - 7GB (encouraged)
- archive - 15GB (permanently frozen)
- other - 17GB
- sources - 50GB
Most mirrors do not sync archive, other and sources directories, but sync everything else (including temporary repositories), so usually you will need about 50GB reserved for Arch Linux mirror.
However, note that the required space may temporarily increase when a big rebuild happens and thus many packages exist twice in different versions. Please plan in a buffer of 30GB to 50GB on top of the above mentioned values.