openshift / puppet-openshift_origin

Puppet module to create OpenShift Brokers and Nodes. Can be used to create a full OpenShift Origin deployment.
http://forge.puppetlabs.com/openshift/openshift_origin
Other
45 stars 128 forks source link

Modify the OpenShift logging and metrics file #387

Closed IshentRas closed 9 years ago

IshentRas commented 9 years ago

Openshift nodes use APACHE_ACCESS_LOG variable for logging and metrics (idling, etc...) This variable should be set to /var/log/httpd/openshift_log (DEFAULT) Failing to do so result to a bad handling of idling gears etc...

andrewklau commented 9 years ago

Isn't idling handled by last_access.log ? /usr/bin/oo-last-access > /var/lib/openshift/last_access.log

IshentRas commented 9 years ago

oo-last-access uses logfiles variable so as to work and this variable uses the following ones: logfiles = [ENV["APACHE_ACCESS_LOG"], ENV["NODE_WEB_PROXY_ACCESS_LOG"], ENV["NODE_WEB_PROXY_WEBSOCKETS_LOG"]] As you can see APACHE_ACCESS_LOG should be set to /var/log/httpd/openshift_log where all the metrics are set and not to /var/log/httpd/access_log as it is currently.

andrewklau commented 9 years ago

I stand corrected +1

sdodson commented 9 years ago

LGTM