Article View: news.software.nntp
Article #13396ANNOUNCE: multi-threading nnrpd, proxying and caching too
From: Jef Poskanzer
Date: Wed, 18 Dec 1996 00:00
Date: Wed, 18 Dec 1996 00:00
37 lines
2447 bytes
2447 bytes
I've written a replacement nnrpd in Java. It handles arbitrary
numbers of readers in a single process - that's very easy to
do in Java. It does all database accesses through a rigorously
defined API. The package includes three different implementations
of the API - a local file version, equivalent to current nnrpd;
a proxy version that talks to a remote nnrpd; and a multiplexing
version that dispatches different groups to different sub-databases.
Actually the local implementation isn't done yet, so it only runs in
proxy mode so far. But that's ok, I think that's probably the way many
sites will want to run it anyway. Currently, big sites typically have
one feeder machine running inn only, exchanging news with peers and
feeding to local reader machines. On the readers you have inn again,
and lots of nnrpd processes, which use up all the memory and thrash
the machine to death.
With a multi-threading proxy, the feeder would run inn and a few
regular nnrpds. The reader machines would run the multi-threading
nnrpd, accepting requests from user-agents and forwarding to the
regular nnrpds on the feeder machine. Each reader machine would run
only one nnrpd, caching a few hundred MB of articles in memory, serving
hundreds of users.
http://www.acme.com/java/software/Package-Acme.Nnrpd.html
Your best bet for installing it is to fetch the full Acme.tar.Z kit and
unpack the whole thing. Then set your CLASSPATH to that directory and
try running "java Acme.Nnrpd.Nnrpd -help". You should get a usage
message. If you try it out please let me know any results, I've mostly
done correctness testing so far, very little performance testing.
---
Jef
Jef Poskanzer jef@acme.com http://www.acme.com/jef/
"But that trick never works!" -- Rocket J. Squirrel
Technical Details
Message-ID:
<59amc0$t4f@shellx.best.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <59amc0$t4f@shellx.best.com> Subject: ANNOUNCE: multi-threading nnrpd, proxying and caching too Date: Wed, 18 Dec 1996 00:00:00 +0000 From: Jef Poskanzer <jef@acme.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 204864943 Distribution: inet Sender: jef@best.com Organization: Paratheo-Anametamystikhood Of Eris Esoteric Reply-to: Jef Poskanzer <jef@acme.com> Newsgroups: news.software.nntp