🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Sven Weise Fri, 03 Apr 2009 06:09
Issue with sendinpaths, shipped with inn
#80508
Author: Sven Weise
Date: Fri, 03 Apr 2009 06:09
27 lines
1904 bytes
Hello,

I just noticed that sendinpath will just report 14 - and not what it IMHO
should 30 - Days per default.
The shipped version has the following lines of interrest:
---
report=30
keep=14
[...]
# Make report from (up to) $report days of dumps
LOGS=`find . -name 'inpaths.*' ! -size 0 -mtime -$report -print`
[...]
# remove dumps older than $keep days
find . -name 'inpaths.*' -mtime +$keep -exec rm '{}' \;
---
So $keep is the days to keep the dump files. But if there are only 14 days
worth of pathdata from the dumps, there will only be 14 days reported. Even
if "report=30" suggest that it will (try to) report 30 days. Should'n booth
be equally or $keep one more than report? Or am I wrong here? Could this
correct someone at the distributed version, please?


cu,
Sven
-- 
Waldorf:  You know, they are calling this show a runaway hit.
Statler:  Yeah, when ever it comes on, you wanna run away!
Re: Issue with sendinpaths, shipped with inn
#80510
Author: Julien ÉLIE
Date: Fri, 03 Apr 2009 07:52
61 lines
3588 bytes
Hi Sven,

> I just noticed that sendinpath will just report 14 - and not what it IMHO
> should 30 - Days per default.
>
> The shipped version has the following lines of interrest:
> ---
> report=30
> keep=14

It is also what the official version has on top1000:
    http://www.top1000.org/ninpaths-3.1.1.tar.gz


> So $keep is the days to keep the dump files. But if there are only 14 days
> worth of pathdata from the dumps, there will only be 14 days reported. Even
> if "report=30" suggest that it will (try to) report 30 days. Should'n booth
> be equally or $keep one more than report? Or am I wrong here?

I think that the script works fine the way it used to be run.

"Historically, it only occured once a month.  Now that most Usenet feeds are
realtime, we could probably find interesting figures in daily stats."

"Just set up a cron job to compute the stats every month, or even every day/week.
Sending stats every day is an interesting option, because full feeds today mean
big path logfiles, parsing and clearing them daily is often valuable.  It also
helps computing pertinent daily stats."

When stats were sent each month, these variables make sense:  we send the 30
last days and we keep the 14 last days (so that not to remove everything).
Well, when the months is 31-day long, there is a loss...

Now that the stats can be sent more frequently, something may be changed.


> Could this correct someone at the distributed version, please?

The ninpaths man page says:
"Once per month, run the sendinpaths script, which collects the dumps,
makes a report, and then deletes the old dumps."


There are a few things to change in INN (especially regarding documentation)
in order to do what you want.  The scripts are currently consistent with
the documentation.

When run every day, shouldn't only the stats of the previous day be sent?
(and not for the 30 last days?)
Shouldn't $report and $keep match the frequency of the cron which runs sendinpaths?
It is what I understand from the top1000 web site.

Then maybe we would need options like "sendinpaths -r 30 -k 14" so that it
could be easier to change these values?

-- 
Julien ÉLIE

« Vita breuis, ars longa, occasio praeceps,
  experimentum pericolosum, iudicium difficile. » (Hippocrate) 
Re: Issue with sendinpaths, shipped with inn
#80512
Author: D. Stussy
Date: Sat, 04 Apr 2009 01:09
44 lines
2795 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gr4fb0$dt2$1@news.trigofacile.com...
> > I just noticed that sendinpath will just report 14 - and not what it
IMHO
> > should 30 - Days per default.
> >
> > The shipped version has the following lines of interrest:
> > ---
> > report=30
> > keep=14
> ...

I use these values and send once daily:

keep=6
report=7


The value of having report > keep is if/when your news server crashes, it's
more likely to be able to report the data that occurred after the last
sending.

Remember that although you report what you see, your own ranking is based
on what others report; your report doesn't contribute to your own ranking -
only the ranking of others.

Before anything is officially changed, a definitive answer from the
person/group running the top1000.org domain should be considered.  Daily
processing does occur, but daily or weekly sending vs. monthly sending
appears to be left to the personal choice of the news admins.

Note:  A report period of 30 and sending of monthly may omit a day for
those months with 31 days.

In the past, I've also thought about whether sending the resulting data via
e-mail is the best method - vs. the alternative of having a special
newsgroup to post it to so everyone can share it and generate their own map
of Usenet (like was once done), but decided that so few hosts display
graphs (of the information they have), a full bidirectional digraph would
be too much information.  However, it would be nice if the top 1000 site
also published the raw data monthly.  We know (or can know) our inflows but
don't always know our best outflow paths.

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