Skip to content

Commit

Permalink
Change number of NGINX and UWSGI workers.
Browse files Browse the repository at this point in the history
  • Loading branch information
krihal committed Sep 20, 2023
1 parent 4ea0633 commit 53b9343
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions docker/api/config/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
user www-data;
worker_processes auto;
worker_processes 2;
pid /tmp/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
worker_connections 768;
worker_connections 768;
multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
}
2 changes: 1 addition & 1 deletion docker/api/config/uwsgi_internal.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ callable = cnaas_app
module = cnaas_nac.run_internal
socket = /opt/cnaas/venv/cnaas-nac/app_internal.sock
master = true
processes = 4
processes = 2
chmod-socket = 666
enable-threads = true
exec-pre-app = /opt/cnaas/exec-pre-app.sh
Expand Down

0 comments on commit 53b9343

Please sign in to comment.