Thread View: news.software.nntp
11 messages
11 total messages
Started by Hauke Lampe
Thu, 05 Jan 2006 09:36
Delaying an incoming feed
Author: Hauke Lampe
Date: Thu, 05 Jan 2006 09:36
Date: Thu, 05 Jan 2006 09:36
84 lines
4524 bytes
4524 bytes
I know there are ways to delay outgoing feeds but I was unable to find a
way to delay an incoming feed.
The story so far:
My server has a nice niche and peers with a handful of well-connected
servers within the network range of ~1ms.
I pondered long whether I should add some overseas connection. You know, as
backup and just for good luck^Wpropagation.
I finally gave in and asked Geoff from glorb.com and he was so nice as to
hook me up.
And I watched the daily report and all looked good.
That glorb is one dang fast server, I thought, as it even pushed away my so
far main feed in terms of numbers of articles accepted. But then, over a
few days, I noticed a sudden drop in the percentage of articles my peers
would accept from me. These numbers had been more or less stable for quite
some time. That led me to the conclustion that my server was receiving
many articles slower than it had done before. Oops.
I know we're talking about milliseconds here and that my server still
receives more articles per day than its readers can digest. All is well. I
just hate it when something does not run smooth, especially when I made it
worse by trying to improve it.
I then came to think that this might be caused by an unfortunate
combination of network latencies and INN's Work-In-Progess check that
receives articles from the peer that offered them first and defers offers
from other peers.
The problem is now:
I receive most articles from a newsserver at a nearby internet exchange
(<1ms roundtrip time), connected to several carriers. RTT delay to glorb is
about 125ms. Now, even if glorb receives many articles long before me and
sends a CHECK request, by the time my SENDIT makes it back, the complete
article might already have travelled over faster lines and be available
from the IX's server.
To test this, I wrote a small patch[1] to INN that would let me set a
bitfield and mask for each peer in incoming.conf to give finer control
about WIP checks and which peers may send an article even after another
peer already offered it. Suddenly, the server was using only less than 40%
of the articles that glorb had announced earlier than any other peer, the
other 60% rejected as duplicates because they had been received later than
from another peer.
With streaming mode off on this connection, I take slightly more articles
than I reject. So, I do receive many articles earlier than from any other
peer and accept the same volume from glorb as I would without me fiddling
the WIP, I just throw half of it away. It is a bit annoying. But only half.
Narf.
If I could delay the CHECKs on this incoming connection only slightly,
maybe 500ms, it should reduce the number of race incidents and still
provide me with a good backup feed.
Any ideas? Or do I have to either accept the duplicates or drop the feed?
[1]
Two new options: wipgroup and wipmask. For convenience, wipmask specifies
the bits *not* to set in the real mask. Both are passed on to the channel
structure and WIPGroup subsequently to the WIP structure by WIPnew(). The
relevant change in WIPinprogress() is:
- if ((Now.time - wp->Timestamp) < (i + innconf->wipcheck))
- return true;
+ if ((Now.time - wp->Timestamp) < (i + innconf->wipcheck)) {
+ if (wp->WIPGroup & cp->WIPMask)
+ return true;
+ else
+ wp->WIPGroup = wp->WIPGroup | cp->WIPGroup;
+ }
Thus it is possible to specify which peers receive a deferral and which may
send an article even if another channel already offered an article.
Hauke.
Re: Delaying an incoming feed
Author: Jeffrey M. Vinocur
Date: Thu, 05 Jan 2006 12:09
Date: Thu, 05 Jan 2006 12:09
33 lines
2406 bytes
2406 bytes
In article <dpipag$atv$1@einschein.formularfetischisten.de>, Hauke Lampe <packbart@blagga.openchaos.org> wrote: > >My server has a nice niche and peers with a handful of well-connected >servers within the network range of ~1ms. > >I pondered long whether I should add some overseas connection. You know, as >backup and just for good luck^Wpropagation. > >I finally gave in and asked Geoff from glorb.com and he was so nice as to >hook me up. > >And I watched the daily report and all looked good. >That glorb is one dang fast server, I thought, as it even pushed away my so >far main feed in terms of numbers of articles accepted. But then, over a >few days, I noticed a sudden drop in the percentage of articles my peers >would accept from me. These numbers had been more or less stable for quite >some time. That led me to the conclustion that my server was receiving >many articles slower than it had done before. Oops. Well, I'm not convinced this is actually a problem. But as far as your request for delaying incoming feeds, I imagine the easiest thing to do is to ask your peer to delay its outgoing feed :-) I guess if you really wanted, you could run a separate instance of INN with a very small cycbuff spool, no overview, no readers, and have it set up just as a transit server + delayer. -- Jeffrey M. Vinocur jeff@litech.org
Re: Delaying an incoming feed
Author: Geoff Brozny
Date: Thu, 05 Jan 2006 17:23
Date: Thu, 05 Jan 2006 17:23
55 lines
3654 bytes
3654 bytes
"Hauke Lampe" <packbart@blagga.openchaos.org> wrote in message news:dpipag$atv$1@einschein.formularfetischisten.de... >I know there are ways to delay outgoing feeds but I was unable to find a > way to delay an incoming feed. > > > The story so far: > My server has a nice niche and peers with a handful of well-connected > servers within the network range of ~1ms. > > I pondered long whether I should add some overseas connection. You know, > as > backup and just for good luck^Wpropagation. > > I finally gave in and asked Geoff from glorb.com and he was so nice as to > hook me up. > > And I watched the daily report and all looked good. > That glorb is one dang fast server, I thought, as it even pushed away my > so > far main feed in terms of numbers of articles accepted. But then, over a > few days, I noticed a sudden drop in the percentage of articles my peers > would accept from me. These numbers had been more or less stable for quite > some time. That led me to the conclustion that my server was receiving > many articles slower than it had done before. Oops. well, looking at your daily report, it looks like they are still accepting the same precentages of articles, and I really would not trust innreports numbers 100% it has not been anywhere close to accurate in most cases, in both directions. I dont think I can actually do anything to slow things down a bit, on the main peering box, but what I could do is not really what I want to do, is move your outgoing feed off of the main feed box, to a secondary feeder, this way there would be about 20ms latency between where my peering box is, and my main datacenter, and then it would also have to go though two other servers before it would actually go out again. There are a few issues with this though, for one it would be going over transit on my end, which would be fine for now, when I actually get it so my stats update on the website automatically, you would not show up at all on the outbound stats, and it may compound your issue a little bit more, I'm not directly peering with any of your peers other then bananasplit.info, so most likey whatever I'm offering there peers will end up with your peers around the same time I would be offering it, bring your outgoing article count even lower. Something else you could try, is setting up additional outbound feed to your other peers, basically a small article feed, and a large article feed, thery may end up accepting more that way, and/or I could reduce the article size I'm sending you, that may improve things, but I really cannot say by how much. geoff
Re: Delaying an incoming feed
Author: Russ Allbery
Date: Thu, 05 Jan 2006 18:32
Date: Thu, 05 Jan 2006 18:32
12 lines
1530 bytes
1530 bytes
Geoff Brozny <gbrozny@glorb.columbus.oh.us> writes:
> I dont think I can actually do anything to slow things down a bit, on
> the main peering box,
If you're running INN, you *can* use delayer. See the contrib directory.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Delaying an incoming feed
Author: Geoff Brozny
Date: Thu, 05 Jan 2006 20:04
Date: Thu, 05 Jan 2006 20:04
13 lines
1399 bytes
1399 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87hd8i7cgk.fsf@windlord.stanford.edu... > > If you're running INN, you *can* use delayer. See the contrib directory. > I know it is possible, however for performance reasons don't think it will be a good idea, I got a real decent load on the peering box as is.. geoff
Re: Delaying an incoming feed
Author: Jeffrey M. Vinocur
Date: Thu, 05 Jan 2006 21:47
Date: Thu, 05 Jan 2006 21:47
25 lines
2106 bytes
2106 bytes
In article <dpjtq0$ctf$1@ratbert.glorb.com>, Geoff Brozny <gbrozny@glorb.columbus.oh.us> wrote: > >"Russ Allbery" <rra@stanford.edu> wrote: >> >> If you're running INN, you *can* use delayer. See the contrib directory. > >I know it is possible, however for performance reasons don't think it will >be a good idea, I got a real decent load on the peering box as is.. For what it's worth, since I restarted INN the other day, I've accumulated 56 hours of CPU time for innd, 13 hours for innfeed, and just over 1 hour for the delayer script. That's not too much...in fact, if it markedly decreases the amount of traffic that you send to the original poster, that might be more of a benefit than the cost of the script. On the other hand, if requiring that article be accessed later affects your cache performance, it might hurt. Who knows...you could give it a shot, though, and measure the actual effect. -- Jeffrey M. Vinocur jeff@litech.org
Re: Delaying an incoming feed
Author: Hauke Lampe
Date: Thu, 05 Jan 2006 22:50
Date: Thu, 05 Jan 2006 22:50
20 lines
1794 bytes
1794 bytes
Geoff Brozny wrote: > I dont think I can actually do anything to slow things down a bit, That's why I looked for a way to help myself. I don't want anyone to try untested things with their servers only because of what I think is a mere aesthetical problem. Btw, your latest innreport linked at http://www.glorb.com/news/ is from November. I tried to check how the volume I take compares to other peers. If it is ok with you, I'll just stop bothering and tinkering. The server runs perfectly fine even if it doesn't necessarily accept articles from what would have been the optimal peer. I don't think the users mind an extra millisecond here and there. Sometimes I must accept imperfection ;) I have to get back to work next week and don't want to leave unstable dirty hacks behind. Hauke.
Re: Delaying an incoming feed
Author: Geoff Brozny
Date: Thu, 05 Jan 2006 23:49
Date: Thu, 05 Jan 2006 23:49
16 lines
1623 bytes
1623 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:dpk44s$ucj$1@puck.litech.org... > > For what it's worth, since I restarted INN the other day, I've > accumulated 56 hours of CPU time for innd, 13 hours for innfeed, > and just over 1 hour for the delayer script. > thas not too bad, I will have to test it though, and finding the spare time to test it is going to be the hard part, I got a decent ammount of stuff that I just do not have time to work on already.. geoff
Re: Delaying an incoming feed
Author: Geoff Brozny
Date: Thu, 05 Jan 2006 23:55
Date: Thu, 05 Jan 2006 23:55
29 lines
2199 bytes
2199 bytes
"Hauke Lampe" <packbart@blagga.openchaos.org> wrote in message news:dpk7ra$19a$1@einschein.formularfetischisten.de... > > Btw, your latest innreport linked at http://www.glorb.com/news/ is from > November. I tried to check how the volume I take compares to other peers. yea I know, I got to come up with a script to automatically move that stuff over to the webserver each day, I'm manually coping the data over now, so it should be updated in about 5 min. > > If it is ok with you, I'll just stop bothering and tinkering. The server > runs perfectly fine even if it doesn't necessarily accept articles from > what would have been the optimal peer. I don't think the users mind an > extra millisecond here and there. Sometimes I must accept imperfection ;) > I have to get back to work next week and don't want to leave unstable > dirty > hacks behind. > fine with me, yea, I do not think anyone will complain.. Eventually the network technology will get better and the latency will get lower.. the highest latency feeds I have are from my peers in Asia, and Australia, about 350ms.. geoff
Re: Delaying an incoming feed
Author: Hauke Lampe
Date: Fri, 06 Jan 2006 00:26
Date: Fri, 06 Jan 2006 00:26
16 lines
1692 bytes
1692 bytes
Geoff Brozny wrote: > "Hauke Lampe" <packbart@blagga.openchaos.org> wrote in message > >> Btw, your latest innreport linked at http://www.glorb.com/news/ is from >> November. I tried to check how the volume I take compares to other peers. > > yea I know, I got to come up with a script to automatically move that stuff > over to the webserver each day, I'm manually coping the data over now, so it > should be updated in about 5 min. Thank you. Quite impressive numbers. And here I was moaning about less than 100MB of wasted traffic per day... Hauke.
Re: Delaying an incoming feed
Author: Geoff Brozny
Date: Fri, 06 Jan 2006 00:37
Date: Fri, 06 Jan 2006 00:37
19 lines
1871 bytes
1871 bytes
"Hauke Lampe" <packbart@blagga.openchaos.org> wrote in message news:dpkdg0$9e$1@einschein.formularfetischisten.de... > > Thank you. Quite impressive numbers. And here I was moaning about less > than > 100MB of wasted traffic per day... > yea, I kind of have overdid the peering thing, but I dont pay for outbound transfer at the facility the peering box is, so the ammount of I transfer to my peers does not really effect me any.. but if you or anyone else reading this ever want to look at the most current stats, shoot me an email and I'll copy them over, eventually I will get tired of doing that, and will get that script to automatically do that done.. geoff
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads