🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Stephen R. van den Berg Sat, 04 Sep 1999 00:00
Mixing headerfeed with a normal feed in diablo
#39641
Author: Stephen R. van den Berg
Date: Sat, 04 Sep 1999 00:00
93 lines
4786 bytes
I'm currently optimising newsfeeds to allow for a hybrid feed and
remote spool.  As it seems, we're trying some things that haven't been
done before...

Picture this (all Diablo servers):

Server ext-a:	carries full feed
		does not run dreaderd
		offers partial normalfeed to server local-c
		offers partial headerfeed to server local-c

Server ext-b:	carries full feed
		does not run dreaderd
		offers partial normalfeed to server local-c
		offers partial headerfeed to server local-c

Server local-c:	runs diablo and dreaderd
		receives all four feeds from servers ext-a and ext-b on diablo
		diablo offers partial normalfeed to server sat-d
		diablo offers partial headerfeed to server sat-d
		diablo offers full feed back to ext-a and ext-b
		dreaderd posts to diablo on localhost
		fallback posting to diablo on sat-d, ext-b or ext-a
		dreaderd fetches articles from localhost
		fallback fetching from diablo on sat-d, ext-b or ext-a
		dreaderd does *not* cache fetches from localhost
		dreaderd *does* cache fetches from sat-d, ext-b or ext-a
		runs c-nocem on spool to eliminate spam from the overview
		 files and preload the history with yet-to-arrive spam
		 messageids

Server sat-d:	runs diablo and dreaderd
		receives all four feeds from servers ext-a and ext-b on diablo
		diablo offers full feed back to diablo local-c
		dreaderd posts to diablo on localhost
		fallback posting to diablo on local-c, ext-b or ext-a
		dreaderd fetches articles from localhost
		fallback fetching from diablo on local-c, ext-b or ext-a
		dreaderd does *not* cache fetches from localhost
		dreaderd *does* cache fetches from local-c, ext-b or ext-a

Servers ext-a and ext-b are not under my immediate control.  I.e. they're
running stock diablo versions, I can only determine the diablo.hosts,
dnewsfeeds and dnntpspool.ctl files with regard to the entries for
local-c.  Servers local-c and sat-d  are running my own diablo versions
(and can therefore be patched if necessary).

Now, I'm left with some unresolved issues:

- In order to get c-nocem interfaced, I needed an express-cancel interface
  to dreaderd.  I've so far patched dreaderd to accept a new command:

  	CANCEL <msgid> newsgroup [newsgroup ...]

  I haven't tested this yet, still need to patch c-nocem to use it.  If
  anyone has a better idea, I'm all ears.

- dreaderd still needs to be patched to support a new 't' flag in
  dserver.hosts which implies that articles fetches from a server marked
  with 't' are to be passed transparently, without caching.
  I casually inspected the statemachine in spool.c, it's not quite
  readily apparent what the best spot would be to insert this test.
  Hints appreciated (or better ideas, of course).

- Suppose I have a newsgroup head.test which is fed to local-c from
  ext-a in a headerfeed only.  What happens if dreaderd on local-c
  tries to fetch an article from that group?
  It will first contact diablo on local-c, it should then detect
  that this article, even though it's present, is lacking the body.
  Will it notice this, and then fall-back to fetching the article
  from ext-a?

- Suppose I have a newsgroup head.test which is fed to local-c from
  ext-a in a headerfeed, and which is also fed to local-c from ext-b
  in a normal feed (including body).  Suppose further that a certain
  article is fed from ext-a to local-c first, stored as a header-only
  item, then, a few seconds/minutes later, the same article is being
  offered from ext-b.
  Ideally, local-c would detect that the article being offered is
  already present, but in a header-only format, and, since the
  new offering is a full-article, it will accept the article and
  overrides/overwrites the old article content with the new version.
  Does it?
  If not, does it sound practical to build it in?  I'd wager that the
  only efficient solution to this problem would be reserving a bit
  in the history database to indicate header-only or full-article?
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

To boldly program, where *no* man has programmed before!

Re: Mixing headerfeed with a normal feed in diablo
#39640
Author: Joe Greco
Date: Sat, 04 Sep 1999 00:00
24 lines
1851 bytes
In news.software.nntp article <AXhA3.2198$ok4.237287@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Brad Knowles <brad@shub-internet.org> wrote:
:: In article <7qrmlp$i0u$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den
:: Berg) wrote:
:
::> I'm currently optimising newsfeeds to allow for a hybrid feed and
::> remote spool.  As it seems, we're trying some things that haven't been
::> done before...
:
::     I've read through this whole article a couple of times, and I'm still
:: at a loss to figure out why you're trying to do a hybrid full/header-only
:: feed to a particular server.  Maybe I'm just being dense, but until I can
:: understand that, I doubt I'll be able to help on much of anything else.
:
:Same here.

Looks like I'm in good company, I thought I was just being dense but it gave
me headaches and got me crosseyed trying to determine the goal/problem.
Thought maybe the 110 hours I've spent this week staring at Diablo had
addled my brains...  well, it probably has.

... JG

Re: Mixing headerfeed with a normal feed in diablo
#39645
Author: Joe Greco
Date: Sat, 04 Sep 1999 00:00
117 lines
5861 bytes
In news.software.nntp article <7qsibf$5qf$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
:Brad Knowles <brad@shub-internet.org> wrote:
:>    I've read through this whole article a couple of times, and I'm still
:>at a loss to figure out why you're trying to do a hybrid full/header-only
:>feed to a particular server.  Maybe I'm just being dense, but until I can
:>understand that, I doubt I'll be able to help on much of anything else.
:
:Hmmm..., I thought that would have been self evident...  evidently not :-).
:Let me try and clarify the reasoning:
:
:We're dealing with a limited bandwidth situation here, but multihomed.
:So, in order to make the factors involved a bit more tangible, I'll
:describe a reduced but similar sample.
:
:Suppose there would have been the following five newsgroups:
:
:alt.bin		Many large postings, not well read
:alt.binero	Many large postings, well read by many users
:comp.mail	Normal discussions read by all users
:alt.sex		Many small postings
:news.groups	Important announcements necessary for administration
:
:Server ext-a and ext-b carry all five groups.
:
:Network topology looks roughly like this:
:
:ext-a ---------\       /--------------- ext-b ------ Internet
: |       2Mb/s  \     /    128Kb/s
: |		 \   /
: |		local-c
: |		   \
:Internet	    \----------------- sat-d
:		           512Kb/s
:
:As you can see, local-c has two separate backbone connections to the
:Internet.  The line bandwidths are different.  sat-d only has a connection
:to local-c.
:
:The point is that I want users at local-c and at sat-d to have access
:to a full feed of news (or at least, it should appear to be a full feed).
:But I also want to make sure that the backbone connections are not
:saturated with news.  Yet, redundancy should be used to make sure the
:feed is not missing articles, and the access should be made as swiftly
:as possible.
:
:Now, with this topology and these requirements in mind, I'd normally end
:up with the following ideal configuration:
:
:ext-a -> local-c normal feed:	comp.mail
:				alt.binero
:				alt.sex
:				news.groups
:
:ext-a -> local-c header feed:	alt.bin
:
:ext-b -> local-c normal feed:	comp.mail
:				news.groups
:
:ext-b -> local-c header feed:	alt.bin
:				alt.binero
:				alt.sex
:
:local-c -> sat-d normal feed:	comp.mail
:				alt.binero
:				news.groups
:
:local-c -> sat-d header feed:	alt.bin
:				alt.sex
:
:Full feeds from sat-d -> local-c, and from local-c to ext-a and ext-b
:
:This would maximise reading speed (often read newsgroups are in the
:real feed), still allow all articles to be seen and read (using the
:header only feeds), and provide for full redundancy (if ext-a would
:have a problem, ext-b takes over completely, albeit a bit slower,
:because many of the articles will receive as header-only).
:As soon as ext-a recovers, I'd like the articles that (intermediately)
:have been received as header-only from ext-b, to be replaced by their
:full counterparts as they will arrive from ext-a.
:
:Incidentally, the different header/full variations are of course dependent
:on available bandwidth on that particular line segment.

Yick.  You can probably do it.  However, it seems messy and complicated,
two factors which usually scream "wrong design" to me.

You _can_ feed Diablo with a header only feed, but I think it's almost
invariably a mistake to try what you're doing:  It would mean that Diablo
would need to know that it could only feed those out to feeds that are
marked "header-only", something Diablo doesn't know about right now in
the main process.  It also means that ARTICLE <x> retrievals would need to
fail on header-only articles, else your dreaderd's would see interesting 
behaviours when accessing an article that was on spool as header-only.  
This seems like a plan with lots of inherent evilness, particularly if you
mess up and start pushing a feed containing some header-only articles back
to Usenet peers.

You wouldn't pull in enough headers over the 128Kb link to make all the
extra effort worth it...  so, if you're not going to have good redundancy,
just do away with it entirely and be happy.  Rely on the caching of
dreaderd to manage your "often accessed news" and save on bandwidth; you
WILL move the articles across the link one way or another.

I think if it were me, I'd elect ext-a and ext-b as the two Diablo machines
(which is already the case for you).  Then pick ext-a as your header feed
master, leaving ext-b entirely out of the picture.  local-c and sat-d run
dreaderd only and can either number themselves or use ext-a's article 
numbering.  sat-d can then use dreaderd on local-c for article retrieval, 
which in turn uses ext-a as its primary and ext-b as a backup spool store.

If you're insistent on making Diablo do this, make _everything_ a header
only feed, running Diablo on local-c (no need at all on sat-d) and use
dreaderd's cache mode for your actual "spool".

... JG

Re: Mixing headerfeed with a normal feed in diablo
#39648
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
18 lines
1547 bytes
Brad Knowles <brad@shub-internet.org> wrote:
>In article <37d1c685$0$450@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
>wrote:
>> Looks like I'm in good company, I thought I was just being dense but it gave
>> me headaches and got me crosseyed trying to determine the goal/problem.

>    Now I know I'm in good company.  When Joe can't grok a particular news
>server configuration, especially something related to Diablo, then I
>*know* that I don't have a snowball's chance of understanding it....

Flimsy excuses, of course.  Admit it, you're all overworked (I know I am :-).
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39649
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
90 lines
3965 bytes
Brad Knowles <brad@shub-internet.org> wrote:
>    I've read through this whole article a couple of times, and I'm still
>at a loss to figure out why you're trying to do a hybrid full/header-only
>feed to a particular server.  Maybe I'm just being dense, but until I can
>understand that, I doubt I'll be able to help on much of anything else.

Hmmm..., I thought that would have been self evident...  evidently not :-).
Let me try and clarify the reasoning:

We're dealing with a limited bandwidth situation here, but multihomed.
So, in order to make the factors involved a bit more tangible, I'll
describe a reduced but similar sample.

Suppose there would have been the following five newsgroups:

alt.bin		Many large postings, not well read
alt.binero	Many large postings, well read by many users
comp.mail	Normal discussions read by all users
alt.sex		Many small postings
news.groups	Important announcements necessary for administration

Server ext-a and ext-b carry all five groups.

Network topology looks roughly like this:

ext-a ---------\       /--------------- ext-b ------ Internet
 |       2Mb/s  \     /    128Kb/s
 |		 \   /
 |		local-c
 |		   \
Internet	    \----------------- sat-d
		           512Kb/s

As you can see, local-c has two separate backbone connections to the
Internet.  The line bandwidths are different.  sat-d only has a connection
to local-c.

The point is that I want users at local-c and at sat-d to have access
to a full feed of news (or at least, it should appear to be a full feed).
But I also want to make sure that the backbone connections are not
saturated with news.  Yet, redundancy should be used to make sure the
feed is not missing articles, and the access should be made as swiftly
as possible.

Now, with this topology and these requirements in mind, I'd normally end
up with the following ideal configuration:

ext-a -> local-c normal feed:	comp.mail
				alt.binero
				alt.sex
				news.groups

ext-a -> local-c header feed:	alt.bin

ext-b -> local-c normal feed:	comp.mail
				news.groups

ext-b -> local-c header feed:	alt.bin
				alt.binero
				alt.sex

local-c -> sat-d normal feed:	comp.mail
				alt.binero
				news.groups

local-c -> sat-d header feed:	alt.bin
				alt.sex

Full feeds from sat-d -> local-c, and from local-c to ext-a and ext-b

This would maximise reading speed (often read newsgroups are in the
real feed), still allow all articles to be seen and read (using the
header only feeds), and provide for full redundancy (if ext-a would
have a problem, ext-b takes over completely, albeit a bit slower,
because many of the articles will receive as header-only).
As soon as ext-a recovers, I'd like the articles that (intermediately)
have been received as header-only from ext-b, to be replaced by their
full counterparts as they will arrive from ext-a.

Incidentally, the different header/full variations are of course dependent
on available bandwidth on that particular line segment.

Does this clarify matters?  Or am I trying to explain the wrong thing(s)?
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

To boldly program, where *no* man has programmed before!

Re: Mixing headerfeed with a normal feed in diablo
#39650
Author: Brad Knowles
Date: Sun, 05 Sep 1999 00:00
46 lines
3080 bytes
In article <7qthlv$c9$1@odysseus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van
den Berg) wrote:

> Incidentally, I do not necessarily think that the configuration I'm
> striving for is going to be so uncommon in the future.  Given the
> pace at which usenet is growing, it might well be the case that
> in the future, ever more feeds are split in header and full feeds,
> of which every organisation decides what it wants to receive in header
> mode and what in full mode.

    If the world was running Diablo or other software that operated like
this, that might be true.  However, given that most of the rest of the
world runs INN, Highwind products, and whatever crap Micro$loth may care
to toss in for free, I doubt that this kind of configuration will become
all that common.


    That said, I do not believe that it would necessarily be a Bad
Thing(tm) for Diablo to have these kinds of capabilities.  If one site
needs something like this, it stands to reason that others might benefit
from it as well.

    However, I would not want to see the code become more fragile or
noticably slower as a result of these changes.  Were that the case, I'd be
strongly inclined to not fold this code back in to the official
distribution.

> Actually, on the topic of "complicated": I don't think the setup
> I'm trying to use is more complicated (it might even be considered less
> complicated) than many of the current setups which jump through all
> kinds of hoops to ensure split feeds for small and large articles and
> special cancel-feeds to get them ahead etc.

    There's complexity in terms of how articles are selected for being
fed, and there's complexity in terms of how articles are stored (and
therefore how the server behaves when faced with incomplete articles).

    I believe that the first part is relatively well understood with
respect to Diablo (and most other news servers), I'm not convinced that
the same is true with regards to the latter.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Mixing headerfeed with a normal feed in diablo
#39651
Author: Brad Knowles
Date: Sun, 05 Sep 1999 00:00
15 lines
1513 bytes
In article <37d1c685$0$450@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
wrote:

> Looks like I'm in good company, I thought I was just being dense but it gave
> me headaches and got me crosseyed trying to determine the goal/problem.

    Now I know I'm in good company.  When Joe can't grok a particular news
server configuration, especially something related to Diablo, then I
*know* that I don't have a snowball's chance of understanding it....

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Mixing headerfeed with a normal feed in diablo
#39653
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
28 lines
2120 bytes
Brad Knowles <brad@shub-internet.org> wrote:
>    Perhaps I'm missing something, but it was my understanding that when
>you did a header-only feed, that also generated the X-Ref: headers, so
>that a dreaderd machine could not only get the message-ids but also the
>article numbers, then put all this information into its overview database,
>etc....  Since you're talking about two separate header feeds from two
>separate news servers, I would think that the recipient machine would tend
>to get very confused.

Well, I'm not an authority on Diablo (yet? :-), but as far as I understood
it, the typical application for a header-feed is to feed it to
a dreaderd which then (at the choice of the receiving dreaderd end)
either uses or overrides the xref fields.
I.e. on local-c, I simply use "slave off" and active on to merge the
different feeds (headerfeed or not).  Bogus Xrefs will be stripped.

