Thread View: news.software.nntp
5 messages
5 total messages
Started by Daniel Weber
Sun, 29 Mar 2009 14:47
[INN] 437 Duplicate
Author: Daniel Weber
Date: Sun, 29 Mar 2009 14:47
Date: Sun, 29 Mar 2009 14:47
14 lines
1689 bytes
1689 bytes
Hello, checking my logs, I found a large amount of "437 Duplicate" entries. As far as I understand the code, those entries are produced by the function ARTpost, when it finds the message id of the article to be posted is already found in the history. Shouldn't the CHECK-command preceeding the deliverung TAKETHIS-command already ensure, that the message id is not present in my history? Bye, Daniel PS: INN 2.4.5 on Linux 2.6.26
Re: [INN] 437 Duplicate
Author: Jeffrey M. Vinocur
Date: Sun, 29 Mar 2009 14:57
Date: Sun, 29 Mar 2009 14:57
35 lines
2568 bytes
2568 bytes
In article <gqo1ll$gh3$1@solani.org>, Daniel Weber <dw2007@news.solani.org> wrote: > >checking my logs, I found a large amount of "437 Duplicate" entries. As >far as I understand the code, those entries are produced by the function >ARTpost, when it finds the message id of the article to be posted is >already found in the history. > >Shouldn't the CHECK-command preceeding the deliverung TAKETHIS-command >already ensure, that the message id is not present in my history? In principle, yes[*], but if you have multiple peers on fast connections, it's possible that near-simultaneous CHECKs take place, all receive affirmitive responses, and then the article is sent multiple times. [*] There is the following caveat in the RFC (although I don't think this behavior is widely implemented): The client MAY send articles via TAKETHIS without first querying the server with CHECK. The client SHOULD NOT send every article in this fashion unless explicitly configured to do so by the site administrator based on out-of-band information. However, the client MAY use an adaptive strategy where it initially sends CHECK commands for all articles, but switches to using TAKETHIS without CHECK if most articles are being accepted (over 95% acceptance might be a reasonable metric in some configurations). If the client uses such a strategy, it SHOULD also switch back to using CHECK on all articles if the acceptance rate ever falls much below the threshold. -- Jeffrey M. Vinocur jeff@litech.org
Re: [INN] 437 Duplicate
Author: Ray Banana
Date: Sun, 29 Mar 2009 15:04
Date: Sun, 29 Mar 2009 15:04
12 lines
1674 bytes
1674 bytes
Thus spake Daniel Weber <dw2007@news.solani.org> > Shouldn't the CHECK-command preceeding the deliverung TAKETHIS-command > already ensure, that the message id is not present in my history? Yes, it should. If you see an unusual number of duplicates, please check your inn_status log for peers that send articles without checking (no-check mode). -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: [INN] 437 Duplicate
Author: Daniel Weber
Date: Sun, 29 Mar 2009 15:39
Date: Sun, 29 Mar 2009 15:39
11 lines
1795 bytes
1795 bytes
Ray Banana schrieb: > Yes, it should. If you see an unusual number of duplicates, please check > your inn_status log for peers that send articles without checking > (no-check mode). The causing really seems not to send CHECK commands for all articles and it seems to have another problem, too, because his connection always vanishes after four minutes. Thanks (also to Jeffrey), Daniel
Re: [INN] 437 Duplicate
Author: Julien ÉLIE
Date: Sun, 29 Mar 2009 15:46
Date: Sun, 29 Mar 2009 15:46
79 lines
5558 bytes
5558 bytes
Hi Jeffrey,
> In principle, yes[*], but if you have multiple peers on fast
> connections, it's possible that near-simultaneous CHECKs take
> place, all receive affirmitive responses, and then the article is
> sent multiple times.
Normally, the first peer will receive 238 (send article to be
transferred) and the second peer 431 (do not transfer but try
again later).
But depending on the implementation of the news server (shared
list of message-IDs between processes for instance), simultaneous
CHECKs might answer 238 to both of them.
> [*] There is the following caveat in the RFC (although I don't
> think this behavior is widely implemented):
>
> The client MAY send articles via TAKETHIS without first querying the
> server with CHECK. The client SHOULD NOT send every article in this
> fashion unless explicitly configured to do so by the site
> administrator based on out-of-band information. However, the client
> MAY use an adaptive strategy where it initially sends CHECK commands
> for all articles, but switches to using TAKETHIS without CHECK if
> most articles are being accepted (over 95% acceptance might be a
> reasonable metric in some configurations). If the client uses such a
> strategy, it SHOULD also switch back to using CHECK on all articles
> if the acceptance rate ever falls much below the threshold.
At least INN does that. I do not know whether other news servers also
implement that behaviour.
According to the innfeed.conf man page:
no-check-high
This key requires a floating-point number which must be in the
range [0.0, 100.0]. When running transmitting with the streaming
commands, innfeed attempts an optimization called ``no-CHECK''
mode. This involves not asking the peer if it wants the article,
but just sending it. This optimization occurs when the percent-
age of the articles the peer has accepted gets larger than this
number. If this value is set to 100.0, then this effectively
turns off no-CHECK mode, as the percentage can never get above
100.0. If this value is too small, then the number of articles
the peer rejects will get bigger (and your bandwidth will be
wasted). A value of 95.0 usually works pretty well. NOTE: In
innfeed 0.9.3 and earlier this value was in the range [0.0,
9.0].
no-check-low:
This key requires a floating-point number which must be in the
range [0.0, 100.0), and it must be smaller that the value for
no-check-high. When running in no-CHECK mode, as described
above, if the percentage of articles the remote accepts drops
below this number, then the no-CHECK optimization is turned off
until the percentage gets above the no-check-high value again.
If there is small difference between this and the no-check-high
value (less than about 5.0), then innfeed may frequently go in
and out of no-CHECK mode. If the difference is too big, then it
will make it harder to get out of no-CHECK mode when necessary
(wasting bandwidth). Keeping this to between 5.0 and 10.0 less
than no-check-high usually works pretty well.
no-check-filter
This is a floating point value representing the time constant,
in articles, over which the CHECK / no-CHECK calculations are
done. The recommended value is 50.0 which will implement an IIR
filter of time constant 50. This roughly equates to making a
decision about the mode over the previous 50 articles. A higher
number will result in a slower response to changing percentages
of articles accepted; a lower number will result in a faster
response.
--
Julien ÉLIE
« Love is when you look into someone's eyes, and see everything you need. »
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