On 2008-06-25T11:30:54, Joe Bill <[EMAIL PROTECTED]> wrote: > Ok. What I failed to realize was that any cross-network dialog between > ha_logger and syslog via ha_logd was anyways asynchronous, and > whatever dialog between ha_logger and ha_logd is local inter-process > (independent from the network), and so ha_logger can not be affected > by the state of the network. So the risk of ha_logger failing and > forcing ha_log() to write to disk is merely the same as ha_logd > crashing, which itself represents serious system integrity > degradation.
Right. > I've checked cl_log.c, namely the cl_direct_log function. > It appears that the daemon will write to the specified logfile, ***regardless > of it relaying to syslog or not***, if a log filename is provided, and the > priority of the message to log is not DEBUG. > May I kindly ask you to confirm my interpretation is correct ? Right. This allows you to both log to syslog and a file. > Personally, I believe "it" would be the "ha_logger", and yes, wouldn't it be > cool if the ha_logger could talk directly to a syslog daemon. Definitely not. That would lose the advantages of decoupling our logging from syslog or file blocking. > > The point is to decouple the cluster stack from the possibly > > blocking write() call, either to the syslog socket or the disk. > So does ha_logd save over reboots messages it received from the logger > but hasn't had time to process ? The messages are kept in memory and flushed before shutdown, yes. So there is no need to save anything over a reboot. > > You should not set this manually. This is set in the > > configuration and the RA should not mess with it. > Well, say I write a RA that I believe should log to the cron log facility. > How am I to do that while using the ocf-shellfuncs ? RAs should follow the logging configuration of the HA subsystem. I think that is a very good idea. If you want to violate that or do anything special, you would probably be calling logger directly. Regards, Lars -- Teamlead Kernel, SuSE Labs, Research and Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/