>would retrieve articles from local-c.  You then let caching on local-c and
>sat-d do all the work.

The easy and clean way out, yes, but, as stated in the other sub-thread,
it doesn't fulfill the bandwidth balancing requirements.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39654
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
95 lines
5749 bytes
Brad Knowles <brad@shub-internet.org> wrote:
>In article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den
>Berg) wrote:
>> Once Diablo supports the separation, it's not complicated at all.

>    It's more complicated than any other Diablo configuration I've ever
>heard of.  It's also much more complicated than any other news server
>configuration I've ever heard of (outside of AOL, that is ;-).

Well, I did start this thread by speculatively stating that we seem
to be trying something which hasn't been tried before...
Actually, this is a given, because if what I were trying to do would
have been done already, I'd most likely not need to come here for advice :-).

>> I don't see any real problems patching diablo to perform this, I just
>> wanted to make sure that there wasn't some mechanism in place which took
>> (or was already supposed to take) care of these things.

>    Well, if you're willing to add the code necessary to make this work,
>and you're willing to contribute that work back, it might be considered

Yes on both counts (it seems like the world has changed sadly that this isn't
expected to be the default anymore (this is just a random observation,
nothing personal)).

>for inclusion in the main code base for Diablo.  However, I'd really want
>to see what the code changes are that would be required to actually get
>something like this working, once you've got all the bugs worked out.

Well, given the current feedback and my own ideas, I think the changes
are rather minimal.  The biggest change will be the extra bit per entry
in the history file.

>> I agree that this would be simpler, but it would also make load balancing
>> the four backbone connections impossible.  Since bandwidth costs
>> are prohibitive, load-balancing bandwidth is an absolute must.

>    Unfortunately, unrealistic constraints placed on the system because of
>network bandwidth issues make the situation far more complex than it needs
>to be.  They certainly take this out of the realm of what is possible
>today with Diablo, and at least make it much more difficult to achieve
>what you want.

Maybe I'm an optimist, but as soon as I'd seen the headerfeed feature of
Diablo emerge, I could see a system like this working just fine.
Considering the, IMO minor, enhancements necessary in Diablo to get
this working, it seems to be well within reach (unless Matt steps in
and reveals a logic flaw/complication I hadn't thought of so far).

I mean, the configuration syntax of Diablo almost completely supports
the desired setup already.  The only thing I need to do is make sure Diablo
can handle the entered configuration.

>    The fact that you're having to jump through so many hoops to make the
>system perform in this particular way may seriously impede your ability to
>make the system perform as it should, and increases the probability that
>you'll find yourself off in some sort of inescapable electronic eddy of
>the digital ocean, constraining your ability to get the code incorporated
>into the mainstream version of Diablo and thus forcing you to either
>continue to port your changes along as Diablo evolves or to permanently
>fork off your own private version.

>    I don't think anyone can really say all that much more until we see
>the code changes required to make this work in a production environment.

Given the fact that I think the changes are minor, I'll take the risk
and patch diablo.  You can then inspect the changes needed and Matt
can decide if it's release material or not.  Unless he vetos now already
(which I'd find rather unlikely given the fact that the changes merely
make Diablo more robust).

Incidentally, I do not necessarily think that the configuration I'm
striving for is going to be so uncommon in the future.  Given the
pace at which usenet is growing, it might well be the case that
in the future, ever more feeds are split in header and full feeds,
of which every organisation decides what it wants to receive in header
mode and what in full mode.  There'll be large hub-servers which still
carry a full feed, and increasingly more enterprise servers which then
receive a mix of header and full.  If my patches make it in, this
would be a configuration which would simply work as expected, instead
of the apparently current behaviour where Diablo most likely gets
utterly confused when presented with a mixed feed.

Actually, on the topic of "complicated": I don't think the setup
I'm trying to use is more complicated (it might even be considered less
complicated) than many of the current setups which jump through all
kinds of hoops to ensure split feeds for small and large articles and
special cancel-feeds to get them ahead etc.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39656
Author: Brad Knowles
Date: Sun, 05 Sep 1999 00:00
55 lines
3641 bytes
In article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den
Berg) wrote:

> As far as "complicated" is concerned, I'd grant you "convoluted",
> but, complicated, not really.  The convoluted has its origins in the
> fact that it's the most optimal solution for the constraints presented.
> Once Diablo supports the separation, it's not complicated at all.

    It's more complicated than any other Diablo configuration I've ever
heard of.  It's also much more complicated than any other news server
configuration I've ever heard of (outside of AOL, that is ;-).

> There is not much inherent evilness.   Three things need to be
> taken care of, then all other problems will take care of themselves:

    [ ... deletia ... ]

> I don't see any real problems patching diablo to perform this, I just
> wanted to make sure that there wasn't some mechanism in place which took
> (or was already supposed to take) care of these things.

    Well, if you're willing to add the code necessary to make this work,
and you're willing to contribute that work back, it might be considered
for inclusion in the main code base for Diablo.  However, I'd really want
to see what the code changes are that would be required to actually get
something like this working, once you've got all the bugs worked out.

> I agree that this would be simpler, but it would also make load balancing
> the four backbone connections impossible.  Since bandwidth costs
> are prohibitive, load-balancing bandwidth is an absolute must.

    Unfortunately, unrealistic constraints placed on the system because of
