<div dir="ltr">Hello,Stackers<div><br></div><div>First question:<br><div style>I built a swift cluser,two proxy server , one nginx server ---load balance for two swift proxy server,and two storage server</div><div style>
<br></div><div style>1.when I stop swift proxy service on one proxy server</div></div><div style>The command " swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass list" can not list all containers.</div>
<div style><br></div><div style>like this,before I stop the proxy service ,there are five containers.</div><div style><br></div><div style><div>root@proxy:~# swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass list</div>
<div>1</div><div>2</div><div>myfile</div><div>test</div><div>test3</div><div><br></div><div style>once I stop one proxy server ,there are only 3 .</div><div style><br></div><div style><div>root@proxy:~# swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass list</div>
<div>1</div><div>2</div><div>test</div><div style>the nginx.conf like this</div></div><div style><div>worker_processes 1;</div><div>events {</div><div> worker_connections 1024;</div><div>}</div><div>http {</div><div>
include mime.types;</div><div> default_type application/octet-stream;</div><div> sendfile on;</div><div> keepalive_timeout 65;</div><div> client_max_body_size 10024M;</div><div> upstream swift {</div>
<div> server <a href="http://172.18.56.199:8080">172.18.56.199:8080</a>;</div><div> server <a href="http://172.18.56.235:8080">172.18.56.235:8080</a>;</div><div> }</div><div> server {</div><div> listen 8080;</div>
<div> server_name authserver;</div><div> location / {</div><div> proxy_pass <a href="http://authserver/">http://authserver/</a>;</div><div> }</div><div> error_page 500 502 503 504 /50x.html;</div>
<div> location = /50x.html {</div><div> root html;</div><div> }</div><div> }</div><div>}</div><div style> </div><div style><br></div><div style>Question 2:</div><div style><br></div><div style>
Because of the nginx problem ,so I change to use pound ,but </div><div style>when I execute the command</div><div style>swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass stat<br>
</div><div style>and </div><div style>swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass list <br></div><div style> </div><div style>It runs successfully</div>
<div style><br></div><div style>but</div><div style>can not execute post or upload </div><div style><br></div><div style>the error like this</div><div style><div>root@proxy:~# swift -V 2 -A <a href="http://172.18.56.195:5000/v2.0">http://172.18.56.195:5000/v2.0</a> -U service:glance -K pass post 3</div>
<div>Container PUT failed: <a href="http://172.18.56.194:80/v1/AUTH_aadcbf03cf904eb68742478c9ae38eb4/3">http://172.18.56.194:80/v1/AUTH_aadcbf03cf904eb68742478c9ae38eb4/3</a> 501 Not Implemented This method may not be used.</div>
<div><br></div><div>the pound.conf like this</div><div><br></div></div><div style><div><br></div><div>User "root"</div><div>Group "root"</div><div>ListenHTTP</div><div> Address 172.18.56.194</div>
<div> Port 80</div><div><br></div><div>End</div><div><br></div><div> Service</div><div> #HeadRequire "(Host: <a href="http://your_host.com">your_host.com</a>|Host: <a href="http://www.your_host.com">www.your_host.com</a>)"</div>
<div> BackEnd</div><div> Address 172.18.56.235</div><div> Port 8080</div><div> End</div><div> BackEnd</div><div> Address 172.18.56.199</div><div> Port 8080</div><div>
End</div><div><br></div><div>End</div><div><br></div></div><div style><br></div><div style><br></div><div style>Cheers</div><div style>Wenna</div><div style><br></div><div style><br></div><div style><br></div></div>
</div></div>