Fine tune nginx config
While doing a large number of Debian package builds, it was observed that aptly database would lockup, causing concerrency issues between nginx and aptly. This would ultimately prevent nginx to serve Debian packages. It was determined that running nginx in daemon mode would work around this issue. Tested by running sequential package builds of 1, 10, 50, and 100 of the tsconfig package. After this change the lockup issues were not present. Story: 2008846 Task: 43626 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: I278d6f494848030fb13c470e65fee5f6f2c3eb2f
This commit is contained in:
parent
b78277a54c
commit
574e97ec6a
@ -65,7 +65,6 @@ COPY stx/toCOPY/aptly/aptly.conf /etc/aptly.conf
|
||||
COPY stx/toCOPY/aptly/supervisord.aptly.conf /etc/supervisor/conf.d/aptly.conf
|
||||
|
||||
# Configure Nginx
|
||||
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||
COPY stx/toCOPY/aptly/nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
COPY stx/toCOPY/aptly/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx
|
||||
# "daemon off" should be used in Docker or under Supervisord
|
||||
command=/usr/sbin/nginx -g "daemon off;"
|
||||
redirect_stderr=true
|
||||
stdout_logfile_maxbytes=1MB
|
||||
|
Loading…
x
Reference in New Issue
Block a user