「DeveloperWiki:新しいミラー」の版間の差分
(同期) |
|||
| (3人の利用者による、間の12版が非表示) | |||
| 1行目: | 1行目: | ||
[[Category:DeveloperWiki]] |
[[Category:DeveloperWiki]] |
||
| + | [[en:DeveloperWiki:NewMirrors]] |
||
| − | [[Category:Arch development]] |
||
| − | === |
+ | === 新しいミラーの追加 === |
| + | このテキストは Arch のパッケージのための新しいミラーを追加する方法の概要を説明しています。 |
||
| − | 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 |
||
| + | ** これはあなたが ISP に支払っていても適用されます |
||
| − | ** This still applies although you pay your ISP |
||
| + | ** 完全なミラーは 50GiB 以上のサイズがあります |
||
| − | ** 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 |
||
| − | * |
+ | * 個人的なミラーをセットアップする前に、[https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Network_shared_pacman_cache ここ] に書かれている代わりの方法を確認するようにしてください |
| + | == 2つのティアを使用したミラーリング方式 == |
||
| − | ==2-tier mirroring scheme== |
||
| + | 高い負荷と帯域の制限が原因で、Arch Linux は2つのティアを使用したミラーリング方式を使用しています。 |
||
| − | Due to the high load and bandwidth limits Arch Linux uses 2-tier mirroring scheme. |
||
| + | archlinux.org と1時間ごとに直接同期するティア1ミラーがいくつかあります。 |
||
| − | There are few tier 1 mirrors that sync directly from archlinux.org every hour. |
||
| + | 他の全てのミラーはティア1ミラーの中の1つと同期する必要があります。archlinux.org と同期することは許可されていません。 |
||
| − | All other mirrors should sync from one of tier 1 mirrors. Syncing from archlinux.org is not allowed. |
||
| + | == ミラー管理者向け == |
||
| − | == For the mirror administrator == |
||
| − | ==== Tier 2 requirements ==== |
||
| − | * 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 [https://mailman.archlinux.org/mailman/listinfo/arch-mirrors-announce arch-mirrors-announce] list. You do not need to subscribe to be able to post. |
||
| − | * http support |
||
| − | ==== |
+ | ==== ティア2必要要件 ==== |
| − | * 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.) |
||
| + | * 60GiB 以上のディスクスペース |
||
| − | 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. |
||
| + | * ティア1ミラーと同期 (https://archlinux.org/mirrors/tier/1/ を参照) |
||
| + | * アップストリームのミラーの全てのコンテンツを同期する (つまり、いくつかのリポジトリだけを同期するようなことはしない) |
||
| + | * 最低1時間以上の間隔を空けて、1日1回以上は同期する |
||
| + | * ランダムな分に同期して、リクエストが他のミラーと間隔を空けるようにする |
||
| + | * 次の [[rsync]] オプションを使う: {{ic|-rlptH --safe-links --delete-delay --delay-updates}} |
||
| + | * ミラーのユーザーに停止時間の通知を送りたい場合は、[https://mailman.archlinux.org/mailman/listinfo/arch-mirrors-announce arch-mirrors-announce] リストを使ってください。投稿するためにリストを購読する必要はありません。 |
||
| + | * http または https のサポート |
||
| − | === |
+ | ==== ティア1必要要件 ==== |
| − | {{Note|We are not accepting new ftp mirrors.}} |
||
| + | * ティア2の必要要件を満たす |
||
| − | Go to [https://bugs.archlinux.org/newtask/proj1 https://bugs.archlinux.org] and create a feature-request (category: mirrors) containing the following information: |
||
| + | * 100Mbit/s 以上の帯域 |
||
| − | * Mirror domain name |
||
| + | * [[rsync]] サポート |
||
| − | * Geographical location of the mirror (country) |
||
| + | * 実績のある信頼性 (しばらくの間十分な稼働時間のティア2ミラーである、out-of-sync 通知に反応する等) |
||
| − | * 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 [https://www.archlinux.org/mirrors/tier/1/ here] |
||
| + | rsync を直接使うことも、[https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/syncrepo/files/syncrepo-template.sh このスクリプト] を出発点にすることもできます。スクリプトは変更がないときに負荷と帯域を最小化 (2018-03-01 現在において毎回の rsync の 実行時に約 3MiB のメタデータ) しようとしていることに注意してください。頻繁に同期をしない場合や、アップストリームのミラーが {{ic|lastupdate}} ファイルを提供しない場合は、自由にこのチェックを削除してください。 |
||
| − | 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 === |
||
| + | {{Note|新しい ftp ミラーは受け付けていません。}} |
||
| − | 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. |
||
| + | [https://bugs.archlinux.org/newtask/proj1 https://bugs.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]. |
||
| + | * ミラーのドメイン名 |
||
| + | * ミラーの地理的位置 (国) |
||
| + | * サポートしているアクセス方法の URL (http(s)・[[rsync]]) (ftp 以外) |
||
| + | * ミラーの有効な帯域 |
||
| + | * 管理者の連絡メールアドレス (任意、以下を参照) |
||
| + | * 管理者の代替連絡メールアドレス (任意) |
||
| + | * (ティア1ミラー) ティア0 (rsync.archlinux.org) との同期が許可されるための rsync の IP |
||
| + | * (ティア2ミラー) 同期元のティア1ミラーの名前。有効なティア1ミラーは [https://www.archlinux.org/mirrors/tier/1/ ここ] で見つけることができます。 |
||
| + | 連絡メールアドレスは、ミラーに関して疑問があるときや問題があるときに、Arch Linux のスタッフによりミラーの管理者に連絡するときに使われます。連絡メールアドレスが提供されていない場合、ミラーは一覧から、特に問題が発生したとき、事前の管理者への連絡なしにいつでも削除される可能性があります。 |
||
| − | == The Arch Linux side == |
||
| + | === 連絡先とメーリングリスト === |
||
| − | * 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 |
||
| + | 自由に [https://mailman.archlinux.org/mailman/listinfo/arch-mirrors arch-mirrors メーリングリスト] に参加してください。ミラーに関する一般的な議論に使うことができます。ユーザーにミラーの停止時間について知らせたい場合は、[https://mailman.archlinux.org/mailman/listinfo/arch-mirrors-announce arch-mirrors-announce] メーリングリストを使ってください。投稿するためにリストを購読する必要はありません。 |
||
| − | == Mirror size == |
||
| + | Arch Linux スタッフに質問したい場合、arch-mirrors リストを使うか、トラッカーにバグレポートを開くか、または [mailto:mirrors@archlinux.org mirrors@archlinux.org] にメールを送ることができます。 |
||
| − | To give you an impression how much space will be needed for a mirror here are some numbers (as of 2018-03-01): |
||
| + | == Arch Linux 側 == |
||
| − | Mandatory: |
||
| − | * pool (all packages) - 42GB |
||
| − | * repositories (core, community, extra, testing, gnome-unstable, kde-unstable, multilib) - total ~100MB |
||
| + | * Django 管理サイトにミラーを追加する |
||
| − | Optional: |
||
| + | * {{ic|gen_rsyncd.conf.pl}} スクリプトを使って rsync のホワイトリストを再生成する - ティア1ミラー、または前にティアを解除されたミラーへのアクセスを無効化するときのみ (毎時の cronjob によっても実行されます) |
||
| − | * iso - 7GB (encouraged) |
||
| + | * {{Pkg|pacman-mirrorlist}} パッケージを再生成する |
||
| − | * 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. |
||
| + | ミラーに必要なスペースの大まかな数値を以下に示します (2023-05-23 現在) |
||
| − | 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. |
||
| + | |||
| + | 必須: |
||
| + | * pool (全てのパッケージ) - 80GiB |
||
| + | * リポジトリ (core, core-testing, extra, extra-testing, gnome-unstable, kde-unstable, multilib, multilib-testing) - 合計 ~200MiB |
||
| + | |||
| + | 任意: |
||
| + | * iso - 5GiB (推奨) |
||
| + | * アーカイブ - 15GiB (永久に凍結) |
||
| + | * その他 - 18GiB |
||
| + | * ソース - 114GiB |
||
| + | * イメージ - 6 GiB |
||
| + | * pool/*-debug - 60 GiB (将来的には増加する可能性があります) |
||
| + | |||
| + | ほとんどのミラーはアーカイブ、その他、ソースディレクトリを同期しないで、それ以外の全て (一時的なリポジトリを含む) を同期します。そのため、通常 Arch Linux ミラーには 70GiB 程度確保しておく必要があります。 |
||
| + | |||
| + | しかし、必要なスペースは大きなリビルドが発生したとき、つまりたくさんのパッケージの異なるバージョンが2箇所に存在するときに一時的に増加することに注意してください。上記で述べた値よりも 30GiB から 50GiB は余裕を持って計画するようにしてください。 |
||
2025年1月10日 (金) 18:58時点における最新版
目次
新しいミラーの追加
このテキストは Arch のパッケージのための新しいミラーを追加する方法の概要を説明しています。
個人的なミラーに関するノート
- ミラーのための帯域は無料ではありません。彼らはあなたに提供する全てのデータについて支払う必要があります
- これはあなたが ISP に支払っていても適用されます
- 完全なミラーは 50GiB 以上のサイズがあります
- あなたがほとんど使ったことがないとしても、誰かにダウンロードされるパッケージはたくさんあります
- ミラー管理者は、あなたが必要とするパッケージのみをダウンロードすることを強く推奨しています
- 個人的なミラーをセットアップする前に、ここ に書かれている代わりの方法を確認するようにしてください
2つのティアを使用したミラーリング方式
高い負荷と帯域の制限が原因で、Arch Linux は2つのティアを使用したミラーリング方式を使用しています。
archlinux.org と1時間ごとに直接同期するティア1ミラーがいくつかあります。
他の全てのミラーはティア1ミラーの中の1つと同期する必要があります。archlinux.org と同期することは許可されていません。
ミラー管理者向け
ティア2必要要件
- 60GiB 以上のディスクスペース
- ティア1ミラーと同期 (https://archlinux.org/mirrors/tier/1/ を参照)
- アップストリームのミラーの全てのコンテンツを同期する (つまり、いくつかのリポジトリだけを同期するようなことはしない)
- 最低1時間以上の間隔を空けて、1日1回以上は同期する
- ランダムな分に同期して、リクエストが他のミラーと間隔を空けるようにする
- 次の rsync オプションを使う:
-rlptH --safe-links --delete-delay --delay-updates - ミラーのユーザーに停止時間の通知を送りたい場合は、arch-mirrors-announce リストを使ってください。投稿するためにリストを購読する必要はありません。
- http または https のサポート
ティア1必要要件
- ティア2の必要要件を満たす
- 100Mbit/s 以上の帯域
- rsync サポート
- 実績のある信頼性 (しばらくの間十分な稼働時間のティア2ミラーである、out-of-sync 通知に反応する等)
rsync を直接使うことも、このスクリプト を出発点にすることもできます。スクリプトは変更がないときに負荷と帯域を最小化 (2018-03-01 現在において毎回の rsync の 実行時に約 3MiB のメタデータ) しようとしていることに注意してください。頻繁に同期をしない場合や、アップストリームのミラーが lastupdate ファイルを提供しない場合は、自由にこのチェックを削除してください。
機能リクエストを作成する
https://bugs.archlinux.org に行って以下の情報を含む機能リクエスト (カテゴリ:ミラー) を作成してください。
- ミラーのドメイン名
- ミラーの地理的位置 (国)
- サポートしているアクセス方法の URL (http(s)・rsync) (ftp 以外)
- ミラーの有効な帯域
- 管理者の連絡メールアドレス (任意、以下を参照)
- 管理者の代替連絡メールアドレス (任意)
- (ティア1ミラー) ティア0 (rsync.archlinux.org) との同期が許可されるための rsync の IP
- (ティア2ミラー) 同期元のティア1ミラーの名前。有効なティア1ミラーは ここ で見つけることができます。
連絡メールアドレスは、ミラーに関して疑問があるときや問題があるときに、Arch Linux のスタッフによりミラーの管理者に連絡するときに使われます。連絡メールアドレスが提供されていない場合、ミラーは一覧から、特に問題が発生したとき、事前の管理者への連絡なしにいつでも削除される可能性があります。
連絡先とメーリングリスト
自由に arch-mirrors メーリングリスト に参加してください。ミラーに関する一般的な議論に使うことができます。ユーザーにミラーの停止時間について知らせたい場合は、arch-mirrors-announce メーリングリストを使ってください。投稿するためにリストを購読する必要はありません。
Arch Linux スタッフに質問したい場合、arch-mirrors リストを使うか、トラッカーにバグレポートを開くか、または mirrors@archlinux.org にメールを送ることができます。
Arch Linux 側
- Django 管理サイトにミラーを追加する
gen_rsyncd.conf.plスクリプトを使って rsync のホワイトリストを再生成する - ティア1ミラー、または前にティアを解除されたミラーへのアクセスを無効化するときのみ (毎時の cronjob によっても実行されます)- pacman-mirrorlist パッケージを再生成する
ミラーサイズ
ミラーに必要なスペースの大まかな数値を以下に示します (2023-05-23 現在)
必須:
- pool (全てのパッケージ) - 80GiB
- リポジトリ (core, core-testing, extra, extra-testing, gnome-unstable, kde-unstable, multilib, multilib-testing) - 合計 ~200MiB
任意:
- iso - 5GiB (推奨)
- アーカイブ - 15GiB (永久に凍結)
- その他 - 18GiB
- ソース - 114GiB
- イメージ - 6 GiB
- pool/*-debug - 60 GiB (将来的には増加する可能性があります)
ほとんどのミラーはアーカイブ、その他、ソースディレクトリを同期しないで、それ以外の全て (一時的なリポジトリを含む) を同期します。そのため、通常 Arch Linux ミラーには 70GiB 程度確保しておく必要があります。
しかし、必要なスペースは大きなリビルドが発生したとき、つまりたくさんのパッケージの異なるバージョンが2箇所に存在するときに一時的に増加することに注意してください。上記で述べた値よりも 30GiB から 50GiB は余裕を持って計画するようにしてください。