Archive

Posts Tagged ‘configuration’

INN 2.5 configuration tips

July 3rd, 2009

Been busy configuring an INN 2.5 setup to get header feeds for Newzbox.com, I have a small list of tips to configure INN.

It seems that CNFS is ideal for storing large numbers of posts. Looking at the man page, it can be configured by editing cycbuff.conf file in /etc/news. You need to add lines to configure CNFS files and metadata like this.

1
2
cycbuff:CYC01:/home/news/cycbuff1:2097151
metacycbuff:HEADERS:CYC01

This enables using a file at /home/news/cycbuff1, sized 2097151 Kbytes (2GB is the limit on some systems, and 2GB would be quite sufficient for me now). And by creating a metadata definition named HEADERS, we enable this CNFS file (CYC01) to be used in storage.conf.

We should now edit the storage.conf file to use this HEADERS CNFS files. The lines below tells INN to use it for binaries groups. For all other groups you should add another CNFS file,or maybe a timehash file to store that groups.

1
2
3
4
5
method cnfs {
    class: 1
    newsgroups: *.binaries.*
    options: HEADERS
}

After finishing all configuring stuff, you can reload the server via;

1
/usr/lib/news/bin/ctlinnd reload all reason

But after editing inn.conf and storage.conf files you need to restart innd by the command below.

1
/usr/lib/news/bin/ctlinnd xexec innd

To configure the feed host you need to edit incoming.conf file, and add the lines below.

1
2
3
4
5
peer <myfeed> {
  hostname: feedhost.com
  streaming: true
  max-connections: 10
}

And to add groups to capture, you need to first throttle the server, add the group and start the server again.

1
2
3
/usr/lib/news/bin/ctlinnd throttle reason
/usr/lib/news/bin/ctlinnd newgroup alt.binaries.boneless
/usr/lib/news/bin/ctlinnd go reason

You can use the command below to get the status of CNFS files.

1
/usr/lib/news/bin/cnfsstat

And the command below to get an overall status of the INN.

1
/usr/lib/news/bin/innstat

For more information you can read man pages.

Internet , , ,