CAF Mirror Information
CAF public mirrors
There are four main mirror locations:
- Portland, Oregon, USA:
- Hongkong, China:
- Beijing, China:
- Shanghai, China:
CAF uses geo-IP based DNS servers to direct default requests to the nearest server, with Mainland China requests using round-robin to use either one of Beijing, Shanghai or Hongkong, and other APAC locations using the Hongkong server. All other requests will be sent to the main Portland mirror.
Using CDN-backed bundle files
The main development tool, repo, can use git bundle files in order to offload a lot of traffic to a locally-available CDN mirror. CAF provides bundle files, but they are not available for use with project manifests that use the legacyURLs. If you would like to benefit from improved download speeds, please execute the following command to always use the new-style URLs:
This should significantly improve cloning speed for many people accessing CAF from outside of North America or APAC.
Accessing CAF in Mainland China
GeoIP information for Mainland China is not sufficiently accurate to automatically route requests to the nearest China server, so we recommend that clients in Mainland China configure their systems manually to direct repo requests to one of the three servers that works best for them.
To always use the Beijing server, run the following commands:
git config --global url.https://beijing.source.codeaurora.org.insteadOf https://source.codeaurora.org
To always use the Shanghai server, run the following commands:
git config --global url.https://shanghai.source.codeaurora.org.insteadOf https://source.codeaurora.org
To always use the Hongkong server, run the following commands:
git config --global url.https://hongkong.source.codeaurora.org.insteadOf https://source.codeaurora.org
Accessing other CAF projects in mainland China
Some individual projects require additional options:
git config --global --add url.https://source.codeaurora.org/quic/lf.insteadof git://github.com
git config --global --add url.https://source.codeaurora.org/quic/le.insteadof git://git.openembedded.org