I noticed that WMF production accidentally had no PHP time limits. Possibly it has been like that for as long as three years. The HHVM configuration purportedly set the time limit to 60 seconds, but that did not take effect.
I've deployed a change to set PHP time limits as follows:
* 60 seconds for GET requests * 200 seconds for POST requests * 20 minutes for ordinary job queue jobs * 1 day for video scaler jobs
If it really has been three years of no time limits, this change may break some accumulated assumptions. But note that Varnish times out waiting for Apache after 120 seconds, so for most requests longer than this, it would not have been obvious that HHVM continued to run, an error was delivered anyway.
The logs so far show a trickle of timeouts from the parser, which is normal by historical standards.
https://phabricator.wikimedia.org/T97192
-- Tim Starling
wikitech-l@lists.wikimedia.org