Skip to content

Conversation

kishorvpatil
Copy link
Contributor

The changes to loggers for all daemons and workers.

  • Turn off immediateFlush.
  • Enable async logging.
  • Turn off Immediate Fail for log events on syslog logger to avoid making blocking call without timeout.

@d2r
Copy link

d2r commented Nov 17, 2015

This also switches to UTF-8 encoding for syslog, for compatibility. We have seen issues with this in the past.

Evidently we cannot configure the context except via a System property, so looks OK to me.

+1

@revans2
Copy link
Contributor

revans2 commented Nov 17, 2015

The log level changes on the UI still work, and performance seems fine too, but if I enable topology.debug I am seeing some very odd things that I would like to explore some more.

@revans2
Copy link
Contributor

revans2 commented Nov 17, 2015

OK I got a heap dump and when debug is enabled we are logging faster then the logger can write. This is resulting in the async logger disruptor queue starting to fill up, and making lots of GC problems. Can we disable this for the worker process or find a way to configure it so the memory usage is not unbounded?

@kishorvpatil
Copy link
Contributor Author

@revans2 Thank you for testing and quick feedback on it. I have reverted the changes for worker, so worker will continue to log synchronously.

@revans2
Copy link
Contributor

revans2 commented Nov 17, 2015

+1 I just tested and the workers are no longer crashing, but it might be good to set immediateFlush="false" in the worker.

@kishorvpatil
Copy link
Contributor Author

@revans2 Turned off immediateFlush for worker.

@revans2
Copy link
Contributor

revans2 commented Nov 18, 2015

+1 looks good to me

@revans2
Copy link
Contributor

revans2 commented Nov 18, 2015

@d2r any other comments on the most recent changes?

@d2r
Copy link

d2r commented Nov 18, 2015

Looks good to me +1

@asfgit asfgit merged commit 0f8d119 into apache:master Nov 19, 2015
@rajeshksv
Copy link

You mean Turn ON Immediate Fail right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants