pypi.v2ex.com 在试验一个新的 CDN

2013-07-10 10:10:38 +08:00
 Livid
如果你最近在国内通过 pypi 安装软件包的速度太慢,那么可以试试切换到 pypi.v2ex.com 的新 CDN,在你的 ~/.pip/ 创建一个 pip.conf 文件,然后填入:

[global]
index-url = http://pypi.v2ex.com/simple

然后你的所有的 pypi 流量就会经过这个新的 CDN。

然后你可以试试 ping pypi.v2ex.com 的延迟。
11912 次点击
所在节点    Python
38 条回复
msg7086
2013-07-10 10:14:40 +08:00
来自 69.28.49.228 的回复: 字节=32 时间=36ms TTL=51
ushuz
2013-07-10 10:21:53 +08:00
正在 Ping 4b770e2cfb.a.uberlion.com [180.96.70.45] 具有 32 字节的数据:
来自 180.96.70.45 的回复: 字节=32 时间=53ms TTL=53
llbgurs
2013-07-10 10:24:50 +08:00
PING 4b770e2cfb.a.uberlion.com (180.96.70.45) 56(84) bytes of data.
64 bytes from 180.96.70.45: icmp_req=1 ttl=54 time=43.0 ms
64 bytes from 180.96.70.45: icmp_req=2 ttl=54 time=65.9 ms
64 bytes from 180.96.70.45: icmp_req=3 ttl=54 time=98.1 ms
64 bytes from 180.96.70.45: icmp_req=4 ttl=54 time=43.5 ms
64 bytes from 180.96.70.45: icmp_req=5 ttl=54 time=50.2 ms
RelativeLayout
2013-07-10 10:26:06 +08:00
macbb:~ take$ ping pypi.v2ex.com
PING 4b770e2cfb.a.uberlion.com (180.210.229.138): 56 data bytes
64 bytes from 180.210.229.138: icmp_seq=0 ttl=52 time=104.902 ms
64 bytes from 180.210.229.138: icmp_seq=1 ttl=52 time=106.199 ms
64 bytes from 180.210.229.138: icmp_seq=2 ttl=52 time=104.262 ms
64 bytes from 180.210.229.138: icmp_seq=3 ttl=52 time=106.051 ms
64 bytes from 180.210.229.138: icmp_seq=4 ttl=52 time=108.152 ms
64 bytes from 180.210.229.138: icmp_seq=5 ttl=52 time=119.224 ms
64 bytes from 180.210.229.138: icmp_seq=6 ttl=52 time=109.158 ms
64 bytes from 180.210.229.138: icmp_seq=7 ttl=52 time=108.395 ms
64 bytes from 180.210.229.138: icmp_seq=8 ttl=52 time=103.822 ms
64 bytes from 180.210.229.138: icmp_seq=9 ttl=52 time=107.777 ms
64 bytes from 180.210.229.138: icmp_seq=10 ttl=52 time=112.526 ms
64 bytes from 180.210.229.138: icmp_seq=11 ttl=52 time=406.827 ms
64 bytes from 180.210.229.138: icmp_seq=12 ttl=52 time=108.443 ms
64 bytes from 180.210.229.138: icmp_seq=13 ttl=52 time=106.891 ms
64 bytes from 180.210.229.138: icmp_seq=14 ttl=52 time=108.910 ms
64 bytes from 180.210.229.138: icmp_seq=15 ttl=52 time=108.659 ms
64 bytes from 180.210.229.138: icmp_seq=16 ttl=52 time=116.049 ms
64 bytes from 180.210.229.138: icmp_seq=17 ttl=52 time=107.904 ms
64 bytes from 180.210.229.138: icmp_seq=18 ttl=52 time=116.605 ms
^Z
[3]+ Stopped ping pypi.v2ex.com
dndx
2013-07-10 10:36:50 +08:00
貌似是这个: http://www.c3edge.com/

