-
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
Milestone
Description
换源链接 和 测速链接 的不同
用于换源的链接 和 用于测速的链接 是不一样的,用户在镜像站找到的是前者。
比如,Ruby China 的
- 换源链接 是:https://gems.ruby-china.com/
- 测速链接 是:https://gems.ruby-china.com/rubygems/gems/nokogiri-1.15.0-java.gem (一个9.9MB的文件)
测速链接需要用户主动去寻找。到现在为止,很多 target
的可用源的测速链接都是空的,都是通过去测镜像站的其他文件来间接测速。
此 issue 希望让用户能够帮助我们寻找确定这样的链接,如 Docker Hub 的测速链接,以供用户对 chsrc
内置镜像站和用户自定义镜像站速度进行对比。
两种测速链接
- 镜像站的测速链接,我们称为 镜像站整体测速链接
- 具体某个源的测速链接,我们称为 专用测速链接
在第一种测速链接里,如果是通用镜像站,则是 模糊测速,如果是专用镜像站,则是 精准测速
在第二种测速链接里,就是 精准测速
我们现在缺乏的就是 精准测速 的信息
可参考 Python 的源信息:
chsrc/src/recipe/lang/Python/common.h
Lines 44 to 64 in 066a377
def_sources_begin() | |
{&UpstreamProvider, "https://pypi.org/simple", FeedByPrelude}, | |
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple", FeedByPrelude}, | |
/* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */ | |
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple", FeedByPrelude}, | |
{&Ali, "https://mirrors.aliyun.com/pypi/simple/", FeedByPrelude}, | |
{&Nju, "https://mirror.nju.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Pku, "https://mirrors.pku.edu.cn/pypi/web/simple",FeedByPrelude}, | |
{&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple",FeedByPrelude}, | |
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple",FeedByPrelude} | |
{&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple",FeedByPrelude}, | |
{&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple",FeedByPrelude} | |
/* 不启用原因:24小时更新一次 */ | |
// {&Netease, "https://mirrors.163.com/.help/pypi.html", NULL} | |
def_sources_end() |
每个 source 的最后一个字段,即是 专用测速链接