Article View: news.software.nntp
Article #10111Re: Question: How do I clear a backlog of news?
From: Jerry Aguirre
Date: Wed, 14 Aug 1996 00:00
Date: Wed, 14 Aug 1996 00:00
80 lines
4452 bytes
4452 bytes
In article <01bb8a26$07255ca0$540279a5@voyager.interserv.net> "Scott McClain" <smcclain@spry.com> writes: > >How does one go about clearing a backlog of news? I have a news-hub >that receives our incoming feed and then in turn passes it on to three >more news servers that end users actually connect to. Two of the three >end servers are chugging along fine, but one of them, (the one most >loaded down of course), is staying about two days behind on articles. >All the servers are running inn1.4unoff4. I have noticed that the outgoing >nntp file on the news-hub is staying around 24MB in size, where as the >others never get any bigger that 40 to 50K, before returning to zero. This is one of those cases where when something gets backlogged the fact that it is running behind makes it run even slower ... There are a couple of things one can do with sites that are behind. One very significant improvement is to sort the queue. Normally articles arrive in a random order so it might get one article in news.software.nntp, another in comp.software.c, one in alt.sources, etc. This means the client has to seek all over its disks to get the articles to send. Also the server has to seek all over its spool disks to create the articles. By sorting the queue both the client and server will get runs where there are many, perhaps hundreds at a time, articles in the same directory. It can create these with much less disk seeks. I have seen a 2 to 3 times improvement in transfer speed when the queue is sorted. You can also split the queue to improve the transfer rate. With normal NNTP this offers great improvment by overlapping the idle times when it is waiting for a response. For streaming the issue is more complicated but may still offer improvements. The most effective way I have found to split the queue is using the article size. One creats two queue entries that are indentical except in two ways. One difference is in the name of the newsfeed entry. This can be some trivial difference like using upper vs. lower case in the domain name or calling one newsname-big. The other differnce is the use of the "<" and ">" flags to indicate that each queue is restricted to certain article sizes. By example I might feed "slowsite" only articles "<7001" bytes. But "slowsite-big" would feed articles ">7000" bytes. This prevents a huge article blocking all the small ones in the queue behind it. If they can not keep up they are most likely to fall behind on the big article queue. This has two advantages. First is that they get the normal postings fairly quickly. It is the binary and other large postings, that they would have to drop if they can not keep up anyway, that fall behind. Second is that the backlogged "big" article queue is relativly small. It may represent a lot of bytes of articles but a much smaller number of queue lines. This saves disk space and overhead processing the queue on the client end. If you are using innxmit to feed slow sites you may want to greatly increase the -T value. Each time innxmit runs out of connect time it closes the connection and copies the remainder of the queue to eliminate the part already sent. If the queue is 20 or 30 megabytes this can be significant load on the client. Also while the queue is being copied no articles are being sent. In fact none are sent until the next crontab run of nntpsend. It is more efficient to pick a value that will time out a few minutes before the next crontab run of nntpsend. And a large value to prevent copying the queue so often. I am using "-T7100" for many of my nntpsend.ctl entries. The real fix, figuring out why "slowsite" is so slow, is a lot more complicated. They way things are going there probably should be a FAQ on that.
Technical Details
Message-ID:
<4utmed$mmu@olivea.ATC.Olivetti.Com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<01bb8a26$07255ca0$540279a5@voyager.interserv.net>Show Full Headers
Complete Article Headers
Message-ID: <4utmed$mmu@olivea.ATC.Olivetti.Com> Subject: Re: Question: How do I clear a backlog of news? Date: Wed, 14 Aug 1996 00:00:00 +0000 From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) References: <01bb8a26$07255ca0$540279a5@voyager.interserv.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 174227580 Organization: Olivetti ATC; Cupertino, CA; USA Newsgroups: news.software.nntp