TCP/HTTP Keepalive
TOC
Basic Concepts
-
ALB supports keepalive configuration at the port level. It can be configured on the frontend.
-
Keepalive is between the client and ALB, not between ALB and the backend.
-
It is implemented through the Nginx configuration, and Nginx needs and will automatically reload when the configuration is changed.
-
TCP keepalive and HTTP keepalive are two different concepts:
- TCP keepalive is a TCP protocol feature that sends periodic probe packets to check if the connection is still alive when there is no data transmission. It helps detect and clean up dead connections.
- HTTP keepalive (also known as persistent connections) allows multiple HTTP requests to reuse the same TCP connection, avoiding the overhead of establishing new connections. This improves performance by reducing latency and resource usage.
CRD
It can only be configured on the Frontend .spec.config.keepalive.