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
Optional symbiosis-httpd-logger package fails under load #113
Comments
Golang logger seems to slow the rate that connections can be processed by 20x.
After installing golang logger:
|
I think this might be explained by the sync flag. The ruby script logger doesn't seem to be obeying the sync flag, based on tests. When apachebench hits the golang logger I/O wait soars up. Whereas this does not happen under ruby, despite the writes being supposedly synchronous. I think a fix might be to remove the |
Fixed by 69a6a9e |
Under high loads with a large number of sites (and therefore large number of instances of the logger), the symbiosis-httpd-logger process stalls and fails to write logs, apparently causing Apache to stall and spin up more processes to deal with the incoming traffic.
A workaround for this seems to be to be to adjust the Apache templates for HTTP/HTTPS sites to log directly to disk, saving the extra processor time and RAM, however this means the
logs
directories won't be automatically generated (should be fixable in symbiosis-httpd-configure or elsewhere, and log files will not be owned by admin:admin (which is not a huge problem, as they are cycled automatically, and still readable by admin).The text was updated successfully, but these errors were encountered: