apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

request help: large file upload not work

Open RedBlackWolf opened this issue 1 year ago • 1 comments

Issue description

I configured an apisixroute and connected it to the apache service with backends Normal operation is fine, but it does not work normally when uploading large files (> 2GB).
It looks like timeout and it's weird. Applying request_buffering: false to the proxy-control to plugin will cause more errors. Is there a solution?

apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
  name: route
spec:
  http:
  - name: route-upload
    match:
      hosts:
      - aaa.com
      paths:
      - /upload/*
    upstreams:
    - name: web-upload
    timeout:
      connect: "8h"
      send: "8h"
      read: "8h"
    plugins:
    - name: proxy-control
      enable: true
      config:
        request_buffering: false

Environment

  • apisix ingress-controller 1.8.0
  • kubectl 1.28.2 (output of kubectl version):
  • Rocky Linux release 8.8

RedBlackWolf avatar Feb 15 '24 08:02 RedBlackWolf

apisix has limiting for request body size. you need to use client-control plugin to change the max size of the request body.

https://apisix.apache.org/docs/apisix/plugins/client-control/

bigfish02 avatar Feb 26 '24 12:02 bigfish02

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar May 27 '24 01:05 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Jun 26 '24 01:06 github-actions[bot]