alphagov/EFG — pull request #70 by jabley (2012-10-23 12:12:14+00:00)
Title: Add EFG-specific unicorn config

This is intended to address https://www.pivotaltracker.com/story/show/38129311

We can reproduce the problem in preview - details redacted from this public forum but essentially it involves doing a loan report as a CfE user against all states for a given lender, and all loan schemes.

EFG currently has expensive (from a response-time perspective) reports processed on the request thread. The correct fix is to make the reports fast, and if that isn't sufficient, then possibly move to a background processing model where the client can poll for completion.

This short-term fix instead defines an application-specific unicorn configuration file. It follows the same model as whitehall, as discussed with @nickstenning.

We increase the timeout from the default of 60 seconds to 120 seconds, and we also increase the number of workers to ensure that the app remains responsive even if concurrent reports are being generated.