502 while submitting a large merge request
With GitLab 8.4 (stable), I'm hitting an issue while submitting a merge request with about 400 files touched. The browser waits, then shows a 502 Proxy Error. I've watched the Unicorn worker using 100% CPU for about 30 minutes. When it stopped (it did), the merge request was not visible in GitLab, as it probably failed.
I've raised the ProxyTimeout
option in Apache and the timeout
option in GitLab. This doesn't seem to be a memory issue (less than 25% RAM, 0% swap).
The merge request doesn't contain anything really big, but there are a few minified JavaScript / CSS files, one of them is about 10 MB.
It created a 500 GB (yes, GB!) production.log
(which, for obvious reasons, I will not include here), in which I can read Mysql2::Error: MySQL server has gone away
. Because of its size, it's hard to get anything from it.