copr: enable multiprocessor on lighttpd
This will utilize more cores for lighttpd, but because lighttpd does not synchronize writing to logs, we have to pipe it to cronolog.
This commit is contained in:
parent
faa51fdfad
commit
003bd6271f
3 changed files with 36 additions and 0 deletions
28
roles/copr/backend/files/lighttpd/access_log.conf
Normal file
28
roles/copr/backend/files/lighttpd/access_log.conf
Normal file
|
@ -0,0 +1,28 @@
|
|||
#######################################################################
|
||||
##
|
||||
## Corresponding documentation:
|
||||
##
|
||||
## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAccesslog
|
||||
##
|
||||
server.modules += ( "mod_accesslog" )
|
||||
|
||||
##
|
||||
## Default access log.
|
||||
##
|
||||
#accesslog.filename = log_root + "/access.log"
|
||||
accesslog.filename = "|/usr/sbin/cronolog /var/log/lighttpd/access.log"
|
||||
|
||||
##
|
||||
## The default format produces CLF compatible output.
|
||||
## For available parameters see access.txt
|
||||
##
|
||||
#accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\""
|
||||
|
||||
##
|
||||
## If you want to log to syslog you have to unset the
|
||||
## accesslog.use-syslog setting and uncomment the next line.
|
||||
##
|
||||
#accesslog.use-syslog = "enable"
|
||||
|
||||
#
|
||||
#######################################################################
|
|
@ -483,3 +483,5 @@ $HTTP["url"] =~ "^/archive/spacewalk/($|/)" {
|
|||
dir-listing.activate = "disable"
|
||||
index-file.names = ( "index.html" )
|
||||
}
|
||||
# make sure logging use cronolog
|
||||
server.max-worker = 6 # this may break many things
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
- python2-neutronclient
|
||||
- python2-keystoneclient
|
||||
- php-cli
|
||||
- cronolog
|
||||
|
||||
# disable this in favor of excluding it in /etc/dnf/dnf.conf.
|
||||
# https://github.com/ansible/ansible/issues/33187
|
||||
|
@ -78,6 +79,11 @@
|
|||
copy: src="boto" dest=/home/copr/.boto owner=copr group=copr
|
||||
|
||||
# setup webserver
|
||||
- name: add access_log.conf for lighttpd
|
||||
copy: src="access_log.conf" dest=/etc/lighttpd/conf.d/access_log.conf owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart lighttpd
|
||||
|
||||
- name: add config for copr-repo path
|
||||
copy: src="{{ _lighttpd_conf_src }}" dest=/etc/lighttpd/lighttpd.conf owner=root group=root mode=0644
|
||||
notify:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue