haproxytech / kubernetes-ingress

HAProxy Kubernetes Ingress Controller
https://www.haproxy.com/documentation/kubernetes/
Apache License 2.0
688 stars 196 forks source link

File transmission reset every one minute. #592

Open Ivy9898 opened 7 months ago

Ivy9898 commented 7 months ago

I am using haproxytech/kubernetes-ingress:1.6.9 to connect my backend server with front ingress traffic. The issues is when I upload large files, the transmission always stopped after one minute and a new transmission was initiated that result in all the files were uncompleted. I have conducted the testings to narrow down the issue:

  1. Upload large file without haproxy, the transmission was successfully.
  2. Upload large file with haproxy on either http or https, none of them was successfully.
  3. Modify the timeout parameters, it did not solve the issue. Here is my configmap snippet:apiVersion: v1 kind: ConfigMap metadata: name: haproxy namespace: haproxy-controller data: check: "true" force-ssl-redirect: "true" ssl-certificate: "default/tls-secret-vrm" ssl-redirect: "true" ssl-redirect-code: "302" timeout-client: "5m" timeout-client-fin: "5m" timeout-connect: "5m" timeout-http-keep-alive: "5m" timeout-server: "5m" timeout-server-fin: "5m" http-connection-mode: "http-server-close" rate-limit-period: "2m" logasap: "true" nbthread: "16"
    backend-config-snippet: | option tcpka

Where was the wrong?

ivanmatmati commented 7 months ago

Hi, @Ivy9898 , sorry but your version is way too old and is not supported any more. Please update to the latest one. Do you have any reason to stick to this version ?

Ivy9898 commented 7 months ago

Hi ivan, Thanks for the response.

The version is old but worked well before I encountered, that's why I stay on this version. I've upgrade to the latest version 1.10.10 but still the same issue. I traced the log and no transmission error found. Confused where goes wrong. haproxy_ingress_1.10.10.log

ivanmatmati commented 6 months ago

Hi @Ivy9898 , can you send the configuration file from the controller ? You can find it under /etc/haproxy/haproxy.cfg. If necessary you can redact sensitive parts. We'd like to know if a parameter (default or not) can create your issue.

Ivy9898 commented 6 months ago

Hi Ivan, Thanks for your attention. The office is closed until the middle of Jan 2024. I will collect the haproxy.cfg for you when I am back to office.

Happy new year!

Ivy9898 commented 6 months ago

Hi Ivan, Here is my haproxy.cfg: haproxy.cfg.txt