network bandwidth issues make the situation far more complex than it needs
to be.  They certainly take this out of the realm of what is possible
today with Diablo, and at least make it much more difficult to achieve
what you want.

    The fact that you're having to jump through so many hoops to make the
system perform in this particular way may seriously impede your ability to
make the system perform as it should, and increases the probability that
you'll find yourself off in some sort of inescapable electronic eddy of
the digital ocean, constraining your ability to get the code incorporated
into the mainstream version of Diablo and thus forcing you to either
continue to port your changes along as Diablo evolves or to permanently
fork off your own private version.


    I don't think anyone can really say all that much more until we see
the code changes required to make this work in a production environment.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Mixing headerfeed with a normal feed in diablo
#39658
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
48 lines
2977 bytes
In article <brad-0509992238340001@dialup745.brussels2.skynet.be>,
Brad Knowles <brad@shub-internet.org> wrote:
>In article <7qthlv$c9$1@odysseus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van
>den Berg) wrote:

>world runs INN, Highwind products, and whatever crap Micro$loth may care
>to toss in for free, I doubt that this kind of configuration will become
>all that common.

Possible.  Then again, if it's not made possible, we'll never know.

>    However, I would not want to see the code become more fragile or
>noticably slower as a result of these changes.  Were that the case, I'd be
>strongly inclined to not fold this code back in to the official
>distribution.

Well:
- I can guarantee that it doesn't slow down the code, because I just
  found out that Diablo already supports it.
- And, even if Diablo wouldn't have supported it, it would not make
  the code more fragile, it would make the code more robust (which,
  undoubtedly was the reason it's in the code already now).

>> Actually, on the topic of "complicated": I don't think the setup
>> I'm trying to use is more complicated (it might even be considered less
>> complicated) than many of the current setups which jump through all
>> kinds of hoops to ensure split feeds for small and large articles and
>> special cancel-feeds to get them ahead etc.

>    There's complexity in terms of how articles are selected for being
>fed, and there's complexity in terms of how articles are stored (and
>therefore how the server behaves when faced with incomplete articles).

>    I believe that the first part is relatively well understood with
>respect to Diablo (and most other news servers), I'm not convinced that
>the same is true with regards to the latter.

Ok, this means that the word "complicated" apparently doesn't quite
cover what you mean.  The setup is not more complicated than other
more usual setups.  It's just that it's not as well understood because
it's not a common occurrance (sp?).
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39659
Author: Brad Knowles
Date: Sun, 05 Sep 1999 00:00
40 lines
2728 bytes
In article <7qsibf$5qf$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den
Berg) wrote:

> This would maximise reading speed (often read newsgroups are in the
> real feed), still allow all articles to be seen and read (using the
> header only feeds), and provide for full redundancy (if ext-a would
> have a problem, ext-b takes over completely, albeit a bit slower,
> because many of the articles will receive as header-only).

    Perhaps I'm missing something, but it was my understanding that when
you did a header-only feed, that also generated the X-Ref: headers, so
that a dreaderd machine could not only get the message-ids but also the
article numbers, then put all this information into its overview database,
etc....  Since you're talking about two separate header feeds from two
separate news servers, I would think that the recipient machine would tend
to get very confused.

> Does this clarify matters?  Or am I trying to explain the wrong thing(s)?

    I think I understand a bit better, but it seems a rather complex
configuration to me.


    I think I'd be inclined to have ext-a and ext-b as the external diablo
servers (making sure they exchange full feeds between them) with local-c
and sat-d as dreaderd machines, and generate the header feed from ext-a to
local-c and from local-c to sat-d (or maybe from ext-a to both local-c and
sat-d).

    From there, local-c could contact ext-a first for articles and then
fall back to ext-b (if necessary), or you could probably arrange other
sorts of article retrieval load-balancing between them.  Of course, sat-d
would retrieve articles from local-c.  You then let caching on local-c and
sat-d do all the work.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Mixing headerfeed with a normal feed in diablo
#39660
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
42 lines
2800 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>You _can_ feed Diablo with a header only feed, but I think it's almost
>invariably a mistake to try what you're doing:  It would mean that Diablo
>would need to know that it could only feed those out to feeds that are
>marked "header-only", something Diablo doesn't know about right now in
>the main process.  It also means that ARTICLE <x> retrievals would need to
>fail on header-only articles, else your dreaderd's would see interesting 
>behaviours when accessing an article that was on spool as header-only.  
>This seems like a plan with lots of inherent evilness, particularly if you
>mess up and start pushing a feed containing some header-only articles back
>to Usenet peers.

I did some further digging in Diablo.  Guess what I found:

            if (headerOnly)
	        h.exp |= EXPF_HEADONLY;

All over the place.  Even in the history file already.  Seems like someone
(Matt?) thought ahead.  Many thanks.

Well, this seems to take care of the forced failures of ARTICLE retrievals
of header-only articles.  As it seems, this almost guarantees that the
basic functionality of my configuration should already work.

In order to optimise performance some minor tweaks might still be in order:
- Checking to see if full articles take precedence over header only ones
  which have already arrived.
- Adding the capability to mark servers to be non-cacheable in dserver.hosts.
- Allow for a uucp-batcher that uses dreaderd as a fall-back when it
  encounters a head-only article, or, alternately, change the uucp-batcher to
  use dreadart and fix dreadart to fall back to using dreaderd when it
  encounters a head-only article.

