Wiki page returns error code 502
Seeing a couple of reports of gateway timeouts when viewing certain wiki pages. This seems to happen when the page exceeds a certain number of lines, and may depend on the complexity of the markdown being rendered.
Test: https://gitlab.com/services-support-testing/slack/wikis/api-doc (internal)
In my test, I copied the contents from a user's wiki and reproduced the behavior. I cut the contents down to ~2000 lines from ~5000 and the page loads fine.
Logs: https://log.gitlab.net/app/kibana#/doc/AWM6itvP1NBBQZg_ElD1/pubsub-workhorse-inf-gprd-2018.06.22/doc?id=AWQljEuATBK0X_Bt9gU5&_g=h@44136fa (internal)
https://gitlab.com/gitlab-com/support-forum/issues/3550#note_81604938 suggests this seems to happen when the wiki consists of more than 1200 lines, and that the wiki is accessible from /edit
.
ZD: https://gitlab.zendesk.com/agent/tickets/98832, https://gitlab.zendesk.com/agent/tickets/98826 (internal)
/cc @fjsanpedro @DouweM