Changes between Version 22 and Version 23 of Mirroring


Ignore:
Timestamp:
Oct 11, 2017, 12:28:02 PM (6 years ago)
Author:
raimue (Rainer Müller)
Comment:

Update mirror sizes and traffic estimate

Legend:

Unmodified
Added
Removed
Modified
  • Mirroring

    v22 v23  
    2424== Requirements
    2525
    26 Running a MacPorts mirror will use a possibly significant amount of bandwidth. Our primary server in California, for example, serves around 250GB of data via http and another 70GB of data via rsync per day. For http traffic, MacPorts chooses the closest mirror automatically, so how much traffic your mirror sees depends on the number of MacPorts users for whom your mirror is the closest. Ensure you have the permission of your network provider to run such a mirror, and that this amount of traffic will not be a problem for you.
     26Running a MacPorts mirror will use a possibly significant amount of bandwidth. One of our servers in California, for example, served around 250GB of data via http and another 70GB of data via rsync per day. For http traffic, MacPorts chooses the closest mirror automatically, so how much traffic your mirror sees depends on the number of MacPorts users for whom your mirror is the closest. Ensure you have the permission of your network provider to run such a mirror, and that this amount of traffic will not be a problem for you.
    2727
    2828You'll need a server with at least 1TB of available disk space on a case-sensitive filesystem. You'll need a web server on port 80 such as Apache httpd or nginx on which you can configure new virtual hosts, and the rsync daemon running on port 873. The server should have a hostname and a static IPv4 address. IPv6 access is welcomed but is not required. The server must respond to pings. The server does not need to be running OS X and does not need to have MacPorts installed.
     
    3232The MacPorts files are distributed in four rsync modules. You should usually mirror all of them.
    3333
    34 * **packages** contains precompiled archives of each MacPorts port for several OS X versions. This is the largest module, around 450GB. Mirroring this module will provide the greatest benefit to MacPorts users near you since it lets them automatically receive these large files more quickly.
    35 * **distfiles** contains the source code tarballs from which the precompiled archives were created. There are some ports that cannot legally be distributed as binaries, so those must build from these source files on the user's computer. This is the second-largest module, around 150GB. **Note:** this module used to be called ''mpdistfiles''. If you are mirroring ''mpdistfiles'', please switch to mirroring ''distfiles''. If your local module is called ''mpdistfiles'', please rename it to ''distfiles'' and let us know so that we can update mirror_sites.tcl.
    36 * **release** contains the latest released version of the MacPorts base source code which users update by running `sudo port selfupdate`, as well as the collection of Portfiles—the text files MacPorts reads that tell it how to install each port—which users update by running `sudo port sync`. Users near you can manually configure MacPorts to user your mirror for faster speed. This small module is around 500MB.
    37 * **trunk** contains the latest development version of the MacPorts base source code. This small module is around 20MB.
     34* **packages** contains precompiled archives of each MacPorts port for several OS X versions. This is the largest module, around 1.5 TB. Mirroring this module will provide the greatest benefit to MacPorts users near you since it lets them automatically receive these large files more quickly.
     35* **distfiles** contains the source code tarballs from which the precompiled archives were created. There are some ports that cannot legally be distributed as binaries, so those must build from these source files on the user's computer. This is the second-largest module, around 250 GB. **Note:** this module used to be called ''mpdistfiles''. If you are mirroring ''mpdistfiles'', please switch to mirroring ''distfiles''. If your local module is called ''mpdistfiles'', please rename it to ''distfiles'' and let us know so that we can update mirror_sites.tcl.
     36* **release** contains the latest released version of the MacPorts base source code which users update by running `sudo port selfupdate`, as well as the collection of Portfiles—the text files MacPorts reads that tell it how to install each port—which users update by running `sudo port sync`. Users near you can manually configure MacPorts to user your mirror for faster speed. This small module has a size of less than 1 GB.
     37* **trunk** contains the latest development version of the MacPorts base source code. This small module is around 120 MB.
    3838
    3939We may in the future offer a single ''macports'' rsync module containing the above four modules as subdirectories, which is the configuration we recommend for mirrors.