$ ping pypi.v2ex.com
PING 4b770e2cfb.a.uberlion.com (180.96.70.45): 56 data bytes
64 bytes from 180.96.70.45: icmp_seq=0 ttl=55 time=46.536 ms
Request timeout for icmp_seq 1
64 bytes from 180.96.70.45: icmp_seq=2 ttl=55 time=40.614 ms
64 bytes from 180.96.70.45: icmp_seq=3 ttl=55 time=41.312 ms
^C
--- 4b770e2cfb.a.uberlion.com ping statistics ---
5 packets transmitted, 3 packets received, 40.0% packet loss
round-trip min/avg/max/stddev = 40.614/42.821/46.536/2.643 ms
66beta
2013-07-10 10:41:16 +08:00
最近都用的hk.v2ex.com

正在 Ping 4b770e2cfb.a.uberlion.com [69.28.49.228]
来自 69.28.49.228 的回复: 字节=32 时间=300ms TTL=47
来自 69.28.49.228 的回复: 字节=32 时间=299ms TTL=47
来自 69.28.49.228 的回复: 字节=32 时间=299ms TTL=47
来自 69.28.49.228 的回复: 字节=32 时间=300ms TTL=47
dndx
2013-07-10 11:00:24 +08:00
@Livid c3edge.com 的 SSL 证书链不全,没有中间证书,在 Chrome 上打开直接一片大红。

Actrace
2013-07-10 11:00:25 +08:00
为啊不用google的pagespeed?
ps.forbk.com
老大ping试试?
oldcai
2013-07-10 11:08:26 +08:00
ping pypi.python.org
PING fallback.global-ssl.fastly.net (103.245.222.184) 56(84) bytes of data.
64 bytes from 103.245.222.184: icmp_req=2 ttl=51 time=1009 ms
64 bytes from 103.245.222.184: icmp_req=4 ttl=51 time=622 ms
64 bytes from 103.245.222.184: icmp_req=5 ttl=51 time=528 ms
64 bytes from 103.245.222.184: icmp_req=6 ttl=51 time=631 ms
64 bytes from 103.245.222.184: icmp_req=7 ttl=51 time=693 ms
64 bytes from 103.245.222.184: icmp_req=8 ttl=51 time=1010 ms
64 bytes from 103.245.222.184: icmp_req=11 ttl=51 time=685 ms
64 bytes from 103.245.222.184: icmp_req=12 ttl=51 time=700 ms
64 bytes from 103.245.222.184: icmp_req=16 ttl=51 time=647 ms
64 bytes from 103.245.222.184: icmp_req=19 ttl=51 time=630 ms
64 bytes from 103.245.222.184: icmp_req=21 ttl=51 time=701 ms
64 bytes from 103.245.222.184: icmp_req=24 ttl=51 time=953 ms
64 bytes from 103.245.222.184: icmp_req=26 ttl=51 time=1073 ms
64 bytes from 103.245.222.184: icmp_req=27 ttl=51 time=477 ms
64 bytes from 103.245.222.184: icmp_req=29 ttl=51 time=1010 ms
64 bytes from 103.245.222.184: icmp_req=30 ttl=51 time=550 ms
Muninn
2013-07-10 11:23:46 +08:00
我想请教一下 @Livid
我最近想搞一个离线的pypi放到公司内网用
结果用pep381client 同步不下来
它也不报错 也显示在同步 就是文件夹里没东西

你的镜像是用哪个工具做同步的呢?我参考一下.
gamexg
2013-07-10 12:43:38 +08:00
>ping pypi.v2ex.com

正在 Ping 4b770e2cfb.a.uberlion.com [180.210.229.137] 具有 32 字节的数据:
来自 180.210.229.137 的回复: 字节=32 时间=69ms TTL=51
来自 180.210.229.137 的回复: 字节=32 时间=72ms TTL=51
来自 180.210.229.137 的回复: 字节=32 时间=70ms TTL=51
来自 180.210.229.137 的回复: 字节=32 时间=68ms TTL=51

