From ArchWiki
Revision as of 19:14, 26 July 2010 by Romashka (talk | contribs) (added info about mirror size)
Jump to: navigation, search

Adding a new mirror

This text should outline the procedure for adding a new mirror for Arch packages.

2-tier mirroring scheme

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 every hour.

All other mirrors should sync from one of tier 1 mirrors. Syncing from is not allowed.

For the mirror administrator

Please open a feature request with a request to become an authorized mirror.

Please provide the following:

  • Mirror domain name
  • Geographical location of the mirror
  • Supported access methods (http, ftp, rsync, ...)
  • URLs for the above access methods
  • The name of tier 1 mirror you are syncing from, which should be one of this:
    • (Australia) - rsync://
    • (Germany) - rsync://
    • (Great Britain) - rsync://
    • (USA) - rsync://
    • (USA) - rsync://
    • (Taiwan) - rsync://
    • (Brazil) - rsync://
    • (Brazil) - rsync://
  • An administrative contact email

Please join the arch-mirrors mailing list.

Please ensure the following, to provide consistent mirroring and keep the upstream mirror's load low:

  • Sync all contents of the upstream mirror (i.e. do not sync only some repositories)
  • Use the following rsync options: -rtlvH --delete-after --delay-updates --safe-links --max-delete=1000
  • Do not rsync more rapidly than every hour
  • Sync on a random minute so it is more likely the requests will be spaced out with other mirrors

The Arch Linux side

  • Add the mirror info to the Django admin site
  • Regenerate the rsync whitelist with the script - only for tier 1 mirrors, or when disabling access to a previously untiered mirror
  • Regenerate the pacman-mirrorlist package

Mirror size

To give you an impression how much space will be needed for a mirror here are some numbers:

  • archive - 14GB (permanently frozen)
  • core + extra + community - 20GB as of July 2010
  • testing + community-testing - from few MBs to few GBs
  • temporary repositories (like gnome-unstable, kde-unstable, xorg18 etc.) - up to 1GB
  • iso - 11GB as of July 2010
  • other - 5.3GB as of July 2010
  • sources - 6.8GB as of July 2010

Most mirrors do not sync archive, other and sources directories, but sync everything else (including temporary repositories), so usually you will need about 35GB reserved for Arch Linux mirror.