Closed jaredhirsch closed 7 years ago
Yeah, I think our current JSON upload limit is 100MB of JSON: /server/src/server.js:221
app.use(bodyParser.json({limit: '100mb'}));
What do we think about a 15mb limit? @relud is there a recommendation here?
i don't have a recommendation, but the default client_max_body_size
in nginx is 1m
, so it could end up causing you issues if you are expecting more and it isn't changed or disabled (I can set it to 0 to disable it).
I'm pretty sure it's been raised in our Docker config, as I remember people hit that limit frequently when one of our instances had the 1mb limit in place. We do have information in Google Analytics about upload size, but I only know how to see average (670kb) and I don't know how to see a histogram of values.
I took a shot of a very large high def image on a 4k screen, and the resulting PNG is 21MB. That's probably a bit much. Could we somehow limit to 10MB?
ah, i see that the nginx default client_max_body_size
for cloudops using dockerflow has been changed to 256m
in nginx, which would be why you haven't hit that limit. client_max_body_size
is set in nginx, so your docker config would not have affected it.
as long as the app continues to have a setting less than nginx (so anything less than 256m
), and it doesn't cause servers to die, I don't care what this gets set to.
GA doesn't have a way to show us the bounds of what it has recorded so far, but Gareth is going to look at dumping it into BigQuery and getting them for us. If we want to keep measuring, this would normally be a custom dimension in GA and then we could do the calculation there.
Thanks to Gareth, an analysis of the month of March is available at https://docs.google.com/spreadsheets/d/1Tc0ZYnK5wwzq7EyXqCmM0yymmOtara3vPB1ED7MfLD8/edit#gid=462581354
tl;dr 99.23% of files uploaded were less than 10mb. That said, there were still 322 files that were larger than 10mb.
I think that
body-parser
might have some maximum size in server.js.Ideally the client would get a reasonable error message on failure.