Hi! If it's more important that the service is running than having loss-less logging one solution to this would be to syslog important services over UDP (preferably to localhost) instead of via reliable protocols / sockets. If syslog bites the bullet, so be it. but at least routing won't start flapping.
/Oskar On Mon, Nov 10, 2014 at 6:58 PM, Martin Mares <[email protected]> wrote: > Hello, world!\n > > > I find the behavior surprising, as bird in all other situations that I am > > aware of does not block on IO operations. It only uses blocking IO when > > writing to the log file. > > Unfortunately, non-blocking operations on plain files are not supported > by most operating systems, including Linux. > > Blocking for 40 seconds is a pathological case, which should not happen > on properly configured systems. Which kernel do you use? > > BTW, even using syslog is not 100% safe, because the socket used for > logging can saturate its buffers if there is long-term disk contention. > > Have a nice fortnight > -- > Martin `MJ' Mares <[email protected]> http://mj.ucw.cz/ > Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth > Lisp Users: Due to the holiday, there will be no garbage collection on > Monday. > -- [image: MagineTV] *Oskar Stenman* Network Architect *Magine TV* [email protected] | Mob: +46 70 565 21 52 Regeringsgatan 25 | 111 53 Stockholm, Sweden | www.magine.com <http://www.magine.com/> Privileged and/or Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such a person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email.
