Skip to content

Commit

Permalink
nginx: revert quay#3098 (PROJQUAY-7573) (quay#3129)
Browse files Browse the repository at this point in the history
reverting this change because we won't use keepalive with gunicorn workers
  • Loading branch information
syed authored Aug 9, 2024
1 parent bb054bf commit 78e9a3b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions conf/init/nginx_conf_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def generate_server_config(config):
signing_enabled = config.get("FEATURE_SIGNING", False)
maximum_layer_size = config.get("MAXIMUM_LAYER_SIZE", "20G")
enable_rate_limits = config.get("FEATURE_RATE_LIMITS", False)
manifests_endpoint_keepalive_timeout = config.get("MANIFESTS_ENDPOINT_KEEPALIVE_TIMEOUT", "0")
manifests_endpoint_read_timeout = config.get("MANIFESTS_ENDPOINT_READ_TIMEOUT", None)

write_config(
Expand All @@ -113,7 +112,6 @@ def generate_server_config(config):
maximum_layer_size=maximum_layer_size,
enable_rate_limits=enable_rate_limits,
static_dir=STATIC_DIR,
manifests_endpoint_keepalive_timeout=manifests_endpoint_keepalive_timeout,
manifests_endpoint_read_timeout=manifests_endpoint_read_timeout,
)

Expand Down
2 changes: 0 additions & 2 deletions conf/nginx/server-base.conf.jnj
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ location ~ /v2/([^/]+)\/[^/]+/manifests/ {
limit_req zone=namespaced_dynamicauth_light_http2 burst=50 nodelay;
{% endif %}

keepalive_timeout {{ manifests_endpoint_keepalive_timeout }}; # Disables HTTP 1.1 keep-alive and forces round-robin.

{% if manifests_endpoint_read_timeout %}
proxy_read_timeout {{ manifests_endpoint_read_timeout }};
{% endif %}
Expand Down
2 changes: 0 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,5 +901,3 @@ def create_transaction(db):
# Disable pushes while allowing other registry operations.
# Defaults to "False".
DISABLE_PUSHES = False

MANIFESTS_ENDPOINT_KEEPALIVE_TIMEOUT = "0"
5 changes: 0 additions & 5 deletions util/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,11 +1568,6 @@
"description": "Only disables pushes of new content to the registry, while retaining all other functionality. Differs from read only mode because database is not set as read-only.",
"x-example": False,
},
"MANIFESTS_ENDPOINT_KEEPALIVE_TIMEOUT": {
"type": "string",
"description": "Nginx keep alive timeout for manifests endpoints used by pulls and pushes",
"x-example": "2s",
},
"MANIFESTS_ENDPOINT_READ_TIMEOUT": {
"type": "string",
"description": "Nginx read timeout for manifests endpoints used by pulls and pushes",
Expand Down

0 comments on commit 78e9a3b

Please sign in to comment.