Re: NNTPC: two or more nntpcache sharing the same cache directory...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



George Dimitriadis <dimitria@forthnet.gr> writes:

> Probably not possible...but would be nice....many proxies to this
> in order to save space (instead of using ICP)....

There's no reason to presume that nfs is going to be more efficient than
nntpcache natively, so the only reason you want to do this is to distribute
load.

nnptcache can share the cache, but you will need to do this by creating
a symlink from the `local' nntpcache cachedir to the shared cache dir for
each upstream news-server. The reason you need to do this, is that some
other state is saved in the cache dir (stats, history file etc).

e.g, orginally (excuse the 132 col format):

root@nntpcache1:/usr/local/var/nntpcache# ls -F
VERSION                         cache.history                   cache.history.pag               nntpcache.pid.DEFAULT:119
cache.base                      cache.history.dir               news.vicnet.net.au./            nntpcache.stats

root@nntpcache2:/usr/local/var/nntpcache# ls -F
VERSION                         cache.history                   cache.history.pag               nntpcache.pid.DEFAULT:119
cache.base                      cache.history.dir               news.vicnet.net.au./            nntpcache.stats

nntpcache2 after merge:

root@nntpcache2:/usr/local/var/nntpcache# ls -F
VERSION                         cache.history                   cache.history.pag               nntpcache.pid.DEFAULT:119
cache.base                      cache.history.dir               news.vicnet.net.au.@            nntpcache.stats

root@nntpcache2:/usr/local/var/nntpcache# ls -l news.vicnet.net.au.
-rw-r--r--  1 news  news     4276 Jul 13 04:57 news.vicnet.net.au. -> /nfs/nntpcache2/usr/local/var/nntpcache/news.vicnet.net.au.

You should also configure all but one of the nntpcache machines to have infinite expiry, for obvious reasons.

Cheers,
Julian.


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux