Page MenuHomePhabricator

Request to set body size and read timeout values, Wikidata primary sources tool VPS project
Closed, ResolvedPublic

Description

Use case: a data provider wants to upload/update a (possibly large) dataset to the Wikidata primary sources tool.

The following Web services accept file uploads:

Issue: current calls hit HTTP 413 error code (request entity too large).

Request: is it possible to set the following nginx directives to reasonable values?

  • client_max_body_size
  • proxy_read_timeout

To give an estimate, an average dataset with around 500k Wikidata statements weights 225 MB and takes roughly 2.5 minutes for a full upload, so I suggest the following values:

  • client_max_body_size 250m;
  • proxy_read_timeout 3m;

Event Timeline

Hjfocs renamed this task from Request to set to Request to set body size and read timeout values, Wikidata primary sources tool VPS project.Feb 8 2018, 8:59 AM

Current config:

proxy_read_timeout 3600s;
client_max_body_size 128m;

Change 415599 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[operations/puppet@production] dynamicproxy: raise client_max_body_size to 256m

https://gerrit.wikimedia.org/r/415599

Change 415599 merged by Andrew Bogott:
[operations/puppet@production] dynamicproxy: raise client_max_body_size to 256m

https://gerrit.wikimedia.org/r/415599