calling the directory…
netmeeting ils
pinging…
Without consideration, if you deployed it on the open web to a random
NNTP server or your own, it would likely DoS the NNTP server. The
biggest expense is article threading due to large thread windows and
bots not doing linear (cache friendly) sweeps.
Kevin Bowling <kevin.bowling@kev009.com> posted:
Without consideration, if you deployed it on the open web to a random
NNTP server or your own, it would likely DoS the NNTP server. The
biggest expense is article threading due to large thread windows and
bots not doing linear (cache friendly) sweeps.
Perhaps you might be interested in how I do threading on newsgrouper.org? This runs on a fairly modest home PC - 8 logical cores, 32GB ram, 1TB ssd
for the overview database. I don't run my own nntp server.
I pull XOVER data from three different remote nntp servers on demand and
load this into an "over" table in a Sqlite database. The schema can be
seen at https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=scripts/db_create.tcl&ln=17-21
Here I have a field "prev" which is the message-id of the last entry in the References header, which is usually the message being replied to, if any. There are indexes on this "prev" field and the actual "msgid", combined with a group identifier.
I can then use recursive SQL queries to follow these msgid/prev pointers
to pull out a single thread: https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2879-2886
or all the threads in a time range: https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2889-2900
I still need to chase these pointers between the records in memory to build the thread tree structure, but that's quite fast: https://chiselapp.com/user/cmacleod/repository/newsgrouper/file?ci=tip&name=news_code.tcl&ln=2907-3027
I find this works well, with quite quick response and no great load on the machine. I do have various bot defence measures also, and perhaps fewer
user than you.
In the announcement of csiph.com -- <10t2kh8$1a6i$1@csiph.com> or https://csiph.com/group/news.software.nntp/
t/10t2kh8%241a6i%241@csiph.com -- I mentioned eventually desiring to
open sourcing this code.
Before doing this, I want to gauge interest to help me decide if and how:
1) How would you envision using it
2) Do you have any desire to develop it
If I understand correctly your thread window is 500? That would be fast
for most servers. For arbitrary reasons (usenet discussions can span a
long time range) I currently do 10000, which creates a huge amount of
OVER work for inn.
Kevin Bowling <kevin.bowling@kev009.com> posted:
If I understand correctly your thread window is 500? That would be fast
for most servers. For arbitrary reasons (usenet discussions can span a
long time range) I currently do 10000, which creates a huge amount of
OVER work for inn.
I forgot to explain that the "over" database table has been preloaded with the entire group history, for some groups back to the 1980s. I just pull in *new* XOVER data to bring it up-to-date when someone reads that group. The full db is around 660GB.
Then there are two cases of query:
When "sought" is not set we have a window of 500 (postbatch) but those
are just the starting points, the sql query pulls in any earlier posts referenced from those, and so on recursively to complete all those threads even if they go back for years.
When "sought" is set we are completing the thread structure for an
individual post which has been found by a historical search. In this
case the sql query starts from that one post and follows the msgid/prev
links recursively backwards AND forwards to find all posts in that thread.
Of course preloading the database takes quite some time, but once that's
done the load on the nntp servers is minimal. The recursive sql queries
are tricky to get right, but very powerful once you get the hang of them.
I also had to run Sqlite's `PRAGMA optimize` a few times to make sure the correct indexes were being used. Without that it was horribly slow, with
the right optimization it became incredibly fast.
data: api.nasa.gov (APOD, NeoWs)
| Sysop: | cequra |
|---|---|
| Location: | Grimsby United Kingdom |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498852:56:45 |
| Calls: | 197 |
| Files: | 8,821 |
| D/L today: |
29 files (9,432K bytes) |
| Messages: | 39,038 |