🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Steven Sporkmann Fri, 30 Aug 2002 10:26
INN / MySQL
#60129
Author: Steven Sporkmann
Date: Fri, 30 Aug 2002 10:26
16 lines
1270 bytes
Hi,

how can i store the newsfiles into an MySQL Database instead off an file ??

--
Steven Sporkmann


Br�ring Informationstechnologie
Gewerbering 4

49393 Lohne
Tel: 04442-910436


Re: INN / MySQL
#60136
Author: Marco d'Itri
Date: Fri, 30 Aug 2002 11:17
10 lines
1206 bytes
steven@broering.de wrote:

>how can i store the newsfiles into an MySQL Database instead off an file ??
You cannot. This would be a very stupid idea.
Search with google if you want to know why.

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *
Re: INN / MySQL
#60130
Author: Steven Sporkmann
Date: Fri, 30 Aug 2002 11:22
24 lines
1889 bytes
I now that it is not fast enough for big news sites.
But i have only 2000 new news on my system, but i need to store it for 3
years (or longer)
so i have a lot of files which make the system very slow and use a lot of
diskspace (inodes)

mfg Steven


"Marco d'Itri" <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> schrieb im Newsbeitrag
news:aknk8e$284$1@wonderland.linux.it...
> steven@broering.de wrote:
>
> >how can i store the newsfiles into an MySQL Database instead off an file
??
> You cannot. This would be a very stupid idea.
> Search with google if you want to know why.
>
> --
> ciao, |
> Marco | * The Internet is full. Go away.  -- Joel Furr *


Re: INN / MySQL
#60131
Author: Steven L. Sesar
Date: Fri, 30 Aug 2002 12:35
42 lines
2469 bytes
Steven Sporkmann wrote:
> I now that it is not fast enough for big news sites.
> But i have only 2000 new news on my system, but i need to store it for 3
> years (or longer)
> so i have a lot of files which make the system very slow and use a lot of
> diskspace (inodes)
> 
> mfg Steven
> 

Your requirements still don't justify pushing your articles into a MySQL 
database. How would the existance of "a lot of files" slow your system 
down? It takes disk space (which is dirt cheap these days), but that's 
about it.

If you need long retention periods for your articles, get yourself a 
bunch of disk space. If you can't justify the upfront cost, then build a 
system that you can add disks to in the future and consider implementing 
RAID-0 (disk concatenation), as you need it.


> "Marco d'Itri" <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> schrieb im Newsbeitrag
> news:aknk8e$284$1@wonderland.linux.it...
> 
>>steven@broering.de wrote:
>>
>>
>>>how can i store the newsfiles into an MySQL Database instead off an file
>>
> ??
> 
>>You cannot. This would be a very stupid idea.
>>Search with google if you want to know why.
>>
>>--
>>ciao, |
>>Marco | * The Internet is full. Go away.  -- Joel Furr *
> 
> 
> 

Re: INN / MySQL
#60133
Author: Russ Allbery
Date: Fri, 30 Aug 2002 16:21
17 lines
1552 bytes
Steven Sporkmann <steven@broering.de> writes:

> how can i store the newsfiles into an MySQL Database instead off an file

You would have to write a new MySQL storage backend that implements the
INN internal storage API.  It's quite possible, although it may be a lot
of work.

I don't think that you'll find many advantages to doing this, but I could
be wrong.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN / MySQL
#60134
Author: Brian Edmonds
Date: Fri, 30 Aug 2002 17:28
57 lines
3933 bytes
"Steven Sporkmann" <steven@broering.de> writes:
> But i have only 2000 new news on my system, but i need to store it for
> 3 years (or longer) so i have a lot of files which make the system
> very slow and use a lot of diskspace (inodes)

You could consider just allocating a bunch of big cycbuffs to it.  I've
got almost three years of one local hierarchy in a single 64MB cycbuff,
and it has yet to roll over once.  If I wished to preserve the content I
could always switch it over to a new cycbuff when it's close to full and
not feed anything new into the current one.  And it takes all of seven
inodes to store all the news articles on my server (98021 as of the last
expire).

# ls -l /news/spool/articles
total 460551
-rw-rw-r--    1 news     news     67108864 Aug 29 20:00 RAAC1
-rw-rw-r--    1 news     news     67108864 Aug 30 10:18 VANLUG1
-rw-rw-r--    1 news     news     67108864 Aug 30 10:17 cyc0
-rw-rw-r--    1 news     news     67108864 Aug 30 10:13 cyc1
-rw-rw-r--    1 news     news     67108864 Aug 30 07:38 cyc2
-rw-rw-r--    1 news     news     67108864 Aug 30 10:17 cyc3
-rw-rw-r--    1 news     news     67108864 Aug 30 10:17 cyc4

# /news/bin/cnfsstat -a
Class FAQS  for groups matching "news.answers"
 Buffer CYC1, size:  64.0 MBytes, position:  25.6 MBytes  28.00 cycles
  Newest: 2002-08-30  3:10:13,    0 days,  7:10:50 ago
  Oldest: 2002-06-25 19:06:37,   65 days, 15:14:26 ago
 Buffer CYC2, size:  64.0 MBytes, position:  18.9 MBytes  28.00 cycles
  Newest: 2002-08-30  7:40:17,    0 days,  2:40:47 ago
  Oldest: 2002-06-24  5:19:44,   67 days,  5:01:20 ago

Class VANLUG  for groups matching "vanlug.*"
 Buffer VANLUG1, size:  64.0 MBytes, position:  51.2 MBytes  0.00 cycles
  Newest: 2002-08-30  8:40:19,    0 days,  1:40:45 ago
  Oldest: 1999-10-23 13:30:56, 1041 days, 20:50:08 ago

Class RAAC  for groups matching "comp.doc.techreports,news.groups.reviews,rec.arts.anime.creative,rec.drugs.announce,rec.music.info,rec.music.reviews"
 Buffer RAAC1, size:  64.0 MBytes, position:  19.7 MBytes  3.00 cycles
  Newest: 2002-08-29 20:10:23,    0 days, 14:10:41 ago
  Oldest: 2001-06-11  8:21:11,  445 days,  1:59:53 ago

Class GWEEP  for groups matching "bofh.*,gweep.*,gweepnet.*,net.*"
 Buffer CYC0, size:  64.0 MBytes, position:  45.3 MBytes  9.00 cycles
  Newest: 2002-08-30 10:10:20,    0 days,  0:10:44 ago
  Oldest: 2002-03-20  8:24:19,  163 days,  0:56:45 ago

Class MISC  for groups matching "*"
 Buffer CYC3, size:  64.0 MBytes, position:  21.0 MBytes  68.00 cycles
  Newest: 2002-08-30 10:20:02,    0 days,  0:01:02 ago
  Oldest: 2002-08-08 22:19:49,   21 days, 12:01:15 ago
 Buffer CYC4, size:  64.0 MBytes, position:  20.2 MBytes  68.00 cycles
  Newest: 2002-08-30 10:20:02,    0 days,  0:01:02 ago
  Oldest: 2002-08-09 10:05:04,   21 days,  0:16:00 ago

Brian.
Re: INN / MySQL
#60139
Author: Charles Nadeau
Date: Sat, 31 Aug 2002 12:20
98 lines
4573 bytes
This is a multi-part message in MIME format.
--------------0D311B24F8DE0F25203387F3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



"Steven L. Sesar" wrote:
> 
> Steven Sporkmann wrote:
> > I now that it is not fast enough for big news sites.
> > But i have only 2000 new news on my system, but i need to store it for 3
> > years (or longer)
> > so i have a lot of files which make the system very slow and use a lot of
> > diskspace (inodes)
> >
> > mfg Steven
> >
> 
> Your requirements still don't justify pushing your articles into a MySQL
> database. How would the existance of "a lot of files" slow your system
> down? It takes disk space (which is dirt cheap these days), but that's
> about it.
> 
> If you need long retention periods for your articles, get yourself a
> bunch of disk space. If you can't justify the upfront cost, then build a
> system that you can add disks to in the future and consider implementing
> RAID-0 (disk concatenation), as you need it.

Steven,

If your only justification is long term storage, you can write a Perl
script (using News::NNTPClient available at:
http://theoryx5.uwinnipeg.ca/mod_perl/cpan-search?filetype=%20distribution%20name%20or%20description;site=ftp.funet.fi;join=and;stem=no;arrange=file;case=clike;download=auto;age=;distinfo=2685),
that you run daily through Cron, that will pump the posts out of the
NNTP server and in a MySQL server running on (preferably) another
machine.
I working on something similar using an NNTP to XML-RPC gateway. The
gateway I am writing is in pre-alpha stage now but I hope to be able to
release something next week-end if I have enough time to work on it this
week. I put news of the development process on
http://radio.weblogs.com/0111823/.
The reason why I am working on it is to be able to bridge INN (or any
NNTP server) and Userland's Radio 8 (http://radio.userland.com/). Radio
8 can interact, through its own object-oriented scripting language, with
anything exposing an XML-RPC interface.
Cheers!

Charles
http://radio.weblogs.com/0111823/

> 
> > "Marco d'Itri" <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> schrieb im Newsbeitrag
> > news:aknk8e$284$1@wonderland.linux.it...
> >
> >>steven@broering.de wrote:
> >>
> >>
> >>>how can i store the newsfiles into an MySQL Database instead off an file
> >>
> > ??
> >
> >>You cannot. This would be a very stupid idea.
> >>Search with google if you want to know why.
> >>
> >>--
> >>ciao, |
> >>Marco | * The Internet is full. Go away.  -- Joel Furr *
> >
> >
> >
--------------0D311B24F8DE0F25203387F3
Content-Type: text/x-vcard; charset=us-ascii;
 name="charles.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Charles Nadeau
Content-Disposition: attachment;
 filename="charles.vcf"

begin:vcard 
n:Nadeau;Charles
tel;cell:+81-90-1368-7492
tel;fax:+81-90-752-6077
tel;home:+81-92-716-8775
tel;work:+852-2847-7481
x-mozilla-html:TRUE
url:http://radio.weblogs.com/0111823
org:Consulate General of Canada in Hong Kong;Trade Division
version:2.1
email;internet:charlesnadeau@hotmail.com
title:Regional System Manager
adr;quoted-printable:;;13th floor, Tower 1=0D=0AExchange Square=0D=0A8, Connaught Place;Central;Hong Kong;;Hong Kong
fn:Charles Nadeau
end:vcard

--------------0D311B24F8DE0F25203387F3--

Re: INN / MySQL
#60215
Author: Charles Nadeau
Date: Wed, 04 Sep 2002 09:18
70 lines
3627 bytes
This is a multi-part message in MIME format.
--------------D8C2CF19A0F1D8AC9B63985B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



Charles Nadeau wrote:
> 
> "Steven L. Sesar" wrote:
> >
> > Steven Sporkmann wrote:
> >
> > If you need long retention periods for your articles, get yourself a
> > bunch of disk space. If you can't justify the upfront cost, then build a
> > system that you can add disks to in the future and consider implementing
> > RAID-0 (disk concatenation), as you need it.
> 
> Steven,
> 
> If your only justification is long term storage, you can write a Perl
> script (using News::NNTPClient available at:
> http://theoryx5.uwinnipeg.ca/mod_perl/cpan-search?filetype=%20distribution%20name%20or%20description;site=ftp.funet.fi;join=and;stem=no;arrange=file;case=clike;download=auto;age=;distinfo=2685),
> that you run daily through Cron, that will pump the posts out of the
> NNTP server and in a MySQL server running on (preferably) another
> machine.
> I working on something similar using an NNTP to XML-RPC gateway. The

Steven,

I finished this program and I released under GPL.
More details there: http://groups.yahoo.com/group/xml-rpc/message/4838
The program is available there:
http://radio.weblogs.com/0111823/2002/09/02.html#a31
Cheers!

Charles
http://radio.weblogs.com/0111823/

> gateway I am writing is in pre-alpha stage now but I hope to be able to
> release something next week-end if I have enough time to work on it this
> week. I put news of the development process on
> http://radio.weblogs.com/0111823/.
--------------D8C2CF19A0F1D8AC9B63985B
Content-Type: text/x-vcard; charset=us-ascii;
 name="charles.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Charles Nadeau
Content-Disposition: attachment;
 filename="charles.vcf"

begin:vcard 
n:Nadeau;Charles
tel;cell:+81-90-1368-7492
tel;fax:+81-90-752-6077
tel;home:+81-92-716-8775
tel;work:+852-2847-7481
x-mozilla-html:TRUE
url:http://radio.weblogs.com/0111823
org:Consulate General of Canada in Hong Kong;Trade Division
version:2.1
email;internet:charlesnadeau@hotmail.com
title:Regional System Manager
adr;quoted-printable:;;13th floor, Tower 1=0D=0AExchange Square=0D=0A8, Connaught Place;Central;Hong Kong;;Hong Kong
fn:Charles Nadeau
end:vcard

--------------D8C2CF19A0F1D8AC9B63985B--

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