Thread View: news.software.nntp
2 messages
2 total messages
Started by Scott McClain
Wed, 14 Aug 1996 00:00
Question: How do I clear a backlog of news?
Author: Scott McClain
Date: Wed, 14 Aug 1996 00:00
Date: Wed, 14 Aug 1996 00:00
14 lines
1283 bytes
1283 bytes
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. -- Scott McClain SPRY/Compuserve smcclain@spry.com Network Operations Manager
Re: Question: How do I clear a backlog of news?
Author: 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.
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