Description
UPDATE: Fixed by #26 and this fork
I have a supervisor-stdout
configuration working well, but the event forwarding is introducing considerable buffer lag into logs. Events collected by supervisor-stdout
will often not be emitted by supervisord stdout
until up to ~10 minutes later. The time is variable. It is usually worst when applications starts or has been dormant. Logs just don't flow. Then after ~10 minutes a whole bunch of old log messages will be output by supervisord. Once the application gets busy, the lag is usually small or only a few seconds.
You can see here that supervisord
output many log lines (~100) in the same micro-second (left timestamp). But the log lines themselves span several minutes (~10 minutes, timestamps on right). This didn't happen until I introduced [supervisor + supervisor-stdout]
into the application. Anyone else seen this? Is this a problem with output buffering in the supervisor-stdout
handler?