Uploaded image for project: 'MetaBrainz'
  1. MetaBrainz
  2. MEB-67

Configure nginx in production to use X-Accel to serve data

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • Website
    • None
    • City

      On the old hosting provider we had the following location configured in nginx:

      location ^~ /internal/replication {
         internal;
         alias /home/metabrainz/metabrainz.org/replication_packets;
       }
      

      This allowed us to serve us replication packets for MusicBrainz directly through nginx without keeping uWSGI around for data transfer. This feature is called X-Accel.

      With the way new host is set up it's slightly more complicated to set this up. Replication data might be in a volume which is hosted on a different server than nginx. One solution is to have a "wrapper" nginx for MetaBrainz website. So the connection will look like this:

      nginx (on a gateway) <--> nginx (MeB-specific) <--> uWSGI
      

            Unassigned Unassigned
            roman Roman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package