🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Joe Greco Thu, 13 Jan 2000 00:00
Re: Diablo problems and questions
#43274
Author: Joe Greco
Date: Thu, 13 Jan 2000 00:00
109 lines
5462 bytes
In news.software.nntp article <BBsf4.4521$v31.417082@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:So, I am trying t set up front end reader boxen.
:
:Others have done this, so I am trying.  How can I fail? :)
:
:First, I can't seem to master the dexpire.ctl file.
:
:Here is what I want:
:
:	visi.*,mn.* groups to never expire

I don't know that that's possible.  The overview system is mildly cyclic in
design, last I looked, and the only way to do this would be to make sure
that the overview size is substantially larger than the maximum number of
posts that you'd have.  This is _hard_ with Diablo.  :-/

Note:  Diablo does seem to have a 65536 message per group limit.  I never
bothered checking to see what the logic behind that was, I think it may be
an arbitrary limit.

:	alt.* < 32K in size to be about 10-14 days
:	alt.* > 32K in size to be about 5 days
:	big 8 to be about 25-30 days
:	everything else to be 10-14 days
:
:I can't seem to do this no matter what I try.

Are you using "xNNN" to set the maximum number of days?  Diablo uses this
exclusively for overview (despite comments about FreeSpaceTarget expiration,
which it doesn't actually have).

:As to my questions:
:
:	in dexpire.ctl, the 'a' flag lets you set the initial size of
:	the group according to the samples.  This doesn't seem to work
:	and to get it to 'grow', I must run dexpreover on a regular
:	basis until it reaches a normal size.  This is annoying in
:	that I know approximately what size each group will get to
:	based on my current reader server and I would like to have
:	that work right from the start.  Since you can't edit the
:	overview files in place because other processes have it open,
:	the only way to actually resize the overviews is to stop the
:	server, run dexpireover, start the server, repeat every couple
:	hours for a couple days.
:
:	I have 2 machines synced together by having a third diablo
:	server running master and issuing the numbers.  The thing is,
:	the 2 servers get out of sync with each other because of the
:	problem listed above.

What does "out of sync" mean?  That they may not have the same starting
number?  I've never found this to be an issue.

I too have had some excitement trying to get "a" to work.  Every time I
run into one of these little config file things that works differently
than documented, I usually track it back to twisty compatibility logic
(or pre-config-file code) in Matt's stuff.  I ran into this with the
history size in diablo.config, for example, I really _did_ want a 64m
table.

I think in the case of MaxArts, I decided that it really did the wrong
thing in the event that you want to start out large.  The dexpireover
runs will gleefully adjust it much lower, since the group starts out
empty, which basically kills the whole point.  This is exactly the wrong
thing to do in the event of a group which might experience bursty and
rather high volume traffic during those bursts.  The admin who is trying
to tune for that scenario is much smarter than the code, which should not
second-guess such a directive.  This is a bug that should be fixed, but
I think I didn't have any real good ideas when I looked at it, short of
adding something like a ForcedMinimumSize field to the overview data file,
or breaking some of the library functions a bit.

I've also found that dexpireover will happily oscillate between two values
for a group if you decide to run it several times in a row.  :-/

One thing I can definitely say I despise about Diablo is the carefully
structured lib system that makes it a real $#@&$ to make minor changes
that were easy to do under things like INN...  :-(

:Anyone recode the authentication model for Diablo yet?  This is a
:biggy for me but I can leave customers pointing to the current reader
:box for some time but I would so much rather let the front end servers
:take the load.  I don't care if it is flat file or RADIUS, I just want
:a working authentication system, ala Typhoon :)

Hmm?  The flat file stuff works fine, although it might not scale to a
large number of users.

:Any suggestions as to how to configure the reader processes for a
:medium number of users per machine?
:
:I would like to handle 300-500 clients per machine (2 machines today,
:more in the future).
:
:Right now it is configured as such:
:
:	readerforks 15
:	readderthreads 30
:	readerdns 24
:
:Anyone have a reason to change that around some?  Maybe more 'forks'
:and less 'threads'?

Yeah, try reversing them.  And you shouldn't need so many DNS processes.
I run 20 on a machine configured to handle 2000 clients.

... JG

Re: Diablo problems and questions
#43314
Author: Russell Vincent
Date: Fri, 14 Jan 2000 00:00
36 lines
2106 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote:
> How can I set it up for 10 different user names with unknown source
> addresses to authenticate?

Although not an elegant solution, a cursory glance at the code seems
to indicate that lines with the same IP range, but different user/pass
combinations should do the trick. I haven't tried it myself. e.g:

IP:10.1.1.*	rpa  user=user1 pass=pass1
IP:10.1.1.*	rpa  user=user2 pass=pass2

It appears as if dreader.hosts is checked each time an authinfo
command is used.

I also have a radius authentication addon in the pipeline and will
be cleaning it up for submission now that I am more familiar with
the code and know the best place to put it. I have spent quite a
lot of time hacking on the code recently and have a bunch of patches
to submit as soon as I sift out my local-only mods.

> As to the DNS processes:

[ snip usage of all dns tasks ]

> Maybe 20 is a better number.

I suspect (again, not verified) that dreaderd will cycle through
all the dns processes sequentually. i.e: it won't necessarily use
the same one all the time. That is why you see them all used at
some time. I know the feeder processes work this way, so I guess the
DNS processes will be the same/similar.

 -Russell


Re: Diablo problems and questions
#43323
Author: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
20 lines
1455 bytes
In article <387ea64f$0$1405@news.execpc.com>, Joe Greco wrote:
>Note:  Diablo does seem to have a 65536 message per group limit.  I never
>bothered checking to see what the logic behind that was, I think it may be
>an arbitrary limit.

I think that's just the maximum overview size you can have initially.
It can then grow beyond that; experimentally, alt.nocem.misc on my box
has 96955 articles with valid XOVER data.

>:Anyone recode the authentication model for Diablo yet? [...]
>Hmm?  The flat file stuff works fine, although it might not scale to a
>large number of users.

As far as I can tell, the dreader.hosts file only allows specifying
one user/password pair per ip/host/wildcard, which seems somewhat
suboptimal..

-- Nickolai Zeldovich.

Re: Diablo problems and questions
#43329
Author: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
18 lines
1493 bytes
In article <85nqf2$4a9$1@wave.pipex.net>, Russell Vincent wrote:
>Although not an elegant solution, a cursory glance at the code seems
>to indicate that lines with the same IP range, but different user/pass
>combinations should do the trick.

Looking at DnsTest() in dreaderd/dns.c, it seems like it just copies
the username and password upon the first match for the ip/host, and
sets DF_AUTHREQUIRED. Subsequently when authinfo is sent, it simply
compares them against the previously copied values rather than reading
dreader.hosts again.

It might be possible to relpace the user/password pair with a list of
possible usernames/passwords, but a more general/extensible solution
would be nice :-)

-- Nickolai Zeldovich.

Re: Diablo problems and questions
#43341
Author: Russell Vincent
Date: Fri, 14 Jan 2000 00:00
24 lines
1893 bytes
Nickolai Zeldovich <kolya@mit.edu> wrote:
> Looking at DnsTest() in dreaderd/dns.c, it seems like it just copies
> the username and password upon the first match for the ip/host, and
> sets DF_AUTHREQUIRED. Subsequently when authinfo is sent, it simply
> compares them against the previously copied values rather than reading
> dreader.hosts again.

Hmmm ... I read that it does re-read dreader.hosts for authinfo, but
also does break out of the loop on the first IP/host match. A little
shifting of logic might make my original idea work (if needauth, then
don't break and if user/pass match, then reset needauth and DF_AUTHREQUIRED).
It will make scans of the file take longer if authinfo is required,
although the worst case is similar to an unauthorised IP anyway.

Some kind of external file check would probably be a neater solution,
though.  :-)

Thanks for the correction on the '-a' option for dexpireover. I really
must take a closer look at it.  :-)

 -Russell


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