180.210.229.137 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 68ms,最长 = 72ms,平均 = 69ms
loser
2013-07-10 13:42:47 +08:00
Pinging 4b770e2cfb.a.uberlion.com [180.96.70.45] with 32 bytes of data:
Reply from 180.96.70.45: bytes=32 time=39ms TTL=55
Reply from 180.96.70.45: bytes=32 time=39ms TTL=55
Reply from 180.96.70.45: bytes=32 time=37ms TTL=55
Reply from 180.96.70.45: bytes=32 time=36ms TTL=55
wwqgtxx
2013-07-10 14:03:19 +08:00
C:\Users\Administrator>ping pypi.v2ex.com

正在 Ping 4b770e2cfb.a.uberlion.com [180.210.229.136] 具有 32 字节的数据:
来自 180.210.229.136 的回复: 字节=32 时间=149ms TTL=46
来自 180.210.229.136 的回复: 字节=32 时间=149ms TTL=46
来自 180.210.229.136 的回复: 字节=32 时间=149ms TTL=46
来自 180.210.229.136 的回复: 字节=32 时间=149ms TTL=46

180.210.229.136 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 149ms,最长 = 149ms,平均 = 149ms
Livid
2013-07-10 14:06:16 +08:00
@Muninn 我的做法就是直接做 pypi 源站的反向代理。
freefcw
2013-07-10 14:06:34 +08:00
我解析到了,180.96.70.45,江苏南京电信,武汉电信过去17s,速度还不错,就是丢包率有点高,线路不是很稳定
freefcw
2013-07-10 14:08:45 +08:00
错了..最好是17ms,一般在20ms左右,公司的网络有点渣,等回家用武汉联通试试
wwqgtxx
2013-07-10 14:12:30 +08:00
@Livid 和ORCA有神马区别?
Muninn
2013-07-10 14:58:30 +08:00
好吧 原来是代理 我再试试pypimirror那个工具 貌似没有文档需要研究
Muninn
2013-07-10 14:59:58 +08:00
顺便提供延迟 北京联通3G

