Thread View: news.software.nntp
8 messages
8 total messages
Started by Trevor Fiatal
Thu, 08 Jan 1998 00:00
actived <-> actsync (intermittent) fatal conflict
Author: Trevor Fiatal
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
39 lines
2440 bytes
2440 bytes
Here's an interesting one. We're using actsync, run via a wrapper script out of 'cron', on our 15+ regional data center news servers to sync up against a 'master' news server here in California. This is a Good Thing, because it allows me to process cmsgs and do manual new/rm/changegroups on a single box and have it propagate automagically. We're also running actived; while Joe sent me a pointer to his experimental new code, I haven't had time to port it to Solaris, and thus we're using the one shipped in the Insync patch bundle. (FYI, we're running 1.7.2, plus Insync-1.1d, plus a few patches of my own.) The problem arises when a significant (>20) number of groups are acted upon by actsync during its nightly run. When actsync sends its commands to innd, no matter what I set the sleep interval to, actived apparently gets temporarily locked out of accessing the active file, which causes an abort and exit. Alternatively, it may be getting upset because it's reading the file while it's being rewritten to disk, gets a partial line, and *this* causes the exit(1). I actually think this is what's happening. Has anyone taken the time to beef up the error-handling within actived? It seems to me that it's just a little too quick to give up and die, especially considering that it could back off for UPDATE_INTERVAL seconds and try again, maybe two or three times, before aborting and exiting. -Trevor -- /--------------------------------=-------------------------------------\ |Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail | |Internet Applications Architect | systems admin. Relocation available | |@Home Network, SF Bay Area, CA | for right candidate. Email for info.| \--------------------------------|-------------------------------------/
Re: actived <-> actsync (intermittent) fatal conflict
Author: Joe Greco
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
40 lines
2678 bytes
2678 bytes
In news.software.nntp article <34b6394a.222763451@news.rdc1.sfba.home.com>, trevor@home.net (Trevor Fiatal) wrote: : :Here's an interesting one. : :We're using actsync, run via a wrapper script out of 'cron', on our 15+ :regional data center news servers to sync up against a 'master' news server :here in California. This is a Good Thing, because it allows me to process :cmsgs and do manual new/rm/changegroups on a single box and have it propagate :automagically. : :We're also running actived; while Joe sent me a pointer to his experimental :new code, I haven't had time to port it to Solaris, and thus we're using the :one shipped in the Insync patch bundle. (FYI, we're running 1.7.2, plus :Insync-1.1d, plus a few patches of my own.) : :The problem arises when a significant (>20) number of groups are acted upon by :actsync during its nightly run. When actsync sends its commands to innd, no :matter what I set the sleep interval to, actived apparently gets temporarily :locked out of accessing the active file, which causes an abort and exit. : :Alternatively, it may be getting upset because it's reading the file while :it's being rewritten to disk, gets a partial line, and *this* causes the :exit(1). I actually think this is what's happening. : :Has anyone taken the time to beef up the error-handling within actived? It :seems to me that it's just a little too quick to give up and die, especially :considering that it could back off for UPDATE_INTERVAL seconds and try again, :maybe two or three times, before aborting and exiting. I thought about this possibility when I wrote it, but basically I stole a bunch of existing nnrpd code, and used it as-is. :-) As written, it can't really back off, because it's already done away with data structures (IIRC). It's GOTTA load that active file. However, it could be made to retry it a few times (perhaps with a sleep(1)). ... JG
Re: actived <-> actsync (intermittent) fatal conflict
Author: Joe Greco
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
17 lines
1469 bytes
1469 bytes
In news.software.nntp article <34b6394a.222763451@news.rdc1.sfba.home.com>, trevor@home.net (Trevor Fiatal) wrote: :Alternatively, it may be getting upset because it's reading the file while :it's being rewritten to disk, gets a partial line, and *this* causes the :exit(1). I actually think this is what's happening. : :Has anyone taken the time to beef up the error-handling within actived? It :seems to me that it's just a little too quick to give up and die, especially :considering that it could back off for UPDATE_INTERVAL seconds and try again, :maybe two or three times, before aborting and exiting. Actually, disregard previous message. There's code in actived rev 2 that retries several times. ... JG
Re: actived <-> actsync (intermittent) fatal conflict
Author: Trevor Fiatal
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
31 lines
2067 bytes
2067 bytes
On 8 Jan 1998 22:27:37 -0600, jgreco@ns.sol.net (Joe Greco) spake thusly: >In news.software.nntp article <34b6394a.222763451@news.rdc1.sfba.home.com>, trevor@home.net (Trevor Fiatal) wrote: >:Alternatively, it may be getting upset because it's reading the file while >:it's being rewritten to disk, gets a partial line, and *this* causes the >:exit(1). I actually think this is what's happening. >: >:Has anyone taken the time to beef up the error-handling within actived? It >:seems to me that it's just a little too quick to give up and die, especially >:considering that it could back off for UPDATE_INTERVAL seconds and try again, >:maybe two or three times, before aborting and exiting. > >Actually, disregard previous message. There's code in actived rev 2 that >retries several times. Guess I need to do that Solaris port, eh? How about it guys, anybody already done the portability mods to actived v2, so I don't have to reinvent the wheel? -Trevor -- /--------------------------------=-------------------------------------\ |Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail | |Internet Applications Architect | systems admin. Relocation available | |@Home Network, SF Bay Area, CA | for right candidate. Email for info.| \--------------------------------|-------------------------------------/
Re: actived <-> actsync (intermittent) fatal conflict
Author: Joe Greco
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
39 lines
2465 bytes
2465 bytes
In news.software.nntp article <slrn6bbv1k.dt0.nigelm@camel.theplanet.net>, nigelm@pobox.com wrote: :At Fri, 09 Jan 1998 05:06:40 GMT, Brian Young said:- :>Has anyone thought about simply using the actived on one machine to :>service other machines as well? I imagine it would only work well in :>LANs, but it is doable, and quite easily : :Sounds like a good thing to support a set of readers off an NFS spool. It fails miserably if the machines get out of sync. It may be okay with an NFS spool (like a NetApp) or something where synchronization is not an issue. I don't think this buys you much, though, and in fact may hurt you. If that one central machine goes boom, then all of a sudden you lose LOTS of performance on all of your slaved reader machines. I intended to put code into actived that would limit access to the localhost interface, because in the future it might be more than a read-only protocol. For now, that hasn't happened, and slaving a remote machine might not be any more complex than modifying the actived code on the remote nnrp boxes to point to your central box's hostname rather than "localhost". The retry code in actived is horrible, though, so doing it on a lossy network could be a losing proposition. :In which case has anyone got a historyd to save accessing history over :NFS which seems fraught with danger to me :-) I don't know if it buys you anything, at least if you have it set to never load the history file into core, like most sites. The big wins of actived are: reduced load from repetitive hashing of the active file, and reduced memory consumption. ... JG
Re: actived <-> actsync (intermittent) fatal conflict
Author: Andrew
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
23 lines
1648 bytes
1648 bytes
Nigel Metheringham <nigelm@pobox.com> wrote: > At Fri, 09 Jan 1998 05:06:40 GMT, Brian Young said:- >>Has anyone thought about simply using the actived on one machine to >>service other machines as well? I imagine it would only work well in >>LANs, but it is doable, and quite easily > Sounds like a good thing to support a set of readers off an NFS spool. > In which case has anyone got a historyd to save accessing history over > NFS which seems fraught with danger to me :-) The only problem I can really see with the idea is if actived dies. If nnrpd is unable to communicate with actived, it automagically returns to standard active file reads, which won't work properly with this distributed idea. -- Andrew O. Smith - <aos@insync.net> | "Especially if your kids enjoy Sysadmin, Insync Internet Services | jokes about hashish and sexy, Houston, Texas, USA | sexy dancers." --Mr. Laupin
Re: actived <-> actsync (intermittent) fatal conflict
Author: Brian Young
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
28 lines
1541 bytes
1541 bytes
On Thu, 08 Jan 1998 20:51:34 GMT, trevor@home.net (Trevor Fiatal) wrote: > >Here's an interesting one. > >We're using actsync, run via a wrapper script out of 'cron', on our 15+ >regional data center news servers to sync up against a 'master' news server >here in California. This is a Good Thing, because it allows me to process >cmsgs and do manual new/rm/changegroups on a single box and have it propagate >automagically. > >We're also running actived; while Joe sent me a pointer to his experimental >new code, I haven't had time to port it to Solaris, and thus we're using the >one shipped in the Insync patch bundle. (FYI, we're running 1.7.2, plus >Insync-1.1d, plus a few patches of my own.) > Has anyone thought about simply using the actived on one machine to service other machines as well? I imagine it would only work well in LANs, but it is doable, and quite easily Brian Young Systems Programmer Oral Roberts University
Re: actived <-> actsync (intermittent) fatal conflict
Author: Nigel Metheringham
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
17 lines
1236 bytes
1236 bytes
At Fri, 09 Jan 1998 05:06:40 GMT, Brian Young said:- >Has anyone thought about simply using the actived on one machine to >service other machines as well? I imagine it would only work well in >LANs, but it is doable, and quite easily Sounds like a good thing to support a set of readers off an NFS spool. In which case has anyone got a historyd to save accessing history over NFS which seems fraught with danger to me :-) Nigel. -- [ Nigel Metheringham - nigelm@pobox.com - Systems Software Engineer ] [ Real life is but a pale imitation of a Dilbert strip ]
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