🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5252

Re: INN1.4unoff3 masters

#5252
From: Al Marti
Date: Sat, 24 Feb 1996 00:00
173 lines
6992 bytes
we ran into this exact same problem.  the problem is that the lines in the
slave batch file get very long when an article is crossposted to many
newsgroups.  if the line is longer than NNTP_STRLEN, which i think in 512,
characters you start overwriting buffers.   we use the following patch to
backends/innxmit.c to fix the problem for us.  it may not be the best way
to do it but it has been working for us for several months with no
problems.

-al



1119,1120c1119
<     /* char           buff[NNTP_STRLEN]; /* scarboro */
<     char              buff[2048]; /* better not have lines longer then this */
---
>     char              buff[NNTP_STRLEN];
1521,1522c1520
<       /* scarboro make sure we do not run over the end of the buff string */
<       (void)sprintf(buff, "%s %.2039s", Slavish ? "xreplic" : "ihave", MessageID);
---
>       (void)sprintf(buff, "%s %s", Slavish ? "xreplic" : "ihave", MessageID);


In article <4ggi87$3ng@nntp.Stanford.EDU>,
Matthew Petach <mpetach@nyx.Stanford.EDU> wrote:
>Matthew Petach (mpetach@nyx.Stanford.EDU) wrote:
>> Hi folx!
>
>
>Boy, I hate following up to myself...
>
>But I've still got problems.  Feel free to post, I'm
>reading off Stanford until I can get our site back
>up and running.
>
>> I'm doing News administration at a site with 19 INN servers,
>> and the traffic is hammering our FDDI rings.  We're moving
>> from full peers to master -> slave relationships to keep
>> everything synchronized, and we're having no end of
>> troubles.  Our machines are all pretty much identical 
>> (see below, I don't want to waste space here).
>
>> The problem is that our master has the following
>> entry in the newsfeeds file:
>> # 
>> voyager.internex.net\
>>         :*\
>>         :Tf,WnR,Ap:
>> #
>
>
>Entry now looks like this:
># 
>voyager.internex.net\
>        :*,!junk*\
>        :Tf,WnR,Ap:
>#
>
>> And in the nntpsend.ctl file, we have:
>> #
>> voyager.internex.net:voyager.internex.net:5m:-t60 -S -T3600
>> #
>
>After many suggestings from folks out there (THANKS!), my nntpsend.ctl
>file now looks like this:
># voyager.internex.net:voyager.internex.net:5m:-t60 -S -T3600
>voyager.internex.net:voyager.internex.net::-t60 -r -S
>#
>
>We no longer truncate after an hour, and that seems to eliminate
>the bcha* files I was suffering from before, but now we have the
>problem that the spool files are never cleared.  The slaves keep
>seeing the SAME duplicate articles being sent OVER and over again,
>and the batch file is now huge...
>1248 -rw-rw-r--   1 news     news      623834 Feb 21 17:48 santaclara01.news.internex.net
>44320 -rw-rw-r--   1 news     news     22665527 Feb 21 15:54 santaclara01.news.internex.net.nntp
>5008 -rw-rw-r--   1 news     news     2552033 Feb 21 17:48 voyager.internex.net
>61936 -rw-rw-r--   1 news     news     31684633 Feb 21 10:24 voyager.internex.net.nntp
>
>I added the -r flag to try to forcefully eliminate entries from
>the batch file, but no matter what I do, I can't get it to
>clean out articles that it's already sent to the slave.
>
>Please, if you have any clues in this matter, have mercy
>on us and let us know anything we can attempt.  It is
>destroying our network with retransmitted articles; On
>average, we see about 1.3 million duplicate article messages
>per day on each of the slave machines.
>
>Thanks a million for your assistance!
>
>
>> The slave server is started with:
>> ##  RFLAG is set below; set FLAGS as appropriate.
>> RFLAG=""
>> ## FLAGS="-i0"
>> FLAGS="-i0 -S clients1.news.internex.net"
>>  
>
>
>> If anyone has ANY kind of a clue on this PLEASE, please let me know
>> if you can help.
>
>> Here's the machine configurations:
>
>> Client1 NEWS>uname -a
>> SunOS Client1 5.4 Generic_101945-34 sun4m sparc
>> Client1 NEWS>
>> # /usr/local/bin/sysinfo
>>  
>>         GENERAL INFORMATION
>>  
>> Host Name           : Client1
>> Host Aliases        : client1 
>> Host Address(es)    : 199.2.14.214 
>> Host ID             : 80f52282
>> Serial Number       : 16065154
>> Manufacturer        : Sun (Sun Microsystems)
>> System Model        : micro COMPstation 5
>> Main Memory         : 64 MB
>> Virtual Memory      : 124 MB
>> ROM Version         : 
>> CPU Type            : sparc
>> App Architecture    : sparc
>> Kernel Architecture : sun4m
>> OS Name             : SunOS
>> OS Version          : 5.4
>> Kernel Version      : SunOS Release 5.4 Version Generic_101945-34 [UNIX(R) System V Release 4.0]
>>  
>>         DEVICE INFORMATION
>>  
>> micro COMPstation 5 is a "TWS-2100"
>>     openprom is a "Open Boot PROM" pseudo device
>>     iommu0 is a "I/O Memory Management Unit" system bus
>>         sbus0 is a "SBus" system bus
>>             espdma is a "SCSI DMA" pseudo device
>>                 esp0 is a "Generic SCSI interface" disk controller
>>                     c0t1d0 (sd1) is a "CONNER-CFP2107S2.14GB-2B4B" disk drive
>>                     c0t2d0 (sd2) is a "CONNER-CFP2107S2.14GB-2B4B" disk drive
>>                     c0t3d0 (sd3) is a "SEAGATE ST31230N" disk drive
>>                     c0t4d0 (sd4) is a "CONNER-CFP2107S2.14GB-2B4B" disk drive
>>                     c0t5d0 (sd5) is a "CONNER-CFP2107S2.14GB-2B4B" disk drive
>>             ledma is a "LANCE Ethernet DMA" pseudo device
>>                 le0 is a "AMD Lance Am7990" network interface
>>     obio0 is a "On Board I/O" system bus
>>         zs0 is a "Zilog 8530" serial communications chip
>>         zs1 is a "Zilog 8530" serial communications chip
>>     cpu0 is a CPU
>> # 
>
>
>
>> --
>> ************************************************************************
>> Matthew Nicholas Petach |buckaroo@medisg, mpetach@leland (.stanford.edu)    
>> "For every problem, there exists a simple and elegant solution which is 
>> absolutely wrong." -- J. Wagoner, U.C.B. Mathematics
>
>--
>************************************************************************
>Matthew Nicholas Petach |buckaroo@medisg, mpetach@leland (.stanford.edu)    
>"For every problem, there exists a simple and elegant solution which is 
>absolutely wrong." -- J. Wagoner, U.C.B. Mathematics


-- 
---
Al Marti				University of Colorado, Boulder
Computing and Network Services		Central Resources
Al.Marti@Colorado.EDU			(303)492-4617

Technical Details
Message-ID: <4gln2l$a8c@lace.colorado.edu>
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
References: <4fe81d$erv@nntp.Stanford.EDU> <4ggi87$3ng@nntp.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <4gln2l$a8c@lace.colorado.edu>
Subject: Re: INN1.4unoff3 masters
Date: Sat, 24 Feb 1996 00:00:00 +0000
From: marti@django.Colorado.EDU (Al Marti)
References: <4fe81d$erv@nntp.Stanford.EDU> <4ggi87$3ng@nntp.Stanford.EDU>
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: 140798491
Distribution: inet
Organization: University of Colorado, Boulder
Newsgroups: news.software.nntp