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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2014-11-03
    • None
    • Web service
    • None

      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.

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

              Created:
              Updated:
              Resolved:

                Version Package
                2014-11-03