/home/muninn> ping pypi.v2ex.com
PING 4b770e2cfb.a.uberlion.com (180.210.229.135) 56(84) bytes of data.
64 bytes from 4b770e2cfb.a.uberlion.com (180.210.229.135): icmp_seq=1 ttl=51 time=109 ms
64 bytes from 4b770e2cfb.a.uberlion.com (180.210.229.135): icmp_seq=2 ttl=51 time=138 ms
64 bytes from 4b770e2cfb.a.uberlion.com (180.210.229.135): icmp_seq=3 ttl=51 time=97.4 ms
64 bytes from 4b770e2cfb.a.uberlion.com (180.210.229.135): icmp_seq=4 ttl=51 time=104 ms
64 bytes from 4b770e2cfb.a.uberlion.com (180.210.229.135): icmp_seq=5 ttl=51 time=103 ms
banxi1988
2013-07-10 15:04:08 +08:00
64 bytes from 180.210.229.138: icmp_req=830 ttl=50 time=126 ms
64 bytes from 180.210.229.138: icmp_req=831 ttl=50 time=118 ms
64 bytes from 180.210.229.138: icmp_req=832 ttl=50 time=112 ms
64 bytes from 180.210.229.138: icmp_req=833 ttl=50 time=127 ms
64 bytes from 180.210.229.138: icmp_req=834 ttl=50 time=146 ms
64 bytes from 180.210.229.138: icmp_req=835 ttl=50 time=207 ms
64 bytes from 180.210.229.138: icmp_req=836 ttl=50 time=121 ms
64 bytes from 180.210.229.138: icmp_req=837 ttl=50 time=125 ms
64 bytes from 180.210.229.138: icmp_req=838 ttl=50 time=125 ms
64 bytes from 180.210.229.138: icmp_req=839 ttl=50 time=117 ms
64 bytes from 180.210.229.138: icmp_req=840 ttl=50 time=143 ms
64 bytes from 180.210.229.138: icmp_req=841 ttl=50 time=115 ms
64 bytes from 180.210.229.138: icmp_req=842 ttl=50 time=114 ms
64 bytes from 180.210.229.138: icmp_req=843 ttl=50 time=110 ms
64 bytes from 180.210.229.138: icmp_req=844 ttl=50 time=114 ms
64 bytes from 180.210.229.138: icmp_req=845 ttl=50 time=134 ms
64 bytes from 180.210.229.138: icmp_req=846 ttl=50 time=94.5 ms
64 bytes from 180.210.229.138: icmp_req=847 ttl=50 time=103 ms
64 bytes from 180.210.229.138: icmp_req=848 ttl=50 time=95.7 ms
64 bytes from 180.210.229.138: icmp_req=849 ttl=50 time=267 ms
64 bytes from 180.210.229.138: icmp_req=850 ttl=50 time=145 ms
64 bytes from 180.210.229.138: icmp_req=851 ttl=50 time=114 ms
64 bytes from 180.210.229.138: icmp_req=852 ttl=50 time=100 ms
64 bytes from 180.210.229.138: icmp_req=853 ttl=50 time=101 ms
64 bytes from 180.210.229.138: icmp_req=854 ttl=50 time=147 ms
64 bytes from 180.210.229.138: icmp_req=855 ttl=50 time=103 ms
64 bytes from 180.210.229.138: icmp_req=856 ttl=50 time=87.9 ms
64 bytes from 180.210.229.138: icmp_req=857 ttl=50 time=94.9 ms
64 bytes from 180.210.229.138: icmp_req=858 ttl=50 time=96.4 ms
64 bytes from 180.210.229.138: icmp_req=859 ttl=50 time=103 ms
64 bytes from 180.210.229.138: icmp_req=860 ttl=50 time=110 ms
64 bytes from 180.210.229.138: icmp_req=861 ttl=50 time=101 ms
64 bytes from 180.210.229.138: icmp_req=862 ttl=50 time=167 ms
64 bytes from 180.210.229.138: icmp_req=863 ttl=50 time=110 ms
64 bytes from 180.210.229.138: icmp_req=864 ttl=50 time=98.3 ms
64 bytes from 180.210.229.138: icmp_req=865 ttl=50 time=128 ms
64 bytes from 180.210.229.138: icmp_req=866 ttl=50 time=142 ms
64 bytes from 180.210.229.138: icmp_req=867 ttl=50 time=94.9 ms
64 bytes from 180.210.229.138: icmp_req=868 ttl=50 time=102 ms
64 bytes from 180.210.229.138: icmp_req=869 ttl=50 time=113 ms
64 bytes from 180.210.229.138: icmp_req=870 ttl=50 time=104 ms
64 bytes from 180.210.229.138: icmp_req=871 ttl=50 time=99.9 ms
64 bytes from 180.210.229.138: icmp_req=872 ttl=50 time=97.6 ms
64 bytes from 180.210.229.138: icmp_req=873 ttl=50 time=109 ms
64 bytes from 180.210.229.138: icmp_req=874 ttl=50 time=132 ms
64 bytes from 180.210.229.138: icmp_req=875 ttl=50 time=131 ms
64 bytes from 180.210.229.138: icmp_req=876 ttl=50 time=129 ms
64 bytes from 180.210.229.138: icmp_req=877 ttl=50 time=144 ms
64 bytes from 180.210.229.138: icmp_req=878 ttl=50 time=92.4 ms
64 bytes from 180.210.229.138: icmp_req=879 ttl=50 time=101 ms
64 bytes from 180.210.229.138: icmp_req=880 ttl=50 time=100 ms
64 bytes from 180.210.229.138: icmp_req=881 ttl=50 time=103 ms
64 bytes from 180.210.229.138: icmp_req=882 ttl=50 time=112 ms
64 bytes from 180.210.229.138: icmp_req=883 ttl=50 time=110 ms
^C64 bytes from 180.210.229.138: icmp_req=884 ttl=50 time=107 ms

--- 4b770e2cfb.a.uberlion.com ping statistics ---
884 packets transmitted, 872 received, 1% packet loss, time 7623619ms
rtt min/avg/max/mdev = 60.070/118.490/322.642/27.653 ms

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/75316

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX