Thread View: news.software.nntp
12 messages
12 total messages
Started by Richard Knight
Fri, 25 Oct 2019 14:59
Permanent retention with cycbuff
Author: Richard Knight
Date: Fri, 25 Oct 2019 14:59
Date: Fri, 25 Oct 2019 14:59
51 lines
4390 bytes
4390 bytes
Hi I'm creating an archive server and would like to have indefinite retention with cycbuff/cnfs. As far as I can understand, if the cycbuffs always have enough space then that should be feasible. However when a new batch of articles is posted to the server then a significant portion expire (they don't routinely expire otherwise), even though it seems the cycbuffs have enough space. The articles have any expires headers rewritten/removed, and the limits in expire.ctl and storage.conf look ok. I have eight 2GB cycbuffs and they are all included in one metacycbuff using sequential mode. Below are the outputs from cnfsheadconf and cnfsstat which look like there is more than enough space. If anyone has any advice/suggestions and also generally any tips for running a server with permanent retention then I would be very grateful. Buffer EIGHT, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 3 cycles Meta MAIN, order: 8, current: FALSE, blocksize: 4096 Newest: 2019-10-18 9:52:00, 7 days, 5:53:57 ago Buffer FIVE, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 4 cycles Meta MAIN, order: 5, current: FALSE, blocksize: 4096 Newest: 2019-10-17 19:02:51, 7 days, 20:43:06 ago Buffer FOUR, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 4 cycles Meta MAIN, order: 4, current: FALSE, blocksize: 4096 Newest: 2019-10-11 4:33:01, 14 days, 11:12:56 ago Buffer ONE, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 8 cycles Meta MAIN, order: 1, current: FALSE, blocksize: 4096 Newest: 2019-10-18 13:48:55, 7 days, 1:57:02 ago Buffer SEVEN, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 3 cycles Meta MAIN, order: 7, current: FALSE, blocksize: 4096 Newest: 2019-10-18 5:29:07, 7 days, 10:16:50 ago Buffer SIX, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 4 cycles Meta MAIN, order: 6, current: FALSE, blocksize: 4096 Newest: 2019-10-18 0:11:51, 7 days, 15:34:06 ago Buffer THREE, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 7 cycles Meta MAIN, order: 3, current: FALSE, blocksize: 4096 Newest: 2019-10-10 23:09:14, 14 days, 16:36:43 ago Buffer TWO, len: 2048.00 Mbytes, used: 574.38 Mbytes (28.0%) 7 cycles Meta MAIN, order: 2, current: TRUE, blocksize: 4096 Newest: 2019-10-18 15:22:16, 7 days, 0:23:41 ago Class MAIN for groups matching "*" Buffer ONE, size: 2.00 GBytes, position: 80.0 kBytes 8.00 cycles Newest: 2019-10-18 13:48:55, 7 days, 1:58:08 ago Buffer TWO, size: 2.00 GBytes, position: 574 MBytes 7.28 cycles Newest: 2019-10-18 15:22:16, 7 days, 0:24:47 ago Buffer THREE, size: 2.00 GBytes, position: 80.0 kBytes 7.00 cycles Newest: 2019-10-10 23:09:14, 14 days, 16:37:49 ago Buffer FOUR, size: 2.00 GBytes, position: 80.0 kBytes 4.00 cycles Newest: 2019-10-11 4:33:01, 14 days, 11:14:02 ago Buffer FIVE, size: 2.00 GBytes, position: 80.0 kBytes 4.00 cycles Newest: 2019-10-17 19:02:51, 7 days, 20:44:12 ago Buffer SIX, size: 2.00 GBytes, position: 80.0 kBytes 4.00 cycles Newest: 2019-10-18 0:11:51, 7 days, 15:35:12 ago Buffer SEVEN, size: 2.00 GBytes, position: 80.0 kBytes 3.00 cycles Newest: 2019-10-18 5:29:07, 7 days, 10:17:56 ago Buffer EIGHT, size: 2.00 GBytes, position: 80.0 kBytes 3.00 cycles Newest: 2019-10-18 9:52:00, 7 days, 5:55:03 ago
Re: Permanent retention with cycbuff
Author: Russ Allbery
Date: Fri, 25 Oct 2019 18:21
Date: Fri, 25 Oct 2019 18:21
32 lines
2399 bytes
2399 bytes
Richard Knight <keep_it@nntp.server> writes:
> As far as I can understand, if the cycbuffs always have enough space
> then that should be feasible. However when a new batch of articles is
> posted to the server then a significant portion expire (they don't
> routinely expire otherwise), even though it seems the cycbuffs have
> enough space.
Why are you certain that the cycbuffs have enough space?
> Buffer EIGHT, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 3 cycles
> Meta MAIN, order: 8, current: FALSE, blocksize: 4096
> Newest: 2019-10-18 9:52:00, 7 days, 5:53:57 ago
3 cycles says that the cycbuff has run out of space three times and
articles have therefore been written back at the start of the cycbuff,
overwriting earlier articles. If the cycbuff had never run out of space,
it would be at 1 cycle.
I think the confusing part here is that "used" doesn't mean what it sounds
like it means (which is probably a UI bug). That's actually calculated
based on the free element of the cycbuff header, which points to the next
location in the cycbuff to which an article would be written. That means
that when a cycbuff completely fills, the free pointer is moved back to
the start of the cycbuff, which means that a completely full cycbuff will
show used of 0.0% similar to what you see above.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Permanent retention with cycbuff
Author: bje
Date: Fri, 25 Oct 2019 20:26
Date: Fri, 25 Oct 2019 20:26
24 lines
1513 bytes
1513 bytes
Richard Knight <keep_it@nntp.server> wrote: > If anyone has any advice/suggestions and also generally any tips for > running a server with permanent retention then I would be very grateful. Are you sure you did the math on this? You appear to have 8 2GB buffers. My system primarily takes in text-only english groups and appears to average 50mb a day (http://nntp.ripco.com). So at 50mb a day, it'll take 40 days to fill one buffer (2GB). 8 buffers puts it at 320 days total retention. You aren't even holding a years worth of articles. Why only 16GB of total storage? Still using SCSI drives or something? Counting on my fingers, a 1TB drive should be good for the next 50~60 years. -bruce bje@ripco.com
Re: Permanent retention with cycbuff
Author: Richard Knight
Date: Fri, 25 Oct 2019 21:30
Date: Fri, 25 Oct 2019 21:30
9 lines
1517 bytes
1517 bytes
> Why are you certain that the cycbuffs have enough space? > Are you sure you did the math on this? > Why only 16GB of total storage? Still using SCSI drives or something? OK, summarily then my storage isn't large enough and I didn't understand the usage stats, mainly the the used percent and significance of the number of cycles (which seems obvious now, but evidently I totally overlooked that). Also, no, I did not do the math on this appropriately. I kept adding cycbuffs as the requirements went up, and my misinterpretation of the stats made me think I was doing the right thing. 16GB due to some slightly arcane aspects to do with hosting/backups, although I will review this now. thanks.
Re: Permanent retention with cycbuff
Author: Etian
Date: Sat, 26 Oct 2019 12:37
Date: Sat, 26 Oct 2019 12:37
10 lines
1695 bytes
1695 bytes
On 10/25/19 8:59 AM, Richard Knight wrote: > Hi > I'm creating an archive server and would like to have indefinite retention with cycbuff/cnfs. > As far as I can understand, if the cycbuffs always have enough space then that should be feasible. However when a new batch of articles is posted to the server then a significant portion expire (they don't routinely expire otherwise), even though it seems the cycbuffs have enough space. To use cycbuffs as permanent storage, they should be removed from the metacycbuff lineup after they fill up, while still being listed separately as a cycbuff. You should recompile inn with large file support and use much larger buffers or you will eventually have too many files open.
Re: Permanent retention with cycbuff
Author: bje
Date: Sat, 26 Oct 2019 13:14
Date: Sat, 26 Oct 2019 13:14
27 lines
1772 bytes
1772 bytes
Etian <etian@sonic-news.com> wrote: > To use cycbuffs as permanent storage, they should be removed from the > metacycbuff lineup after they fill up, while still being listed > separately as a cycbuff. You should recompile inn with large file > support and use much larger buffers or you will eventually have too many > files open. I don't know why he just doesn't use tradspool. If he is taking in just non-binary groups, there isn't that much these days to deal with. Like one article every 3 seconds. With tradspool he can easily make backups of the artices and index files for safe keeping. I was using the CNFS route until I ran into a glitch on the disk and ended up trashing the whole thing. Not much in repair tools. Just saying it's easy to tar up /var/spool/news/articles (or whatever) than trying to copy a cycbuff. Not even sure it can be done (dd?). My two cents anyway. -bruce bje@ripco.com
Re: Permanent retention with cycbuff
Author: Julien ÉLIE
Date: Sat, 26 Oct 2019 13:32
Date: Sat, 26 Oct 2019 13:32
35 lines
2682 bytes
2682 bytes
[Richard] >> Buffer EIGHT, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%) 3 cycles >> Meta MAIN, order: 8, current: FALSE, blocksize: 4096 >> Newest: 2019-10-18 9:52:00, 7 days, 5:53:57 ago [Russ] > 3 cycles says that the cycbuff has run out of space three times and > articles have therefore been written back at the start of the cycbuff, > overwriting earlier articles. If the cycbuff had never run out of space, > it would be at 1 cycle. > > I think the confusing part here is that "used" doesn't mean what it sounds > like it means (which is probably a UI bug). Richard, I suggest you to use "cnfsstat -a" instead of "cnfsheadconf". The output you read is an extract of CNFS headers. I believe what you are looking for is the output of cnfsstat. You'll see the position of the next article to write: % cnfsstat -a Class FR for groups matching "fr.*" Buffer FR1, size: 4.00 GBytes, position: 3.51 GBytes 1.88 cycles Newest: 2019-10-26 15:19:16, 0 days, 0:01:48 ago Oldest: 2017-05-01 16:10:55, 907 days, 23:10:09 ago A totally full buffer will show "position: 64.0 kBytes" or something like that. Is it more understandable or should the line be reworded? -- Julien ÉLIE « – Prends un peu de potion magique, Jolitorax ? – Mais ça va être l'heure de l'eau chaude ! » (Astérix)
Re: Permanent retention with cycbuff
Author: yamo'
Date: Sat, 26 Oct 2019 13:41
Date: Sat, 26 Oct 2019 13:41
10 lines
1386 bytes
1386 bytes
Hi, bje@ripco.com a tapoté le 26/10/2019 15:14: > I don't know why he just doesn't use tradspool. On an ext2,3 or 4 file system, tradspool on the full feed will cause some troubles with the inodes... -- Stéphane
Re: Permanent retention with cycbuff
Author: Julien ÉLIE
Date: Sat, 26 Oct 2019 13:42
Date: Sat, 26 Oct 2019 13:42
29 lines
2665 bytes
2665 bytes
Hi Richard, > I'm creating an archive server and would like to have indefinite retention with cycbuff/cnfs. > As far as I can understand, if the cycbuffs always have enough space then that should be feasible. However when a new batch of articles is posted to the server then a significant portion expire (they don't routinely expire otherwise), even though it seems the cycbuffs have enough space. In order to be sure not to overwrite articles, you can also "retire a cycbuff" when full: https://www.eyrie.org/~eagle/software/inn/docs/cycbuff.conf.html "When articles are stored, the cycbuff into which they're stored is saved as part of the article token. In order for INN to retrieve articles from a cycbuff, that cycbuff must be listed in cycbuff.conf. However, if INN should not write to a cycbuff, it doesn't need to be (and shouldn't be) listed in a metacycbuff. This provides an easy way to retire a cycbuff. Just remove it from its metacycbuff, leaving in the cycbuff line, and restart innd (with, for example, ctlinnd xexec innd). No new articles will be put into the cycbuff, but neither will any articles expire from it. After you no longer need the articles in the cycbuff, just remove it entirely from cycbuff.conf. Then all of the articles will appear to have been deleted to INN, and the next nightly expire run will clean up any remaining references to them." -- Julien ÉLIE « Bis repetita placent. » (issu de Horace)
Re: Permanent retention with cycbuff
Author: Richard Knight
Date: Sat, 26 Oct 2019 14:32
Date: Sat, 26 Oct 2019 14:32
10 lines
1368 bytes
1368 bytes
> bje@ripco.com a tapoté le 26/10/2019 15:14: > > I don't know why he just doesn't use tradspool. > > On an ext2,3 or 4 file system, tradspool on the full feed will cause > some troubles with the inodes... Yes basically that, I'm using a virtualised server and not even sure what the underlying fs is, but I have 50 million inodes free, that's ultimately the max number of files I can have, and I use the server for other things as well.
Re: Permanent retention with cycbuff
Author: Richard Knight
Date: Sat, 26 Oct 2019 14:36
Date: Sat, 26 Oct 2019 14:36
6 lines
1063 bytes
1063 bytes
> A totally full buffer will show "position: 64.0 kBytes" or something > like that. > > Is it more understandable or should the line be reworded? I think the wording is ok - yes I do understand the outputs more now, thanks.
Re: Permanent retention with cycbuff
Author: Julien ÉLIE
Date: Sun, 27 Oct 2019 14:17
Date: Sun, 27 Oct 2019 14:17
22 lines
2016 bytes
2016 bytes
> In order to be sure not to overwrite articles, you can also "retire a > cycbuff" when full: > >  https://www.eyrie.org/~eagle/software/inn/docs/cycbuff.conf.html > > "When articles are stored, the cycbuff into which they're stored is > saved as part of the article token. In order for INN to retrieve > articles from a cycbuff, that cycbuff must be listed in cycbuff.conf. > However, if INN should not write to a cycbuff, it doesn't need to be > (and shouldn't be) listed in a metacycbuff." Speaking of retired CNFS buffers, I've noticed that they are not taken into account by cnfsstat output. (Whereas cnfsheadconf does.) Fixed in INN 2.6.4: https://inn.eyrie.org/trac/changeset/10349 -- Julien ÉLIE « Servir Rome d'accord ! Servir de bonnes, pas d'accord ! » (Astérix)
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