🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Alistair Happencross Fri, 29 Aug 2003 09:10
INN+suck as transparent cache?
#66591
Author: Alistair Happencross
Date: Fri, 29 Aug 2003 09:10
27 lines
2012 bytes
I want to set up a news cache with INN and suck.

I checked out NNTPCache, but it seems as though it won't let me set
limits on the cache size in an appropriate way for my configuration.

Therefore, I'm wondering if INN can be configured so that it's
transparent to the news client, in much the same way as Squid is
transparent to a web browser.  I envisage something like this:

* Point the news client to localhost:119 (or something similar) and
  point INN+suck to my ISP's news server.

* INN presents a full list of newsgroups available on my ISP's news
  server, even though only a small fraction of those groups are
  currently cached.

* When entering any group, INN+suck automatically updates the overview
  for that group, on the fly.

* When reading any message, INN+suck automatically downloads that
  message from the ISP's server if that message is not already cached.

Is this sort of setup practical?

Thanks in advance.

Alistair.
Re: INN+suck as transparent cache?
#66592
Author: Frank Slootweg
Date: Fri, 29 Aug 2003 10:20
34 lines
2633 bytes
Alistair Happencross <alistair_happencross@hotmail.com> wrote:
> I want to set up a news cache with INN and suck.
[deleted]
> I envisage something like this:
> 
> * Point the news client to localhost:119 (or something similar) and
>   point INN+suck to my ISP's news server.
> 
> * INN presents a full list of newsgroups available on my ISP's news
>   server, even though only a small fraction of those groups are
>   currently cached.
> 
> * When entering any group, INN+suck automatically updates the overview
>   for that group, on the fly.
> 
> * When reading any message, INN+suck automatically downloads that
>   message from the ISP's server if that message is not already cached.
> 
> Is this sort of setup practical?

  I do not know (if newer versions of) INN has facilities/'hooks' for
this, but I did something similar with some home made scripts.

  Each non-sucked group had a dummy article explaining that that group
was not carried at the moment, but that it would be automatically added
by reading the article. A script processed news.log to catch newly read
non-carried groups and updated sucknewsrc and deleted the dummy article.
Another script did the reverse, if a group was not read for X days, the
group was no longer sucked and the dummy article was reposted.

  The most 'difficult' part was to make sure that the dummy articles did
not escape from my server to other servers/Usenet. I managed that by
putting a dummy host in the Path: entry and excluding that host in my
newsfeeds file.
Re: INN+suck as transparent cache?
#66593
Author: Jeffrey M. Vinocur
Date: Fri, 29 Aug 2003 10:44
46 lines
2604 bytes
In article <8811f961.0308290110.782439cf@posting.google.com>,
Alistair Happencross <alistair_happencross@hotmail.com> wrote:
>
>Therefore, I'm wondering if INN can be configured so that it's
>transparent to the news client, in much the same way as Squid is
>transparent to a web browser.

With one caveat, which is that INN will never know what news
server your client originally wanted.  In other words, it's not
really transparent the same way an http proxy can be configured
to intercept anything on port 80.

But it sounds like LeafNode is exactly what you want -- except
for perhaps the cache expiration stuff.  It already does the
automatically-decide-what-to-cache thing.


>* INN presents a full list of newsgroups available on my ISP's news
>  server, even though only a small fraction of those groups are
>  currently cached.

Sure, perhaps actsyncd can help with keeping the list up to date.


>* When entering any group, INN+suck automatically updates the overview
>  for that group, on the fly.
>
>* When reading any message, INN+suck automatically downloads that
>  message from the ISP's server if that message is not already cached.

Well, INN doesn't have support for downloading headers first and
articles later.  But other than that, you can do this in two
ways:

- Have something check the logs for group access and add them to
  the list for next time.  (This is essentially leafnode.)

- Use the Python per-group-entry-hooks to actually run suck every
  time a user enters a new group.  (This is essentially
  nntpcache.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN+suck as transparent cache?
#66595
Author: Alistair Happencross
Date: Sat, 30 Aug 2003 02:43
29 lines
2002 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message news:<binaqh$caj$2@puck.litech.org>...

> With one caveat, which is that INN will never know what news
> server your client originally wanted.  In other words, it's not
> really transparent the same way an http proxy can be configured
> to intercept anything on port 80.

Aaah, I hadn't thought of that.  This will be a problem.

> But it sounds like LeafNode is exactly what you want -- except
> for perhaps the cache expiration stuff.  It already does the
> automatically-decide-what-to-cache thing.

Is LeafNode able to deal with the above-mentioned multiple server
problem?

> >* INN presents a full list of newsgroups available on my ISP's news
> >  server, even though only a small fraction of those groups are
> >  currently cached.
> 
> Sure, perhaps actsyncd can help with keeping the list up to date.

Is there an appropriate hook for running actsync at suitable times,
e.g. when requesting the client requests the active file?

Thanks for the advice.

Alistair.
Re: INN+suck as transparent cache?
#66596
Author: Jeffrey M. Vinocur
Date: Sun, 31 Aug 2003 06:14
32 lines
2443 bytes
In article <8811f961.0308291843.2d7d8f9f@posting.google.com>,
Alistair Happencross <alistair_happencross@hotmail.com> wrote:
>
>Is LeafNode able to deal with the above-mentioned multiple server
>problem?

Not that I'm aware of.

It's impossible to do this within NNTP itself, because nowhere in
the client/server communication does the client indicate which
server it wants to talk to.  Now, whatever software is
intercepting all the traffic to port 119 does of course know what
IP address the client was trying to contact, so in principle you
*could* have this work -- but I'm not aware of anyone having done
that.


>Is there an appropriate hook for running actsync at suitable times,
>e.g. when requesting the client requests the active file?

I'm not sure if there's a hook for that per se, but it would
probably suffice to update it when the client first connected
(since generally people don't re-download the list
mid-connection).  Although to be honest, I'm not sure you even
need to worry about this -- newsgroups aren't created on all
servers at exactly the same time in the first place, so a small
delay (e.g. if you run actsync every hour) after which all of the
articles will still appear...pah, no problem.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN+suck as transparent cache?
#66598
Author: Bernt Hansson
Date: Sun, 31 Aug 2003 22:07
17 lines
1602 bytes
Alistair Happencross wrote:

> I want to set up a news cache with INN and suck.
> 
> Alistair.

Have a look at this

A multi-server, multi-connections-per-server Usenet news sucking mechanism.
Feeds articles to a local news server. Powerful filtering capability. 
Runs continuously as a quasi-daemon.

http://multisuck.sourceforge.net/

Don't know if this is what you are looking for, but there it is.

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