kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

File transmission reset every one minute.

Open Ivy9898 opened this issue 1 year ago • 5 comments

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?

Ivy9898 avatar Dec 14 '23 00:12 Ivy9898

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 ?

ivanmatmati avatar Dec 14 '23 07:12 ivanmatmati

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

Ivy9898 avatar Dec 14 '23 23:12 Ivy9898

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.

ivanmatmati avatar Dec 21 '23 12:12 ivanmatmati

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 avatar Dec 29 '23 08:12 Ivy9898

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

Ivy9898 avatar Jan 08 '24 00:01 Ivy9898