Thread View: news.software.nntp
4 messages
4 total messages
Started by Nickolai Zeldovich
Fri, 14 Jan 2000 00:00
Re: Diablo problems and questions
Author: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
Date: Fri, 14 Jan 2000 00:00
83 lines
4093 bytes
4093 bytes
In article <BBsf4.4521$v31.417082@ptah.visi.com>, Mike Horwath wrote: >Here is what I want: > visi.*,mn.* groups to never expire It is not possible to keep groups around forever using a Diablo spool, that I've found. The best you can do is to set a really high maxspool value in diablo.config and set the percentage expiration value to 100 for these groups, scaling everything else down appropriately. > alt.* < 32K in size to be about 10-14 days > alt.* > 32K in size to be about 5 days > big 8 to be about 25-30 days > everything else to be 10-14 days The semi-algorithm I could suggest to deal with the Diablo reader expire process is roughly: It's probably the case that alt.* articles 32K and over will be the majority of your disk space. Take the total disk space you have in your spool, divide it by about the traffic you expect per day, and that'll be approx. the number of days you can keep the alt-over-32K articles. Assign some percentage to it, say 10. Now you can go from there, and if you want, say, comp.* articles to have expiration times twice as long, use twice the percentage from above. So on for all the other categories which you want to expire differently. Now you can scale all the values up linearly so that one of them hits 100% (something should always be 100). Hopefully that was sort-of clear and not too detailed. Note that it may be to your advantage to not have different expire times based on size. This causes a much larger article number span and thus higher disk space usage in the "overview". > Since you can't edit the > overview files in place because other processes have it open, > the only way to actually resize the overviews is to stop the > server, run dexpireover, start the server, repeat every couple > hours for a couple days. You may want to take a look at diablo-1.27 which includes code which periodically flushes the overview open file cache. This tries to make sure that you don't have the same group failing to resize over and over. It will eventually stabilize at some reasonable values.. In my case, running dexpireover -a -o takes somewhere between 5 and 8 minutes on the entire spool, so I run it every 4 hours. > I have 2 machines synced together by having a third diablo > server running master and issuing the numbers. The thing is, > the 2 servers get out of sync with each other because of the > problem listed above. This sounds like a bug if it's really happening; the problem with overview not being resized shouldn't cause this. Did you run dreaderd with the -x option to indicate the name of the Xref master? >Anyone recode the authentication model for Diablo yet? Not me, at least, although I might be interested in helping making it happen.. > readerdns 24 This seems a bit extreme to me; I have 5 resolver forks and most of the times I look at dreaderd.status, 0 are in use. Then again, maybe in your case DNS resolution for an average client takes longer (as you mention later, your servers allow anyone to read from them.) >Anyone have a reason to change that around some? Maybe more 'forks' >and less 'threads'? FWIW, I use 25 reader forks and 40 threads, and it works fine. It's not entirely clear to me at the moment what the optimal values are and what affects them, though. -- Nickolai Zeldovich.
Re: Diablo problems and questions
Author: Russell Vincent
Date: Fri, 14 Jan 2000 00:00
Date: Fri, 14 Jan 2000 00:00
54 lines
3136 bytes
3136 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote: > Thing is, I don't run a diablo feeder in place at all. > These are pure diablo reader systems being feed by a diablo feeder > machine (seperate!). The backend spool is coming off our Typhoon > server (handles this just dandy). > Does dreaderd use the 'maxspool' settings? I am not sure what you mean by 'maxspool' setting, but you could look at it this way ... If the diablo (i.e: feeder) process is playing no part on the dreaderd machine, then the only options in dexpire.ctl that are used are the 'a' and 'x' options (and thse are only used by dexpireover - dreaderd does no expiry at all). The former to specify the starting size of the overview file (and ignored after that) and the latter to specify how many days before articles are expired. Each time dexpireover is run with the resize option (-s or -a) enabled, then the overview file size is adjusted to reflect the number of articles in the group. If the number of articles is less than the overview size (note that the file is a set size (max articles for that group), not adjusted by dreaderd for incoming articles), then the size is reduced by approx a third. If the number of articles is > 2/3 the size (maxarts) of the group, then the size is increased by a third. If the group is locked by a dreaderd process, then this resizing doesn't take place for that group. This will explain why your server syncs the low-water mark when there are no readers. More regular dexpireover runs allows the size to be more accurate. As already mentioned, Diablo-1.27 with the dreaderd 'unlocking' helps with this. I have often wondered if some of the ratios need to be adjusted, but haven't got around to fiddling too much with that part of the code. They are around line 590 of dexpireover.c if you want to try. This is all ignoring the new '-o' option of dexpireover, which I haven't investigated much as its run-time scares me. I believe that option only applies when you have a diablo process running on the machine as well as a dreaderd process. I don't have that and always have a separate spool server, running diablo and reader frontends running dreaderd. Sounds like your scenario is similar with the Typhoon backend. -Russell
Re: Diablo problems and questions
Author: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
Date: Fri, 14 Jan 2000 00:00
20 lines
1655 bytes
1655 bytes
In article <85nphh$3ip$1@wave.pipex.net>, Russell Vincent wrote: >This is all ignoring the new '-o' option of dexpireover, which I haven't >investigated much as its run-time scares me. I believe that option >only applies when you have a diablo process running on the machine >as well as a dreaderd process. I don't have that and always have a >separate spool server, running diablo and reader frontends running >dreaderd. You could run dexpire on your spool backend with -o, and then somehow copy the dexpover.dat file to your reader frontend at regular periods before dexpireover runs. This should ensure some consistency between the spool contents and overview data. -o is very fast; on the other hand, -e is significantly slower (which does a dhistory lookup, assuming dhistory is local, for every article in overview, to see if it's expired yet). -- Nickolai Zeldovich.
Re: Diablo problems and questions
Author: Nickolai Zeldovich
Date: Fri, 14 Jan 2000 00:00
Date: Fri, 14 Jan 2000 00:00
90 lines
4267 bytes
4267 bytes
In article <CrJf4.4701$v31.444548@ptah.visi.com>, Mike Horwath wrote:
>These are pure diablo reader systems being feed by a diablo feeder
>machine (seperate!). The backend spool is coming off our Typhoon
>server (handles this just dandy).
Ah, I thought you used Diablo for the backend spool too. Typhoon
probably has better ways of controling article expiration times,
so you should be able to just use the 'x' flag for the most part
to control expiration on the reader.
>Does dreaderd use the 'maxspool' settings?
Not that I know of; it's used by diablo to limit the number of spool
dirs under /news/spool/news under control in reader expire mode.
>: Hopefully that was sort-of clear and not too detailed.
>
>Details is what I am looking for :)
Actually what I explained above was how to come up with percentage
expiration values for diablo rather than dreaderd; since you say
you're not using diablo for the backend spool, it probably doesn't
apply in your case.
>My dexpire looks like this as of right this minute:
>
>#---------
>*:80:c0.95:m2m:b1000:x31
>alt.*:10
>*.advocacy:20
>*.test:10
>control.*:2
>control.cancel:2
># permanent, semi-permanent, local groups
>visi.*:100:x2048
>mn.*:100:x2048
>#---------
>
>Does that look about right for what you are stating?
If you aren't running a diablo feeder on the same machine (that
reads this dexpire.ctl), you probably don't need to bother with the
percentage expiration values. What this should give you is 31 days
of overview for all groups, except for visi.* and mn.*, which will
have overview stored for 2048 days. This sounds a bit suspicious to
me, since this means your readers will receive 31 days worth of
headers when they request xover data, but unless you actually spool
31 days worth of everything, they'll get "Article unavailable" when
trying to retrieve anything but the latest articles which you still
have spooled.
>: In my case, running dexpireover -a -o takes somewhere between 5 and
>: 8 minutes on the entire spool, so I run it every 4 hours.
>
>I'll try that. Thanks.
-o makes dexpireover use dexpover.dat (a file created by dexpire,
containing msgid hashes of expired articles) so that the overview
information is properly synchronized with the actual spool content.
You may want to just run 'dexpireover -a' if your backend is not
Diablo-based.
(If your backend was diablo, you could copy this file from the
spool server to each reader, and have them expire the same articles
which have been deleted from the spool, rather than guessing at the
expire times with the 'x' flag.)
>Scrappy has been around for some time as an open server so it is MUCH
>busier than gemini, by a factor of 4.
>[...]
>If I shut down readership to the servers and let it run for a few
>days, they start to fully sync up.
This does seem strange.. Does dexpireover report anything interesting
on these two machines? It should print something like
expired 5 NB += 10 ( 0 can, 5 stale, 5 exprd) left 441 \
expires in 60.00 days, grp=clari.sports.local.southwest
It should be the case that NB gets incremented by roughly the same
amount on both servers, if you have the same dexpire.ctl files and
run dexpireover at similar intervals.
The load you mention on one of the reader servers might affect the
number of groups which fail to resize at each dexpireover run, but
I don't see an obvious way that would cause what you're seeing..
-- Nickolai Zeldovich.
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