[Openstack] Fw: problem in understanding interaction between swift proxy and other servers through swift source code

Hua ZZ Zhang zhuadl at cn.ibm.com
Fri Sep 27 01:55:10 UTC 2013


Pragya,

 my understanding of your question:

 Both of the controller is to handle the common HTTP REST request such as
 GET,PUT,POST,DELETE etc. The first controller is the entry point of
 proxy-server to handle the client requests which is exposed as Swift API
 externally. But the second controller is the entry point of account-server
 and won't be directly accessible by client. It will be invoked by the
 proxy server internally via HTTP RESTful interface to provide the specific
 account operations.

 -Zhang Hua(Edward)



                                                                           
             pragya jain                                                   
             <prag_2648 at yahoo.                                             
             co.in>                                                     To 
                                       "openstack at lists.openstack.org"     
             2013-09-27 上午           <openstack at lists.openstack.org>,    
             12:50                                                      cc 
                                                                           
                                                                   Subject 
             Please respond to         [Openstack] Fw: problem in          
                pragya jain            understanding interaction between   
             <prag_2648 at yahoo.         swift	proxy and other servers       
                  co.in>               through swift source code           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




hello,

I am forwarding this mail again.
Please help me in this regard.

---
Thanks

Pragya Jain

 ----- Forwarded Message -----
 From: pragya jain <prag_2648 at yahoo.co.in>
 To: "openstack at lists.openstack.org" <openstack at lists.openstack.org>
 Cc: anita goel <goel.anita at gmail.com>
 Sent: Tuesday, 24 September 2013 5:37 PM
 Subject: problem in understanding interaction between swift proxy and
 other servers through swift source code

 Hello,

 I am studying swift source code.

 My problem is:
 1) What are the roles of class AccountController defined in swift /
 proxy / controllers / account.py and class AccountController defined in
 swift / account / server.py
 2) How these two classes differ from each other and
 3) How these two class interact with each other i.e.
 According to my understanding, when a user make a request, __call__()
 function defined in Application class in swift / proxy /server.py is
 executed, which ,in turn, calls handle_request() function which sends the
 control to the swift / proxy / controllers

 Now, I can't understand through which function call will the control go
 from proxy server to other (account/container/object)  server

 Please help me in this regard


 _______________________________________________
 Mailing list:
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
 Post to     : openstack at lists.openstack.org
 Unsubscribe :
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130927/e0f27b2e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130927/e0f27b2e/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic05646.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130927/e0f27b2e/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130927/e0f27b2e/attachment-0002.gif>


More information about the Openstack mailing list