Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-7902

Use nginx X-Accel-Redirect to handle Webservice search requests rather than doing it in perl

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-11-03
    • Component/s: Web service
    • Labels:
      None

      Description

      Right now, when someone does a search query via webservice, it ties up a perl process as that perl process waits for the search server response, even though it doesn't need to do further processing on the response.

      Instead of having the perl code query the webservice search request, it may be possible to have the perl code return a response with the X-Accel-Redirect header to the nginx frontend, and then nginx will redo the request on a new url which will hit the search server directly. The perl is then available to handle the next request immediately.

      The X-Accel-Redirect header will contain a URL that must be handled by the nginx server that receives it, and matches against a location that reverse-proxies the search server.

        Attachments

          Activity

            People

            • Assignee:
              ianmcorvidae Ian McEwen
              Reporter:
              kepstin Calvin Walton
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2014-11-03