Re: [gentoo-user] Re: Blacklist one of the pool's rsync server?

2018-02-28 Thread Neil Bothwick
On Wed, 28 Feb 2018 02:18:37 + (UTC), Grant Edwards wrote:

> > Is it possible to add it to your hosts file and point it to local
> > IP?   
> 
> No.  Because the name is rsync://rsync.us.gentoo.org/gentoo-portage.  

> > Obviously, if it is a numbered IP then this likely won't work.   
> 
> I could, however, set up a static route for the IP in question and
> point it to something that isn't listening on the rsync port.  That
> won't make it avoid trying to use that server, but it would make it
> fail immediately rather than let it crawl along along until it hangs
> or I hit Ctrl-C. :)

Or you could set the route to point to the IP address of one of the good
hosts.


-- 
Neil Bothwick

Scientists decode the first confirmed alien transmission from outer space
...
"This really works! Just send 5*10^50 H atoms to each of the five star
systems listed below. Then, add your own system to the top of the list,
delete the system at the bottom, and send out copies of this message to
100 other solar systems. If you follow these instructions, within 0.25 of
a galactic rotation you are guaranteed to receive enough hydrogen in
return to power your civilization until entropy reaches its maximum!"


pgpqYBWa_2nGU.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: Blacklist one of the pool's rsync server?

2018-02-27 Thread Grant Edwards
On 2018-02-28, Dale  wrote:
> Grant Edwards wrote:
>> Is there any way for me to "blacklist" a pool rsync server so that
>> emerge --sync won't try to use it?
>>
>> I'm using the sync-url rsync://rsync.us.gentoo.org/gentoo-portage, but
>> one of the pool's servers is barely usable for me.  I don't know if
>> it's a server problem or if traffic between my and that server is
>> routed through a Mars orbiter.  When any other server is chosen, the
>> file list scrolls by faster than you can read it.  Via the Mars
>> orbibiter the list ticks by about one file every 5-10 seconds.  It
>> will usually finish (eventually), but sometimes hangs and times out.
>> It's been like for at least a year or two.
>>
>> [FWIW, I'm uable to ping the server, and tracroute is unable to produce
>> a route to it.  However, I can telnet to the rsync port on that host
>> and it connects.]
>>
>> When I see that server has been selected, I usually just hit Ctrl-C
>> and try again.
>>
>> Is there any way to configure portage to not use that server?
>
> Is it possible to add it to your hosts file and point it to local IP? 

No.  Because the name is rsync://rsync.us.gentoo.org/gentoo-portage.  

> Obviously, if it is a numbered IP then this likely won't work. 

I could, however, set up a static route for the IP in question and
point it to something that isn't listening on the rsync port.  That
won't make it avoid trying to use that server, but it would make it
fail immediately rather than let it crawl along along until it hangs
or I hit Ctrl-C. :)

-- 
Grant