Thread View: news.software.nntp
6 messages
6 total messages
Started by Dan Kolkowitz
Tue, 19 Dec 1989 15:31
An interesting hack for nntp feeds
Author: Dan Kolkowitz
Date: Tue, 19 Dec 1989 15:31
Date: Tue, 19 Dec 1989 15:31
29 lines
2130 bytes
2130 bytes
The news configuration at Stanford has a master host feeding several other hosts, which don't have any other news feeds. For most of these hosts we send article batches with rcp, for speed and efficient use of the network. We'd like to switch to NNTP both for reasons of security and more importantly to avoid holding the batches on the master host, when one of the others is down. An interesting compromise of the two methods occurred to us: we can create batches but use NNTP to transmit an entire batch as if it is a single article. As long as the message-id is chosen so that there is no possibility that the batch is rejected, it will be fed to rnews, and then the batch will be unpacked. This saves the IHAVE/SENDME overhead of the protocol and likewise reduces the rnews overhead by the number of execs of rnews that would have occurred. The testing that I have done seems to indicate that on a local Ethernet for an average batch of articles (~200k) it saves about 30% in elapsed time over sending it through an unmodified nntpxmit. (Our nntpxmit is changed to use a given message-id instead of one taken from the first article.) Slower links should benefit even more from the reduction in protocol overhead. The key point is that none of the articles in the batch ever get rejected, since the server is the sole news source for the recipient machine. It would not pay if articles were rejected. I'm just modifying our shell scripts now to use this method. If there is interest I'll post the C code and shell script changes.
Re: An interesting hack for nntp feeds
Author: Jean-Francois Lamy
Date: Tue, 19 Dec 1989 17:03
Date: Tue, 19 Dec 1989 17:03
22 lines
1769 bytes
1769 bytes
You could acheive a similar effect thing by using C news batching on the nntpd at the remote end and telling it to look at an empty file instead of the real history file. The remote nntpd can easily be made to invoke rnews on the resulting batch. On a similar note, we decided here that we did not want our NNTP relay to do any batching. So we set up an NNTP feed to a machine with an NNTP daemon that will accept anything (we pointed its notion of the history file at an empty file). By using C news batching, batches get created in the in.coming directory. One could of course feed those to news, but since we were in a position where all batching feeds could take the same stuff, we simply feed them directly to uux directly. Of course this is only convenient if you can multicast the batches to the sites (i.e. they all get the same stuff). This has allowed us to avoid running batching and outgoing UUCP on our news relay, and we share the load another host handle UUCP feeds (said host only has to run nntpd, not the whole news set-up). Jean-Francois Lamy lamy@ai.utoronto.ca, uunet!ai.utoronto.ca!lamy AI Group, Department of Computer Science, University of Toronto, Canada M5S 1A4
Re: An interesting hack for nntp feeds
Author: Joe Weening
Date: Tue, 19 Dec 1989 17:41
Date: Tue, 19 Dec 1989 17:41
20 lines
1573 bytes
1573 bytes
In article <89Dec19.120249est.2645@neat.cs.toronto.edu> lamy@ai.utoronto.ca (Jean-Francois Lamy) writes: You could acheive a similar effect thing by using C news batching on the nntpd at the remote end and telling it to look at an empty file instead of the real history file. The remote nntpd can easily be made to invoke rnews on the resulting batch. The problem with this is that you still have to wait for the handshaking on each message: >>> IHAVE <7004@shlump.nac.dec.com> 335 Ok >>> . 235 Thanks. This is one of the things we are trying to avoid. -- Joe Weening Computer Science Dept. weening@Gang-of-Four.Stanford.EDU Stanford University
Re: An interesting hack for nntp feeds
Author: Brian Kantor
Date: Fri, 22 Dec 1989 00:34
Date: Fri, 22 Dec 1989 00:34
4 lines
733 bytes
733 bytes
Please don't; we're adding batching to the standard and I'd hate to see incompatable implementations out there. - Brian
Re: An interesting hack for nntp feeds
Author: Jean-Francois Lamy
Date: Fri, 22 Dec 1989 02:53
Date: Fri, 22 Dec 1989 02:53
12 lines
1054 bytes
1054 bytes
brian@ucsd.Edu (Brian Kantor) writes: >Please don't; we're adding batching to the standard and I'd hate to see >incompatable implementations out there. > - Brian Is this related in any way to streaming (as advocated/implemented by Jerry Aguire (sp?))? If not, is streaming being considered as a separate addition? Jean-Francois Lamy lamy@cs.utoronto.ca, uunet!cs.utoronto.ca!lamy Department of Computer Science, University of Toronto, Canada M5S 1A4
Re: An interesting hack for nntp feeds
Author: Brian Kantor
Date: Sat, 23 Dec 1989 06:04
Date: Sat, 23 Dec 1989 06:04
3 lines
736 bytes
736 bytes
Yes, it's a variant on streaming. - Brian
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