Skip to content

perf(edge): enable gzip compression and configure client request buffer limits - #2

Merged
ATLURI0001 merged 1 commit into
mainfrom
perf/edge-gzip-compression-and-buffer-tuning
Nov 9, 2026
Merged

ATLURI0001 merged 1 commit into
mainfrom
perf/edge-gzip-compression-and-buffer-tuning

Conversation

@ATLURI0001

Copy link
Copy Markdown
Owner

Summary & Motivation

Edge proxies terminating TLS and routing to internal upstream pools must optimize both payload compression and ingress buffer allocation to protect downstream application pods from oversized headers and buffer exhaustion.

Key Changes

  1. Dynamic Gzip Compression:
    • Enabled gzip on; with compression level 5 and a 256-byte threshold to avoid compressing tiny single-packet payloads.
    • Configured gzip_vary on; and target MIME types (�pplication/json, �pplication/javascript, ext/css, ext/plain, �pplication/xml).
  2. Client Buffer Hardening:
    • Set client_body_buffer_size 128k; and large_client_header_buffers 4 8k; to mitigate HTTP slowloris/header flooding attacks.
  3. Automated Verification:
    • Added est_gzip_compression_and_buffer_tuning to ests/test_project.py (all 14 tests passing).

…er limits

- Configured gzip compression (level 5, min_length 256 bytes) across text, JSON, and XML MIME types to reduce edge egress bandwidth and latency.
- Set explicit client body (128k) and header buffer (1k default, 4x8k large) thresholds to prevent memory fragmentation and slowloris vector expansion.
- Added automated unit test coverage in tests/test_project.py.
@ATLURI0001
ATLURI0001 merged commit 2ee3306 into main Nov 9, 2026
0 of 2 checks passed
@ATLURI0001
ATLURI0001 deleted the perf/edge-gzip-compression-and-buffer-tuning branch November 9, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant