Article View: news.software.nntp
Article #72989Delaying an incoming feed
From: 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.
Technical Details
Message-ID:
<dpipag$atv$1@einschein.formularfetischisten.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.n-ix.net!news2.arglkargh.de!einschein.formularfetischisten.de!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <dpipag$atv$1@einschein.formularfetischisten.de> Subject: Delaying an incoming feed Date: Thu, 05 Jan 2006 09:36:16 +0000 From: Hauke Lampe <packbart@blagga.openchaos.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.n-ix.net!news2.arglkargh.de!einschein.formularfetischisten.de!not-for-mail Newsgroups: news.software.nntp Lines: 84 X-Trace: einschein.formularfetischisten.de 1136453776 11199 10.42.23.3 (5 Jan X-Complaints-To: abuse@formularfetischisten.de NNTP-Posting-Date: Thu, 5 Jan 2006 09:36:16 +0000 (UTC) User-Agent: slrn/0.9.8.1 (Debian)