<p>As far as i can tell gluster uses swift for the object storage part. Swift han an arbitrarily set maximum file size of 5 gb. After that you are supposed to split the file in pieces and create a manifest file that is used to concatenate the pieces when downloading. The "st" command does this automatically. Thats the reason for setting clirnt_max_body_size to 5 G.</p>
<div class="gmail_quote">On 2011 8 1 09:15, "Gangalwar" <<a href="mailto:gaurav@gluster.com">gaurav@gluster.com</a>> wrote:<br type="attribution">> Hi,<br>> Thanks for reporting this issue, it will be fixed in the next release.<br>
> Also could i know why you are using client_max_body_size 5G; in the config file?<br>> <br>> Thanks,<br>> Gaurav<br>> <br>> ________________________________<br>> <br>> Hello,<br>> <br>> Don't know if this is the best way to report a bug, but here goes :).<br>
> <br>> I have 2 gluster servers running glusterfs-3.3beta1 on which I have<br>> configured the Object Storage platform. The servers are on a private<br>> network with no public IP's and i was trying to load balance the<br>
> object storage system using nginx. It worked great except that every<br>> other request would be answered with a 503 error. Upon inspection of<br>> /var/log/swift/proxy.error I found the following traceback:<br>
> <br>> Jul 29 13:28:53 storage05 proxy-server ERROR 500 Traceback (most<br>> recent call last):#012 File<br>> "/usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py",<br>
> line 891, in __call__#012 res = getattr(self, req.method)(req)#012<br>> File "/usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py",<br>> line 733, in GET#012 if file_obj.metadata[X-ETAG] in<br>
> request.if_none_match:#012NameError: global name 'X' is not<br>> defined#012 From Object Server <a href="http://127.0.0.1:6010">127.0.0.1:6010</a><<a href="http://127.0.0.1:6010">http://127.0.0.1:6010</a>><br>
> <br>> (txn:<br>> tx2abf0954-1043-4976-a692-39da260d9271)<br>> <br>> It seams that at line 733 in<br>> /usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py,<br>> is trying to call X-ETAG instead of X_ETAG (i think its a typo).<br>
> Replacing the dash with an<br>> underscore takes care of the error on my system. If its of any help,<br>> here is the nginx config i used:<br>> <br>> <br>> worker_processes 1;<br>> <br>> events {<br>
> worker_connections 1024;<br>> }<br>> <br>> <br>> http {<br>> include mime.types;<br>> default_type application/octet-stream;<br>> <br>> sendfile on;<br>> keepalive_timeout 65;<br>
> <br>> upstream backend-secure {<br>> server <a href="http://192.168.5.5:443">192.168.5.5:443</a><<a href="http://192.168.5.5:443">http://192.168.5.5:443</a>>;<br>> server <a href="http://192.168.5.6:443">192.168.5.6:443</a><<a href="http://192.168.5.6:443">http://192.168.5.6:443</a>>;<br>
> }<br>> <br>> server {<br>> listen 80;<br>> client_max_body_size 5G;<br>> location / {<br>> proxy_pass <a href="https://backend-secure">https://backend-secure</a>;<br>> proxy_set_header Host $host;<br>
> proxy_set_header X-Real-IP $remote_addr;<br>> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>> proxy_set_header X-Forwarded-Proto https;<br>> proxy_redirect off;<br>
> <br>> }<br>> }<br>> server {<br>> listen 443 ssl;<br>> client_max_body_size 5G;<br>> ssl_certificate /etc/nginx/ssl/cert.crt;<br>> ssl_certificate_key /etc/nginx/ssl/key.key;<br>
> location / {<br>> proxy_pass <a href="https://backend-secure">https://backend-secure</a>;<br>> proxy_set_header Host $host;<br>> proxy_set_header X-Real-IP $remote_addr;<br>> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
> proxy_set_header X-Forwarded-Proto https;<br>> proxy_redirect off;<br>> }<br>> }<br>> }<br>> <br>> <br>> Best regards,<br>> Gabriel<br>> _______________________________________________<br>
> Gluster-users mailing list<br>> <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><mailto:<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>><br>> <a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
> <br></div>