I am using HAProxy as an ingress controller in my GKE cluster.
This is what my configurations look like, for a service which I want to timeout in X milliseconds:
---
apiVersion: v1
kind: Service
metadata:
name: dummy-app-service
annotations:
haproxy.org/backend-config-snippet: |
option http-keep-alive
timeout server 40ms
timeout client 20ms
timeout http-keep-alive 20ms
timeout http-request 40ms
spec:
ports:
- name: app
targetPort: 8080
port: 8080
selector:
app: dummy-app
I want to understand what is the difference between client and http-request timeout, and which one takes precedence over the other.
If I receive a request, will it timeout in 20ms(client timeout) or 40ms(http-request timeout) ??
The best answer is written in the documentation timeout http-request