"You just drank a potion of 'Increase luck'; you feel luckier."
(It has been a while since I've played it, please excuse any inaccuracies :-).
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39662
Author: Joe Greco
Date: Sun, 05 Sep 1999 00:00
122 lines
7452 bytes
In news.software.nntp article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:>In news.software.nntp article <7qsibf$5qf$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
:>:This would maximise reading speed (often read newsgroups are in the
:>:real feed), still allow all articles to be seen and read (using the
:>:header only feeds), and provide for full redundancy (if ext-a would
:>:have a problem, ext-b takes over completely, albeit a bit slower,
:>:because many of the articles will receive as header-only).
:>:As soon as ext-a recovers, I'd like the articles that (intermediately)
:>:have been received as header-only from ext-b, to be replaced by their
:>:full counterparts as they will arrive from ext-a.
:
:>:Incidentally, the different header/full variations are of course dependent
:>:on available bandwidth on that particular line segment.
:
:>Yick.  You can probably do it.  However, it seems messy and complicated,
:>two factors which usually scream "wrong design" to me.
:
:Concerning "messy"...  I don't think that's necessarily true.
:I just want to have the freedom to throw around full and header
:only feeds at will.  Diablo should  be able to sort it out.
:To me such functionality sounds "orthogonal".

To me such functionality sounds "Yick."

:As far as "complicated" is concerned, I'd grant you "convoluted",
:but, complicated, not really.  The convoluted has its origins in the
:fact that it's the most optimal solution for the constraints presented.
:Once Diablo supports the separation, it's not complicated at all.
:
:>You _can_ feed Diablo with a header only feed, but I think it's almost
:>invariably a mistake to try what you're doing:  It would mean that Diablo
:>would need to know that it could only feed those out to feeds that are
:>marked "header-only", something Diablo doesn't know about right now in
:>the main process.  It also means that ARTICLE <x> retrievals would need to
:>fail on header-only articles, else your dreaderd's would see interesting 
:>behaviours when accessing an article that was on spool as header-only.  
:>This seems like a plan with lots of inherent evilness, particularly if you
:>mess up and start pushing a feed containing some header-only articles back
:>to Usenet peers.
:
:There is not much inherent evilness.   Three things need to be
:taken care of, then all other problems will take care of themselves:
:a. In the history database, an extra bit needs to be reserved to
:   store full/header-only state of the article.
:   Once this has been done, diablo will *know* if an article is complete
:   or not.

It'd know this anyways, although potentially not before fetching the
article from storage.

:b. The ARTICLE command needs to check for this bit and refuse if the
:   body is missing (sounds easy enough).
:c. For efficiency, we'd need a header-feed directive in the dnewsfeeds
:   file already which then sanity checks every article's history entry
:   to see if the bodies are all there before letting an  article out of
:   a feed which is a normal feed.
:
:And, as a bonus, to get maximum spool and bandwidth leverage, the incoming
:history check for havethis etc. needs to take into account that if
:it is accepting a normal feed, that it should pretend it doesn't have
:an  article which is marked as header-only in the history database.

YICK.  This gets REAL ugly...  you've just introduced the chance for dups
on spool, which means that you now have an ordering dependence if you need
to do a history rebuild from spool.  I'm not even sure that it would be safe
to do this without some careful changes of the history code; I'm sure that
it bails at the first match (even if expired).

:I don't see any real problems patching diablo to perform this, I just
:wanted to make sure that there wasn't some mechanism in place which took
:(or was already supposed to take) care of these things.

Yeah, uh, dreaderd.

:>You wouldn't pull in enough headers over the 128Kb link to make all the
:>extra effort worth it...  so, if you're not going to have good redundancy,
:>just do away with it entirely and be happy.  Rely on the caching of
:>dreaderd to manage your "often accessed news" and save on bandwidth; you
:>WILL move the articles across the link one way or another.
:
:The example presented is a simplified, yet logical equivalent of the
:real-world situation.  In reality the involved bandwidths are different,
:and the number of connections is even greater (four backbone connections,
:actually).  Using a mix and match feed in the real situation *is*
:beneficiary in this case.
:
:>I think if it were me, I'd elect ext-a and ext-b as the two Diablo machines
:>(which is already the case for you).  Then pick ext-a as your header feed
:>master, leaving ext-b entirely out of the picture.  local-c and sat-d run
:>dreaderd only and can either number themselves or use ext-a's article 
:>numbering.  sat-d can then use dreaderd on local-c for article retrieval, 
:>which in turn uses ext-a as its primary and ext-b as a backup spool store.
:
:>If you're insistent on making Diablo do this, make _everything_ a header
:>only feed, running Diablo on local-c (no need at all on sat-d) and use
:>dreaderd's cache mode for your actual "spool".
:
:I agree that this would be simpler, but it would also make load balancing
:the four backbone connections impossible.  Since bandwidth costs
:are prohibitive, load-balancing bandwidth is an absolute must.

Dreaderd happily does round-robin load balancing, and can be trivially
tweaked into doing other forms of load balancing.

You still haven't explained why it is so much more beneficial to have some
articles on spool and some not.  I find it hard to believe that your user
base reads a majority of any part of Usenet...  and even if they do, using
dreaderd to cache is only a minor additional cost of bandwidth.  This could
be completely recovered with a different type of patch which would be more
generally useful (IMHO):  when fetching the remote article, send a "BODY"
instead of an "ARTICLE" command, and fill in the local cache with the local
stored header and the remote body.  This now uses the same amount of
bandwidth as your solution (in the worst case) or less (in the case I'd bet
on), and is also an obvious optimization that is generally useful.

I think you're trying to make this much more complex than it needs to be.
And in my experience, that's usually a Really Bad Thing.

... JG

Re: Mixing headerfeed with a normal feed in diablo
#39663
Author: Brad Knowles
Date: Sun, 05 Sep 1999 00:00
17 lines
1483 bytes
In article <7qrmlp$i0u$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den
Berg) wrote:

> I'm currently optimising newsfeeds to allow for a hybrid feed and
> remote spool.  As it seems, we're trying some things that haven't been
> done before...

    I've read through this whole article a couple of times, and I'm still
at a loss to figure out why you're trying to do a hybrid full/header-only
feed to a particular server.  Maybe I'm just being dense, but until I can
understand that, I doubt I'll be able to help on much of anything else.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Mixing headerfeed with a normal feed in diablo
#39664
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
93 lines
5854 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>In news.software.nntp article <7qsibf$5qf$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
>:This would maximise reading speed (often read newsgroups are in the
>:real feed), still allow all articles to be seen and read (using the
>:header only feeds), and provide for full redundancy (if ext-a would
>:have a problem, ext-b takes over completely, albeit a bit slower,
>:because many of the articles will receive as header-only).
>:As soon as ext-a recovers, I'd like the articles that (intermediately)
>:have been received as header-only from ext-b, to be replaced by their
>:full counterparts as they will arrive from ext-a.

>:Incidentally, the different header/full variations are of course dependent
>:on available bandwidth on that particular line segment.

>Yick.  You can probably do it.  However, it seems messy and complicated,
>two factors which usually scream "wrong design" to me.

Concerning "messy"...  I don't think that's necessarily true.
I just want to have the freedom to throw around full and header
only feeds at will.  Diablo should  be able to sort it out.
To me such functionality sounds "orthogonal".

As far as "complicated" is concerned, I'd grant you "convoluted",
but, complicated, not really.  The convoluted has its origins in the
fact that it's the most optimal solution for the constraints presented.
Once Diablo supports the separation, it's not complicated at all.

>You _can_ feed Diablo with a header only feed, but I think it's almost
>invariably a mistake to try what you're doing:  It would mean that Diablo
>would need to know that it could only feed those out to feeds that are
>marked "header-only", something Diablo doesn't know about right now in
>the main process.  It also means that ARTICLE <x> retrievals would need to
>fail on header-only articles, else your dreaderd's would see interesting 
>behaviours when accessing an article that was on spool as header-only.  
>This seems like a plan with lots of inherent evilness, particularly if you
>mess up and start pushing a feed containing some header-only articles back
>to Usenet peers.

There is not much inherent evilness.   Three things need to be
taken care of, then all other problems will take care of themselves:
a. In the history database, an extra bit needs to be reserved to
   store full/header-only state of the article.
   Once this has been done, diablo will *know* if an article is complete
   or not.
b. The ARTICLE command needs to check for this bit and refuse if the
   body is missing (sounds easy enough).
c. For efficiency, we'd need a header-feed directive in the dnewsfeeds
   file already which then sanity checks every article's history entry
   to see if the bodies are all there before letting an  article out of
   a feed which is a normal feed.

And, as a bonus, to get maximum spool and bandwidth leverage, the incoming
history check for havethis etc. needs to take into account that if
it is accepting a normal feed, that it should pretend it doesn't have
an  article which is marked as header-only in the history database.

I don't see any real problems patching diablo to perform this, I just
wanted to make sure that there wasn't some mechanism in place which took
(or was already supposed to take) care of these things.

>You wouldn't pull in enough headers over the 128Kb link to make all the
>extra effort worth it...  so, if you're not going to have good redundancy,
>just do away with it entirely and be happy.  Rely on the caching of
>dreaderd to manage your "often accessed news" and save on bandwidth; you
>WILL move the articles across the link one way or another.

The example presented is a simplified, yet logical equivalent of the
real-world situation.  In reality the involved bandwidths are different,
and the number of connections is even greater (four backbone connections,
actually).  Using a mix and match feed in the real situation *is*
beneficiary in this case.

>I think if it were me, I'd elect ext-a and ext-b as the two Diablo machines
>(which is already the case for you).  Then pick ext-a as your header feed
>master, leaving ext-b entirely out of the picture.  local-c and sat-d run
>dreaderd only and can either number themselves or use ext-a's article 
>numbering.  sat-d can then use dreaderd on local-c for article retrieval, 
>which in turn uses ext-a as its primary and ext-b as a backup spool store.

>If you're insistent on making Diablo do this, make _everything_ a header
>only feed, running Diablo on local-c (no need at all on sat-d) and use
>dreaderd's cache mode for your actual "spool".

I agree that this would be simpler, but it would also make load balancing
the four backbone connections impossible.  Since bandwidth costs
are prohibitive, load-balancing bandwidth is an absolute must.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39665
Author: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
119 lines
6756 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>In news.software.nntp article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
>:Concerning "messy"...  I don't think that's necessarily true.
>:I just want to have the freedom to throw around full and header
>:only feeds at will.  Diablo should  be able to sort it out.
>:To me such functionality sounds "orthogonal".

>To me such functionality sounds "Yick."

