|
|||||||||
![]() |
|||||||||
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: CRONOLOG: VS: Cronolog processes
> There are a couple of ways to redesign cronolog as a module to cope > better in this sort of situation: > > 1. the module could just open the required file (in append mode), > write the log message and close the file > > 2. the module could maintain a cache (in each process) of the most > recently accessed log files, closing the least recently used file > descriptor (and/or any descriptors that are no longer valid > according to their templates) > > 3. have a server process to handle all the logging requests > > > I started along the third route a couple of months ago, but other > demands on my time intervened. I might have a look at the second > approach, as it might be simpler and would avoid the complexities of > interprocess communication, etc. > I've personally expressed this to Andrew... I think #3 is just "A BAD IDEA". Having Apache depend on another process, especially via some sort of IPC/etc, could be trouble. If the other process dies, theres the possibilty of Apache blocking until it can talk. I think #1 would cause ALOT of file open/closes on heavily used web servers with many hosts. Wouldn't #2 chew up valuable File Descriptors? Tuc/TTSG Internet Services, Inc.
|