Skip to content

Commit 5f02ce1

Browse files
committed
disable gzip and connection pooling
1 parent 803b7cf commit 5f02ce1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/etc/nginx/conf.d/default.conf.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ server {
1010

1111
upstream app {
1212
server {{ .Env.UPSTREAM_SERVER }};
13-
keepalive {{ .Env.KEEPALIVE_CONNECTIONS }};
14-
keepalive_requests {{ .Env.KEEPALIVE_REQUESTS }};
15-
keepalive_timeout {{ .Env.KEEPALIVE_TIMEOUT }}s;
13+
# Temporarily disable connection pooling to test performance
14+
# keepalive {{ .Env.KEEPALIVE_CONNECTIONS }};
15+
# keepalive_requests {{ .Env.KEEPALIVE_REQUESTS }};
16+
# keepalive_timeout {{ .Env.KEEPALIVE_TIMEOUT }}s;
1617
}
1718

1819
server {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
uwsgi_pass app;
22
uwsgi_param HTTP_X_REQUEST_ID $request_id;
33
uwsgi_param HTTP_HOST $host;
4-
uwsgi_param CONNECTION ""; # Clear Connection header for keepalive
4+
# uwsgi_param CONNECTION ""; # Clear Connection header for keepalive (disabled)
55
include uwsgi_params;
66
uwsgi_read_timeout {{ .Env.WSGI_TIMEOUT }};
77
uwsgi_send_timeout {{ .Env.WSGI_TIMEOUT }};

src/etc/nginx/nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ http {
2929
keepalive_timeout {{ .Env.KEEPALIVE_TIMEOUT }};
3030

3131
# Enable gzip compression for better performance
32-
gzip on;
32+
gzip off;
3333
gzip_vary on;
3434
gzip_min_length 1024;
3535
gzip_comp_level 6;

0 commit comments

Comments
 (0)