Thread View: news.software.nntp
6 messages
6 total messages
Started by James Ray
Wed, 18 Jan 2006 11:55
Feeding up-streams and down-streams
Author: James Ray
Date: Wed, 18 Jan 2006 11:55
Date: Wed, 18 Jan 2006 11:55
21 lines
2072 bytes
2072 bytes
Not sure how to go about this at all, being new to INN and all... I am wondering how it is possible to do the following news feeding; I have two up streams (who I want to sent articles back up to) I have four down streams (who send articles to me) down-stream1 sends me all news groups, as does down-stream2. down-stream3 however sends me a few groups of which I only want ds3.* the same is true for down-stream4 but the group I want is ds4.* Now the problem, I want to feed back up to down-stream1 and down-stream2 all the local posts I get for groups that aren't ds3.* and ds4.* I also want to send down-stream3 ds1.* that down-stream1 sends me, as well as anything posted to its own ds3.* group. The same is true for down-stream4. Sorry if this is rather confusing and strange but I have absolutely no idea how to go about this using innfeed and the newsfeeds file. Thanks for any help you can offer.
Re: Feeding up-streams and down-streams
Author: Jeffrey M. Vinocur
Date: Wed, 18 Jan 2006 12:26
Date: Wed, 18 Jan 2006 12:26
23 lines
1677 bytes
1677 bytes
In article <pan.2006.01.18.11.55.51.256822@pethippo.co.uk>, James Ray <jamesr.nntp-200601@pethippo.co.uk> wrote: > >I have two up streams (who I want to sent articles back up to) This you configure in newsfeeds/innfeed.conf. >I have four down streams (who send articles to me) This you configure in incoming.conf. >Sorry if this is rather confusing and strange but I have absolutely no >idea how to go about this using innfeed and the newsfeeds file. There is good documentation and very detailed examples for all of these files. Can you show us what you've tried? -- Jeffrey M. Vinocur jeff@litech.org
Re: Feeding up-streams and down-streams
Author: James Ray
Date: Wed, 18 Jan 2006 14:23
Date: Wed, 18 Jan 2006 14:23
77 lines
3430 bytes
3430 bytes
On Wed, 18 Jan 2006 12:26:26 +0000, Jeffrey M. Vinocur wrote:
> In article <pan.2006.01.18.11.55.51.256822@pethippo.co.uk>,
> James Ray <jamesr.nntp-200601@pethippo.co.uk> wrote:
>>
>>I have two up streams (who I want to sent articles back up to)
>
> This you configure in newsfeeds/innfeed.conf.
>
>
>>I have four down streams (who send articles to me)
>
> This you configure in incoming.conf.
>
>
>>Sorry if this is rather confusing and strange but I have absolutely no
>>idea how to go about this using innfeed and the newsfeeds file.
>
> There is good documentation and very detailed examples for all of
> these files. Can you show us what you've tried?
Unfortunately not able to test this easily as this is a test service the
production service is somewhat different, but here goes,
My newsfeeds looks like:
# innfeed funnel master.
innfeed!\
:!*\
:Tc,Wnm*:/usr/lib/news/bin/startinnfeed
#Feed to US1 as long as it hasn't come from either of their feeds!
#Don't feed control,junk groups up or anything with local distrib
us1.host.com/us1,us2
:*,\
@control,@control.*,@junk/!local:Tm:innfeed!
#Feed to US2 as long as it hasn't come from either of their feeds!
#Don't feed control,junk groups up or anything with local distrib
us2.host.com/us1,us2
:*,\
@control,@control.*,@junk/!local:Tm:innfeed!
#Feed to DS1 only ds1.* and ds2.* as long as they didn't come via DS1
ds1.example.com/ds1
:@*,\
ds1.*,ds2.*/!local:Tm:innfeed!
#Feed to DS2 only ds1.* and ds2.* as long as they didn't come via DS2
ds2.example.com/ds2
:@*,\
ds1.*,ds2.*/!local:Tm:innfeed!
Does this look sane?
My innfeed.conf/incomming.conf has the following peers and groups;
group us {
peer us1 {
ip-name: us1.host.com
}
peer us2 {
ip-name: us2.host.com
}
}
peer ds1 {
ip-name: ds1.example.com
}
peer ds2 {
ip-name: ds2.example.com
}
How does this look? Is there any easy way to test this without putting it
into production?
If you need any more of my config please let me know! :)
TIA.
Re: Feeding up-streams and down-streams
Author: Jeffrey M. Vinocur
Date: Wed, 18 Jan 2006 15:23
Date: Wed, 18 Jan 2006 15:23
61 lines
2969 bytes
2969 bytes
In article <pan.2006.01.18.14.23.36.75040@pethippo.co.uk>,
James Ray <jamesr.nntp-200601@pethippo.co.uk> wrote:
>
>#Feed to US1 as long as it hasn't come from either of their feeds!
>#Don't feed control,junk groups up or anything with local distrib
>us1.host.com/us1,us2
> :*,\
> @control,@control.*,@junk/!local:Tm:innfeed!
You're missing a backslash at the end of the first line.
Otherwise, as long as "us1" and "us2" are exactly what appear in
the Path line of articles from them, it looks good. Be aware
that this sends everything (including ds1.* and ds2.*) to us1.
(I feel like the hostnames you used here don't quite match up
with the ones in your original post, so I'm having trouble
checking your intentions perfectly.)
Same goes for the rest of newsfeeds (just watch the backslashes).
>group us {
> peer us1 {
> ip-name: us1.host.com
> }
> peer us2 {
> ip-name: us2.host.com
> }
>}
>peer ds1 {
> ip-name: ds1.example.com
>}
>peer ds2 {
> ip-name: ds2.example.com
>}
Your original post suggested that you want to limit the
hierarchies that some peers can send you. If so, you should use
the "patterns" line of incoming.conf.
Otherwise looks okay.
>Is there any easy way to test this without putting it into production?
No great one. Of course, if no one is feeding you yet, you won't
have any articles to feed out, so you could turn things on just
to make sure there aren't any catastrophic errors. The other
hosts might see your innfeed connect, I guess, but it won't try
to transfer any articles.
>If you need any more of my config please let me know! :)
I suppose innfeed.conf is straightforward and doesn't need to be
proofread.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Feeding up-streams and down-streams
Author: James Ray
Date: Wed, 18 Jan 2006 15:43
Date: Wed, 18 Jan 2006 15:43
32 lines
2700 bytes
2700 bytes
On Wed, 18 Jan 2006 15:23:55 +0000, Jeffrey M. Vinocur wrote: > In article <pan.2006.01.18.14.23.36.75040@pethippo.co.uk>, > James Ray <jamesr.nntp-200601@pethippo.co.uk> wrote: >> > No great one. Of course, if no one is feeding you yet, you won't > have any articles to feed out, so you could turn things on just > to make sure there aren't any catastrophic errors. The other > hosts might see your innfeed connect, I guess, but it won't try > to transfer any articles. > Alas we already have a production service that this setup is going to replace so stuff is already being fed out to us. I guess I will test as best as possible and then do a 'cross fingers' moment! :) > >>If you need any more of my config please let me know! :) > > I suppose innfeed.conf is straightforward and doesn't need to be > proofread. The final problem is that the group of up-streams (us1 and us2) are pooled together, so they share messages internally, instead of passing articles to both of them I want to relay to my preferred peer (us1) and then only use us2 if us1 doesn't respond... is there any way to do this? I guess feeding to both at the same time isn't going to do any harm (right?) as they will just go "Already got that message" if they have managed to transfer internally faster than I can send to them both... Thanks very much Jeffrey!
Re: Feeding up-streams and down-streams
Author: Jeffrey M. Vinocur
Date: Wed, 18 Jan 2006 19:47
Date: Wed, 18 Jan 2006 19:47
49 lines
3258 bytes
3258 bytes
In article <pan.2006.01.18.15.43.55.435097@pethippo.co.uk>, James Ray <jamesr.nntp-200601@pethippo.co.uk> wrote: > >Alas we already have a production service that this setup is going to >replace so stuff is already being fed out to us. I guess I will test as >best as possible and then do a 'cross fingers' moment! :) Well sure, but if you turn it on (on some other IP), you could at least make sure it runs okay before moving it to the right IP. >The final problem is that the group of up-streams (us1 and us2) are pooled >together, so they share messages internally, instead of passing articles >to both of them I want to relay to my preferred peer (us1) and then only >use us2 if us1 doesn't respond... is there any way to do this? Kinda...innfeed does have logic to handle a situation somewhat like this. See, if a hostname listed in innfeed.conf resolves to multiple IP addresses, innfeed will try them to find one that works. It doesn't look to me like you can simply put a list of hostnames in innfeed.conf to have this same effect (although I could be wrong), but I suppose a workaround would be to setup a DNS entry internally, or have them set up one for you, that lists both IPs. >I guess feeding to both at the same time isn't going to do any >harm (right?) as they will just go "Already got that message" if >they have managed to transfer internally faster than I can send >to them both... Correct. And if this is a low-traffic hierarchy, you don't care about bandwidth, or you think the internal peering at their end is likely to be very fast, I'd say just to let it be, and watch the stats if you want. If not, a very easy workaround is to use the "delayer" script, available in the INN source tree "contrib" directory, to make the feed going out to us2 have a delay on it. That will ensure that they have more than enough time to transfer internally, but if us1 is somehow down, you'll still be offering us2 the articles for when it needs them. -- Jeffrey M. Vinocur jeff@litech.org
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