akvo/akvo-provisioning

Increase upload limit of /media/db/iati_import/ folder in RSR

KasperBrandt opened this issue · 8 comments

For the Cordaid import in RSR, they send us a large file (approx 120 MB) that we need to process. Our new IATI import allows for uploading that file, but the folder (/media/db/iati_import/) does not support uploads of more than 5 MB I think. Could this be increased to 150 MB or so, just for this folder?

And maybe for Test / UAT as well, while we're at it.

peeb commented

@orifito please close this issue if you're happy to do so.

@peeb sure, more than happy to close it 👍

@orifito @peeb the fix says it's temporary. I was wondering, if this is going away soon, or if there's a better fix, or if this is stay as is for the foreseeable future?

peeb commented

The better fix would have to be discussed and should ideally be done on the RSR side - i.e. if you have "expensive" API endpoints, they should be paginated or limited in some way and dealt with on the client.

I personally see both caching and timeout increases as the last resort.

What I would propose would be auditing and fixing expensive API calls and then disabling this timeout hack.

@orifito - thoughs?

Same than yours, paginating expensive API endpoints. Once it's done, we will be more than happy to remove such huge timeout.

This is the client_max_body_size hack for file uploads/POSTs. But, I guess your comments still hold?

Ah I misread then... sorry! I guess that's no longer needed

peeb commented

I misread as well. Apologies!