Man page - ovsqlite(5)
Packages contains this manual
- inn-radius.conf(5)
- localgroups(5)
- innreport(8)
- getlist(1)
- convdate(1)
- ident(8)
- innwatch(8)
- expire(8)
- nntpsend(8)
- wildmat(3)
- motd.innd(5)
- innd(8)
- perl-nocem(8)
- tdx-util(8)
- batcher(8)
- ckpasswd(8)
- nnrpd(8)
- innfeed(8)
- innwatch.ctl(5)
- delayer(8)
- cnfsstat(8)
- shrinkfile(1)
- innreport.conf(5)
- send-ihave(8)
- prunehistory(8)
- ovdb_monitor(8)
- active(5)
- procbatch(8)
- actsync(8)
- incoming.conf(5)
- actsyncd(8)
- imapfeed(8)
- controlchan(8)
- innfeed.conf(5)
- grephistory(1)
- nnrpd.track(5)
- docheckgroups(8)
- send-nntp(8)
- ovsqlite-util(8)
- pgpverify(1)
- tinyleaf(8)
- auth_krb5(8)
- news.daily(8)
- innxmit(8)
- expireover(8)
- domain(8)
- motd.nnrpd(5)
- makedbz(8)
- innupgrade(8)
- readers.conf(5)
- gencancel(1)
- fastrm(1)
- ovdb_server(8)
- motd.news(5)
- scanlogs(8)
- shlock(8)
- ctlinnd(8)
- libinn_uwildmat(3)
- archive(8)
- innxbatch(8)
- rc.news(8)
- send-uucp(8)
- sendinpaths(8)
- news2mail(8)
- buffindexed.conf(5)
- inn-secrets.conf(5)
- newsgroups(5)
- inncheck(8)
- ovdb_stat(8)
- ovsqlite(5)
- history(5)
- cvtbatch(8)
- ovdb_init(8)
- inpaths(8)
- ovdb(5)
- tally.control(8)
- storage.conf(5)
- makehistory(8)
- buffchan(8)
- innmail(1)
- distributions(5)
- innstat(8)
- radius(8)
- mailpost(8)
- subscriptions(5)
- scanspool(8)
- nocem.ctl(5)
- nntpsend.ctl(5)
- inndf(8)
- sendxbatches(8)
- expirerm(8)
- nntpget(1)
- active.times(5)
- cnfsheadconf(8)
- writelog(8)
- control.ctl(5)
- ovsqlite-server(8)
- cycbuff.conf(5)
- expire.ctl(5)
- newsfeeds(5)
- overchan(8)
- innconfval(1)
- sm(8)
- mod-active(8)
- pullnews(1)
- newslog(5)
- ninpaths(8)
- innbind(8)
apt-get install inn2
Manual
OVSQLITE
NAMEDESCRIPTION
INSTALLATION
CONFIGURATION
RUNNING
HISTORY
SEE ALSO
NAME
ovsqlite - SQLite-based overview storage method for INN
DESCRIPTION
This method uses SQLite to store overview data. It requires version 3.8.2 or later of the SQLite library (3.20.0+ recommended).
SQLite source, documentation, etc. are available at <https://www.sqlite.org/>. Ones of the stated goals of the SQLite file format are long-term stability and compatibility, which make that storage method a perfect choice to store overview data.
Only one protocol version of the ovsqlite storage method currently exists, implemented since INNÂ 2.7.0.
This method comes with a support utility ( ovsqlite-util ) and a Perl module ("INN::ovsqlite_client") which permit accessing and manipulating overview information. See their manual pages for more details about their possibilities.
INSTALLATION
The configure script will automatically enable ovsqlite support if it finds the SQLite library. If the library isnât installed in a standard location, you may have to specify the --with-sqlite3 option to help configure find it. For complicated cases, you can use separate --with-sqlite3-include and --with-sqlite3-lib options. Finally, if you donât want ovsqlite support even when your system has the SQLite library, you can use the --without-sqlite3 option.
If you have a recent Linux installation, SQLite is most likely already installed. You may have to install a separate package with a name similar to "libsqlite3-dev" to get the required header files.
Plan on needing at least 0.93Â KB for every article in your spool (not counting crossposts). So, if you have 5 million articles, youâll need at least 4.65Â GB of disk space for ovsqlite. With compression enabled, this estimate changes to 0.4Â KB per article, so youâll need at least 2Â GB of disk space for 5 million articles. Plus, youâll need additional space for transaction logs (a few MB).
CONFIGURATION
To select ovsqlite as your overview method, set the ovmethod parameter in inn.conf to "ovsqlite". The database file will be created in the directory specified by the pathoverview parameter in inn.conf . Restart INN to take the change into account (after having rebuilt your existing overview with makehistory , if needed).
These additional
parameters are read from the
ovsqlite.conf
configuration file:
cachesize
The SQLite in-memory page cache size in kilobytes. The default value is left up to the SQLite library and seems to be stable at 2000Â KB.
compress
If INN was built with zlib support and this parameter is true, ovsqlite will compress overview records whenever this saves space. This parameter is consulted only when creating a new database. Enabling compression saves about 55Â % of disk space on standard overview data. The default value is false.
pagesize
The SQLite database page size in bytes. Must be a power of 2, minimum 512, maximum 65536. Appropriate values include the virtual memory page size and the filesystem allocation block size. This parameter is consulted only when creating a new database. The default value is left up to the SQLite library and varies between versions.
transrowlimit
The maximum number of article rows that can be inserted or deleted in a single SQL transaction. The default value is 10000 articles.
transtimelimit
The maximum SQL transaction lifetime in seconds. The default value is 10 seconds.
A transaction occurs every transrowlimit articles or transtimelimit seconds, whichever is smaller. You are encouraged to keep the default value for row limits and, instead, adjust the time limit according to how many articles your news server usually accepts per second during normal operation (you can find statistics about incoming articles in your daily Usenet reports). Inserting or deleting a database row within a transaction is very fast whereas committing a transaction is slow, especially on rotating storage. Setting transaction limits too low leads to poor performance. When rebuilding overview data, it may be worth temporarily raising these values on systems with slow CPU or rotating storage (for instance, multiply by 10 the default values). Performance wonât change much on fast systems.
RUNNING
All overview database access goes through the ovsqlite-server daemon. For ordinary operation, rc.news will start and stop it automatically. If you want to touch the overview database while innd isnât running, youâll have to start ovsqlite-server manually first. See ovsqlite-server(8).
HISTORY
Initial implementation of ovsqlite written by Bo Lindbergh <2bfjdsla52kztwejndzdstsxl9athp@gmail.com> for InterNetNews.
SEE ALSO
INN::ovsqlite_client(3pm), inn.conf(5), makehistory(8), ovsqlite-server(8), ovsqlite-util(8), rc.news(8).