[Openstack] Horizon and radosgw with nginx

Sergey Motovilovets motovilovets.sergey at gmail.com
Sun Jul 6 16:29:11 UTC 2014


Hello everyone.

I'm running Horizon with nginx and radosgw with tengine (nginx fork with an
option to disable fastcgi request buffering).
The thing is that when I upload files using swift console client directly
to a node hosting radosgw, everything works like a charm, but Horizon
doesn't let me upload files with a size more 64K, and it's not
about client_max_body_size in nginx. Horizon gets first 64K of the file,
then freezes until "Connection reset by peer" happens (inactivity timeout
on radosgw node I suppose).
Has anyone noticed that behavior? Any thoughts?

*nginx conf on node hosting horizon*:
...
client_max_body_size 100m;
...
location / { try_files $uri @horizon; }
location @horizon {
    include uwsgi_params;
    uwsgi_pass unix:/tmp/horizon.sock;
}
...

*tengine conf on node hosting radosgw*:
...
client_max_body_size 100m;
fastcgi_request_buffering off;
...
location / {
    include fastcgi_params;
    fastcgi_pass_header     Authorization;
    fastcgi_pass_request_headers on;

    if ($request_method  = PUT ) {
      rewrite ^ /PUT$request_uri;
    }

    fastcgi_pass unix:/tmp/radosgw.sock;
}
location /PUT/ {
    internal;
    fastcgi_pass_header     Authorization;
    fastcgi_pass_request_headers on;

    include fastcgi_params;
    fastcgi_param  CONTENT_LENGTH   $content_length;

    fastcgi_pass unix:/tmp/radosgw.sock;
}

*ceph.conf:*
...
[client.radosgw]
...
    rgw print continue = false
...

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140706/bfab9236/attachment.html>


More information about the Openstack mailing list