Thread View: news.software.nntp
6 messages
6 total messages
Started by Jason Lavoie
Tue, 09 Nov 1999 00:00
dreaderd newgroups help
Author: Jason Lavoie
Date: Tue, 09 Nov 1999 00:00
Date: Tue, 09 Nov 1999 00:00
25 lines
1602 bytes
1602 bytes
I've just started playing with using diablo to replace our current
reader server. dreaderd is set up to take a single full feed from main
news server (inn/innfeed) in order to keep a local overview database.
Hourly, I run the dsyncgroups from cron to sync article numbers:
dbin/dsyncgroups -h feeder -a -D -NBX -XX
This seems to be (incorrectly) modifying the CTS field in dactive.kp on
some preexisting groups. The result that I see is that a nntp
'newgroups' command will erroneously list old groups as new.
I've just started to look at the code to see what is causing this, but
I figured I'd ask here in case it was a common problem. Am I doing
something stupid?
TIA
-j
--
"What is the sound of Perl? Is it not the sound of a | Jason Lavoie
wall that people have stopped banging their heads against?" | jason@mint.net
--Larry Wall in <1992Aug26.184221.29627@netlabs.com> |
Re: dreaderd newgroups help
Author: Jason Lavoie
Date: Wed, 10 Nov 1999 00:00
Date: Wed, 10 Nov 1999 00:00
62 lines
3119 bytes
3119 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote:
> Jason Lavoie <jason@mint.net> wrote:
> : I've just started playing with using diablo to replace our current
> : reader server. dreaderd is set up to take a single full feed from main
> : news server (inn/innfeed) in order to keep a local overview database.
> : Hourly, I run the dsyncgroups from cron to sync article numbers:
> : dbin/dsyncgroups -h feeder -a -D -NBX -XX
> Why are you updating the beginning article number?
Because that's what the manpage (quoted below) led me to believe I
needed to do.
> Don't do that.
[...]
> -NBX is often used in slaved-cache situa-
> tion to keep the range synchronized with the remote NNTP
> host's expiration.
[...]
I want my reader to be a slave, right? This should be syncronized with
the feeder server's expiration, no?
> Now tell me exactly what you are trying to do?
I'm trying to be sure that my active file has the new groups as they are
created on the inn server. I'm also trying to make sure that the
article numbers are the same, so that readers will see the articles that
are available. To me, this means updating the high/low numbers in the
dactive file to correspond with the feeder machine.
> Are you just trying to make sure your active file has the new groups
> as they are created on the INN server, and to remove the 'stale'
> groups INN has rmgrouped?
Yes, but I also want users to be able to switch from the old server
to the new (diablo) server transparently. This required the article
numbers be the same.
> If so, just use 'dbin/dsyncgroups -a -D' and you should be set.
But, this won't keep the hight/low article numbers in the active files
synchronized.
Please see my other subsequent post (<80c8m2$u23$1@ruby.mint.net>) in
this thread for more details on what I'm trying to do. Any suggestions
are more than welcome.
I'm sorry I sound so ignorant here. This is my first foray into
diablo, and I'm still trying to change gears from my INN experiences and
knowledge. Thanks for your help.
-j
--
"What is the sound of Perl? Is it not the sound of a | Jason Lavoie
wall that people have stopped banging their heads against?" | jason@mint.net
--Larry Wall in <1992Aug26.184221.29627@netlabs.com> |
Re: dreaderd newgroups help
Author: Jason Lavoie
Date: Wed, 10 Nov 1999 00:00
Date: Wed, 10 Nov 1999 00:00
68 lines
3495 bytes
3495 bytes
Conrad Juleff <conradj@NOSPAM.is.co.za> wrote:
> In article <80a26a$458$1@ruby.mint.net>, Jason Lavoie <jason@mint.net> wrote:
>>I've just started playing with using diablo to replace our current
>>reader server. dreaderd is set up to take a single full feed from main
>>news server (inn/innfeed) in order to keep a local overview database.
>>Hourly, I run the dsyncgroups from cron to sync article numbers:
>>
>> dbin/dsyncgroups -h feeder -a -D -NBX -XX
>>
>>This seems to be (incorrectly) modifying the CTS field in dactive.kp on
>>some preexisting groups. The result that I see is that a nntp
>>'newgroups' command will erroneously list old groups as new.
> I had similar problems doing that as well and couldnt find the cause.
That's somewhat comforting... at least I'm not alone.
I'll keep looking for the problem, though.
> If you are serious about using Diablo as your reader server then you
> probably want to master article numbers from your feeder. Then setup
> both the Diablo & INN readers as Xref slaves. All articles posted will
> then have to go via the feeder so that they get numbered correctly.
This is exactly what I'm trying to do. I've set up my feeder server (an
INN 2.3 machine) to send a full feed to dreaderd. I've intended to make
dreaderd take article numbers and group policy from the feeder server.
In diablo.conf:
active on
activedrop off
slave on
and I'm running dreaderd like so:
dbin/dreaderd -F 4 -P 119 -p0 -h news.mint.net -x news.mint.net
From my understanding of reading the docs, this should make dreaderd
take a feed from the news server to update its local overview db.
The dsyncgroups run will update the dactive.kp file, updating the active
and newsgroups (in inn-speak) information. It should only change the
CTS (group creation time) the first time it sees a new group from the
feeder.
> This way when you do decide to switch over you wont have clients having
> to resubscribe to groups because the article numbers have changed.
Yes, this is the idea. It should be transparent for the user.
> Take a look at the sample_reader directory and README.READER in the
> Diablo source for hints.
I've read almost all I can get my hands on. I believe I have a correct
configuration, but this CTS problem is really ruining it for me. You
sound like you're running the same situation as I am without troubles,
is this true? What have you done to avoid this problem?
Thanks!
-j
--
"What is the sound of Perl? Is it not the sound of a | Jason Lavoie
wall that people have stopped banging their heads against?" | jason@mint.net
--Larry Wall in <1992Aug26.184221.29627@netlabs.com> |
Re: dreaderd newgroups help
Author: Conrad Juleff
Date: Wed, 10 Nov 1999 00:00
Date: Wed, 10 Nov 1999 00:00
26 lines
1775 bytes
1775 bytes
In article <80a26a$458$1@ruby.mint.net>, Jason Lavoie <jason@mint.net> wrote: >I've just started playing with using diablo to replace our current >reader server. dreaderd is set up to take a single full feed from main >news server (inn/innfeed) in order to keep a local overview database. >Hourly, I run the dsyncgroups from cron to sync article numbers: > > dbin/dsyncgroups -h feeder -a -D -NBX -XX > >This seems to be (incorrectly) modifying the CTS field in dactive.kp on >some preexisting groups. The result that I see is that a nntp >'newgroups' command will erroneously list old groups as new. I had similar problems doing that as well and couldnt find the cause. If you are serious about using Diablo as your reader server then you probably want to master article numbers from your feeder. Then setup both the Diablo & INN readers as Xref slaves. All articles posted will then have to go via the feeder so that they get numbered correctly. This way when you do decide to switch over you wont have clients having to resubscribe to groups because the article numbers have changed. Take a look at the sample_reader directory and README.READER in the Diablo source for hints.
Re: dreaderd newgroups help
Author: Jason Lavoie
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
81 lines
3934 bytes
3934 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote:
> Jason Lavoie <jason@mint.net> wrote:
> : Mike Horwath <drechsau+usenet@yuck.net> wrote:
> :> Jason Lavoie <jason@mint.net> wrote:
> :> : Hourly, I run the dsyncgroups from cron to sync article numbers:
> :> : dbin/dsyncgroups -h feeder -a -D -NBX -XX
> :> Why are you updating the beginning article number?
> :> Don't do that.
> : [...]
> :> -NBX is often used in slaved-cache situa-
> :> tion to keep the range synchronized with the remote NNTP
> :> host's expiration.
> : [...]
> : I want my reader to be a slave, right? This should be syncronized with
> : the feeder server's expiration, no?
> Set your overview expiration correctly and you don't have to do this.
Yes, but this requires me to "maintain" the diablo configuration
(dexpire.ctl, I believe) so that it correctly represents my spool
retention time. This is extra work that I shouldn't need to do since it
can be automated by syncing the active files -- laziness is a virtue. :)
> :> Now tell me exactly what you are trying to do?
> : I'm trying to be sure that my active file has the new groups as they are
> : created on the inn server. I'm also trying to make sure that the
> : article numbers are the same, so that readers will see the articles that
> : are available. To me, this means updating the high/low numbers in the
> : dactive file to correspond with the feeder machine.
> But you don't wanna update the high number at all since you are
> xrefing already.
Yes, you're right.
> The low number will be updated by dexpireover if you set things up
> right.
I don't like that arrangement (see above).
> Maybe there is a bug in dsyncgroups for updating the low number, I
> don't know, but I don't rely upon that for my testing.
Yes, I found the bug last night. dsyncgroups will update the CTS for
any group that is in the local db, but hasn't received any articles
since the last sync. This patch fixes it:
diff -ur diablo-1.24-REL/util/dsyncgroups.c diablo-1.24-MINT/util/dsyncgroups.c
--- diablo-1.24-REL/util/dsyncgroups.c Mon Apr 26 00:24:03 1999
+++ diablo-1.24-MINT/util/dsyncgroups.c Thu Nov 11 11:11:42 1999
@@ -245,6 +245,7 @@
desc
);
grp->gr_State &= ~(GRF_NEW|GRF_MODIFIED);
+ grp->gr_State &= ~(GRF_CTS|GRF_LMTS);
grp->gr_State |= GRF_FROMLOCAL;
}
> The high will be syncronized, the lows might not depending on your
> expiration you have set on the slave.
With the above patch in place, I don't have to depend on dexpireover and
dexpire.ctl to maintain the low count. It will be pushed from the low
count on my feeders active file.
Thanks very much for talking me through this. I'm quite a happy camper
to have this working.
-j
--
"What is the sound of Perl? Is it not the sound of a | Jason Lavoie
wall that people have stopped banging their heads against?" | jason@mint.net
--Larry Wall in <1992Aug26.184221.29627@netlabs.com> |
Re: dreaderd newgroups help
Author: conrad
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
37 lines
2470 bytes
2470 bytes
Jason Lavoie <jason@mint.net> wrote: > I want my reader to be a slave, right? This should be syncronized with > the feeder server's expiration, no? Why do you want to do that? Are you using INN as your spool for the Diablo reader? Thats the only reason I can think of that you would want to. The problem is dsyncgroups doesnt seem to do this so well > I'm trying to be sure that my active file has the new groups as they are > created on the inn server. I'm also trying to make sure that the > article numbers are the same, so that readers will see the articles that > are available. To me, this means updating the high/low numbers in the > dactive file to correspond with the feeder machine. I played around with this a bit. The best way to do it as I see is to make sure your INN reader box is in sync with the feed and then pause the feed. From the Diablo reader create the initial dactive.kp straight from the INN reader. Then from your INN feeder start up your feeds again and make sure that the Xref stuff is working for creating article numbers on both the INN and Diablo readers. The header feed to dreaderd should take care of control messages. But a regular dbin/dsyncgroups -h feeder -g -D will make sure that groups are the same everywhere. The creation times should be the same or close enough not to worry. The problem with this is that the old articles will be slightly different because of the expiry of INN vs Diablo. So its probably not a good idea to run 1 Diablo reader and another INN reader as a permanent solution. -- |Conrad Juleff (conrad @ is.co.za) |The Internet Solution <All opinions are my own>
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