Without the functionality, people would be able to break things badly
(by accident, or on purpose) by mixing header and normal feeds (and they
can do so now already).
With the functionality, things won't break if they do.
Anyway, the point is moot, since I just discovered that Diablo already
supports it.

>:There is not much inherent evilness.   Three things need to be
>:taken care of, then all other problems will take care of themselves:
>:a. In the history database, an extra bit needs to be reserved to
>:   store full/header-only state of the article.
>:   Once this has been done, diablo will *know* if an article is complete
>:   or not.

>It'd know this anyways, although potentially not before fetching the
>article from storage.

The current code already knows (apparently).

>:And, as a bonus, to get maximum spool and bandwidth leverage, the incoming
>:history check for havethis etc. needs to take into account that if
>:it is accepting a normal feed, that it should pretend it doesn't have
>:an  article which is marked as header-only in the history database.

>YICK.  This gets REAL ugly...  you've just introduced the chance for dups
>on spool, which means that you now have an ordering dependence if you need
>to do a history rebuild from spool.  I'm not even sure that it would be safe
>to do this without some careful changes of the history code; I'm sure that
>it bails at the first match (even if expired).

You're overreacting, I think.  Consider the following:
- I'm almost never recovering history from spool, so if I'd simply lose
  that functionality when I mix feeds, I won't miss much.
- Due to the fully redundant setup, I can easily switch dreaders to
  other servers and simply start with an empty history in case of disaster.
- Even if the history recovery picks up the header-only article part,
  nothing is really lost.  It means that people fetching this article
  will have to wait until dreaderd fetches it from elsewhere.  The integrity
  of the system and all the articles is still guaranteed.

So, yes, it's a minor problem.  Not much to worry about even when not
fixed, not impossible to fix either (actually, I wouldn't be surprised
if it can easily be fixed, because the history code *knows* if it's a
header only article and is able to do the override in recovery as
well as in reception mode).

Then again, this is just a minor optimisation, which doesn't affect
the concept.

>:I don't see any real problems patching diablo to perform this, I just
>:wanted to make sure that there wasn't some mechanism in place which took
>:(or was already supposed to take) care of these things.

>Yeah, uh, dreaderd.

Actually, diablo, as I just found out.

>:I agree that this would be simpler, but it would also make load balancing
>:the four backbone connections impossible.  Since bandwidth costs
>:are prohibitive, load-balancing bandwidth is an absolute must.

>Dreaderd happily does round-robin load balancing, and can be trivially
>tweaked into doing other forms of load balancing.

>You still haven't explained why it is so much more beneficial to have some
>articles on spool and some not.  I find it hard to believe that your user
>base reads a majority of any part of Usenet...  and even if they do, using
>dreaderd to cache is only a minor additional cost of bandwidth.  This could

Well, there still are these things to consider:
- I can't control the expiration speed on the external diablo feeders.
  We want longer times for most groups than what they offer.
  For binary groups, what they offer is fine.
- There is such a thing as peaks in bandwidth usage.  The nice thing
  about a regular feed is that it acts as a cache-preloader.  I.e. the
  newsfeed for most regular groups runs all day, taking up a more or less
  fixed amount of bandwidth on all of the leased lines to the Internet.
  So we know we take a penalty on these lines, but it's roughly constant
  and 24 hours a day.  Now, when the users come in, they generate peaks,
  most of these peaks are absorbed by the local newsspool.
  If we were to use dreaderd caching only, without normal feed, these
  peaks would get much larger due to all articles needing to be fetched
  from the external servers.

>be completely recovered with a different type of patch which would be more
>generally useful (IMHO):  when fetching the remote article, send a "BODY"
>instead of an "ARTICLE" command, and fill in the local cache with the local
>stored header and the remote body.  This now uses the same amount of
>bandwidth as your solution (in the worst case) or less (in the case I'd bet
>on), and is also an obvious optimization that is generally useful.

Yes, it allows for dreaderd to use an arbitrary diablo server as a "local"
cache.  I'm all for this change (eliminates duplicate caching if your
diablo server is close enough).

>I think you're trying to make this much more complex than it needs to be.
>And in my experience, that's usually a Really Bad Thing.

I fully agree that making things more complex than necessary is a RBT(tm).
What I don't really see, is how the setup I'm trying to create is
supposed to be complex.  It seems natural to me.
How is it more complex than the convoluted setups which create different
feeds for large, small, cancel and control articles?
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"Real Life?  I've played that game.  The plot stinks but the
 graphics are awesome."

Re: Mixing headerfeed with a normal feed in diablo
#39666
Author: Joe Greco
Date: Sun, 05 Sep 1999 00:00
22 lines
1810 bytes
In news.software.nntp article <7qtgde$bk$1@odysseus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
:Brad Knowles <brad@shub-internet.org> wrote:
:>    Perhaps I'm missing something, but it was my understanding that when
:>you did a header-only feed, that also generated the X-Ref: headers, so
:>that a dreaderd machine could not only get the message-ids but also the
:>article numbers, then put all this information into its overview database,
:>etc....  Since you're talking about two separate header feeds from two
:>separate news servers, I would think that the recipient machine would tend
:>to get very confused.

Not quite Brad.

In standalone mode, you feed dreaderd with a unique stream of articles.  It
numbers them.

In Xref mode, you feed dreaderd with a potentially nonunique stream of
articles.  The Xrefs must be identical however (think: feeding from a
master and backup).  Somebody else worries about the numbering.

... JG

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