🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83729

Re: docheckgroups et al

#83729
From: John F. Morse
Date: Tue, 28 Dec 2010 12:49
106 lines
6572 bytes
Jeffrey M. Vinocur wrote:
> In article <ifb2gt$2i7$1@n102.xanadu-bbs.net>,
> John F. Morse <dont.bother> wrote:
>   
>> However (from my defective memory when I used actsync months/years ago), 
>> doesn't actsync pound the server with sequential ctlinnd commands 
>> instead of the mod-active batch with the server temporarily paused?
>>
>> Mod-active is very smooth in its operation, but what about actsync?
>>
>> Then there is the problem of intermediate editing to delete silly alt.* 
>> groups which would not be possible with actsync alone. A file could be 
>> created for editing, then injected with mod-active.
>>     
>
> Check the -o option (for actsync) to answer both of these
> questions.
>   


Hi Jeff. Haven't seen you around in awhile. Hope you are in good health.

I have checked the actsync -o options, probably six times this month. I 
didn't see the answer to my "two" questions.

None of the -o a... options are material because they set the output 
format using the high and low watermarks. I'm only interested in the 
first field (newsgroup name) and the fourth field (if it isn't "y").

Comparing my active with another, for instance using "diff -y 
--suppress-common-lines ..." requires the watermarks to be stripped off 
with "awk '{print $1, $4}' active > active1.txt" or nearly every line 
will be different.

The statement about the "a" options: "allow one to format new active 
file instead of producing ctlinnd commands" I read literally as a "new 
active file." My task was to add to an "existing" active file. I 
certainly don't want to overwrite the active file and cause the 
watermarks to all be zeroed out (unless merge is used). But I still 
wanted to examine the differences.

The -o x... options are dangerous because I don't get to see what will 
happen beforehand. I suppose they could be used (after editing, testing, 
etc.) to actsync multiple servers in one installation so they are all 
identical, but not a good idea for syncing even one server against a 
remote peer or file.

The -o c option prints the ctlinnd commands for examination. Then you 
still need to do something with them. If you feed them into INN, then 
there is the overrun problem I mentioned earlier, where some form of 
handshaking is needed to keep the incoming data from getting garbled.

Using -o x pause (see the -z flag) can help in this situation of 
overrunning the server's ability to handle the incoming ctlinnd commands 
fast enough, but it introduces a very long run time when there are 
hundreds or thousands of groups to add. Adding just 10,000 newgroups 
with a four-second pause would take over 11 hours to run -- per server. 
40,000 new groups would be two days -- per server. Or 12 hours with a 
one-second delay.

Throttling the server would allow ctlinnd newgroup commands to process 
faster, but then you lose a server for an extended period.

So reading actsync(8), the -o option as you suggest, does answer my 
question(s) and verifies my memory that actsync will pound the server 
with sequential ctlinnd newgroup commands, possibly garbling the 
incoming newsgroup names if no -z is used, generating thousands of lines 
of news.notice log, plus a huge Daily Report listing every added group. 
I experienced this on one test server when I added the complete Big-8 in 
2009, then decided it was better to just edit the active file by 
"pasting in" the new groups. Certainly not elegant, but it was fast, and 
it worked.

Even thought the missing actsync -A option description was solved by 
reading getlist(1) -A description, I don't see how actsync could replace 
the use of mod-active using the edited output from docheckgroups. 
Mod-active is very slick the way it works. Fast and clean. It's too bad 
mod-active will not work for me with the output of docheckgroups. This 
may be a HUA problem, and I will dig into it again.

Adding a huge list of newgroups is no longer an issue since I now have 
all the ISC groups added to all the servers. It may be an issue someday 
in the future, should I ever need to add many groups, but I can refer to 
my recent notes just like I did with those I made years ago (2005) on 
actsync. Those old notes were of little help because of added 
authentication (the -A problem), plus the servers are INN 2.5.2 on 
Squeeze and INN 2.4.5 on Lenny, while the old notes were made on INN 
2.4.3 on Sarge, without authentication and without SSL/TLS.

IOW, I built too many hoops to jump through. ;-)

Thanks for your suggestion anyway, Jeff. It made me go verify and reread 
some things, and makes me want to set up another server just to see if I 
can't get something working which others say does work for them.

I'm not a quitter, but I will sometimes get a "make-do" finished, then 
move a problem to the back burner for another day due to other 
more-pressing issues. Problem is, when that day arrives, I've forgotten 
a lot, and sometimes software upgrades have broken something my notes 
show as working in the past.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <ifcmdj$h2p$1@n102.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8739pj0w1z.fsf@windlord.stanford.edu> <ifb2gt$2i7$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <ifcmdj$h2p$1@n102.xanadu-bbs.net>
Subject: Re: docheckgroups et al
Date: Tue, 28 Dec 2010 06:49:55 -0600
From: "John F. Morse" <john@example.invalid>
References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8739pj0w1z.fsf@windlord.stanford.edu> <ifb2gt$2i7$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 106
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: n102.xanadu-bbs.net 1293540595 17497 192.168.89.210 (28 Dec 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Tue, 28 Dec 2010 12:49:55 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
In-Reply-To: <ifb38e$2m6$1@puck.litech.org>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 6323