-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log file handlers left open after rotation #63
Comments
Looks related to this issue: http://thinlight.org/2011/08/10/python-logging-from-multiple-processes/ |
The logging handler we use is OOTB from Python. Also, the upstream Diamond project has not changed the timedrotating.py file at all. As this is a minor, I recommend either opening an issue on the upstream Diamond project to try getting some more experienced eyes on it or using a new logging handler altogether. |
We're going to install a pure Diamond agent and see if we get the same issue. |
Issue opened on the Diamond project: python-diamond/Diamond#720 |
Provide class ConcurrentRotatingFileHandler and import concurrent_log_handler before logging.FileConfig() 2nd of 3 PR's addressing #63
Make ConcurrentRotatingFileHandler the default in netuitive-agent.conf. 3rd of 3 PR's fixing Netuitive/netuitive-diamond#63
File handles are sometimes being left open for logs. Initial investigation indicated this is because all the agent processes are writing to the log file, and that concurrency isn't being handled well by the TimedRotatingFileHandler.
The text was updated successfully, but these errors were encountered: