Closed glen-84 closed 8 years ago
https://github.com/cnpm/cnpmjs.org/blob/master/config/index.js#L182
you can change the source registry to http://registry.cnpmjs.org , this server is in US
@dead-horse Is there maybe some load balancing doing some magic? I did a traceroute from Europe (Malta) and the traffic seems to be routed to/trough Singapore.
mtr --report-wide registry.cnpmjs.org
Loss% Snt Last Avg Best Wrst StDev
...
6.|-- ae-0-11.bar1.Milan1.Level3.net 0.0% 10 38.8 37.8 35.3 42.6 2.5
7.|-- 4.68.71.58
8.|-- if-ae-1-2.tcore1.FR0-Frankfurt.as6453.net 0.0% 10 288.0 290.6 287.4 293.2 1.8
9.|-- if-ae-4-2.tcore2.FNM-Frankfurt.as6453.net 0.0% 10 302.3 304.5 301.3 313.6 3.7
10.|-- if-ae-9-2.tcore1.PVU-Paris.as6453.net 0.0% 10 293.8 293.3 291.3 296.0 1.7
11.|-- if-ae-2-2.tcore1.PYE-Paris.as6453.net 0.0% 10 299.6 300.0 297.8 303.5 1.8
12.|-- if-ae-8-1600.tcore1.WYN-Marseille.as6453.net 0.0% 10 297.4 294.4 292.5 297.8 1.8
13.|-- if-ae-9-6.tcore1.MLV-Mumbai.as6453.net 0.0% 10 288.2 286.9 281.9 292.7 3.8
14.|-- if-ae-2-2.tcore2.MLV-Mumbai.as6453.net 0.0% 10 291.1 289.2 287.8 291.1 0.9
15.|-- if-ae-16-2.tcore1.SVW-Singapore.as6453.net 0.0% 10 298.3 295.6 293.4 298.3 1.7
16.|-- 180.87.12.50 0.0% 10 303.0 304.1 302.8 306.2 0.9
17.|-- 116.251.66.25 0.0% 10 296.1 297.1 294.4 301.7 2.3
18.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
19.|-- 47.88.189.193 0.0% 10 291.6 293.8 291.6 297.3 1.8
sorry, maybe registry.cnpmjs.org is migrated to Singapore by @fengmk2 ?
If registry.cnpmjs.org is still timeout, you can set sourceRegistry to https://registry.npmjs.com
, with tow points to notice about:
sourceNpmRegistryIsCNpm
off. https://github.com/cnpm/cnpmjs.org/blob/master/config/index.js#L186cnpm
, because npm's registry no logger provide the API we needed.registry.cnpmjs.org is on Singapore now.
We haven't seen any timeouts yet from the Singapore server.
Thanks for your help. (=
Almost every day we get the following:
Today we got:
Is there any way to improve the connection? Our server is in the US.