)]}'
{"specs/juno/l3-agent-responsiveness.rst":[{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"91d67e9048551f5ab9cd00143df2e9f8270f0143","unresolved":false,"context_lines":[{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This blueprint proposes unifying *_sync_routers_task* and *_rpc_loop* in to a"},{"line_number":42,"context_line":"single processing loop.  This single loop will give priority to RPC messages."},{"line_number":43,"context_line":"In other words, an RPC message about a given router will bump that router ahead"},{"line_number":44,"context_line":"in the queue before all of the routers that are in the queue from the"},{"line_number":45,"context_line":"*_sync_routers_task* code path."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_698df530","line":42,"updated":"2014-06-19 05:34:33.000000000","message":"That sounds reasonable as they both call process_router after all.\nBut isn\u0027t synchronization still needed for _cleanup_namespaces?","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"6a33baba5cb0e3ead263982065e85972d954e04e","unresolved":false,"context_lines":[{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This blueprint proposes unifying *_sync_routers_task* and *_rpc_loop* in to a"},{"line_number":42,"context_line":"single processing loop.  This single loop will give priority to RPC messages."},{"line_number":43,"context_line":"In other words, an RPC message about a given router will bump that router ahead"},{"line_number":44,"context_line":"in the queue before all of the routers that are in the queue from the"},{"line_number":45,"context_line":"*_sync_routers_task* code path."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_853c5832","line":42,"in_reply_to":"1ae5cdf2_2c1f0872","updated":"2014-06-24 09:23:17.000000000","message":"The current impl. does\n\n1. get valid router_ids\n2. list namespaces\n3. delete namespaces 2 - 1,\n\nwhich is racy if a new router is processed between 1 and 2.\n\nBut rethinking on this, we can avoid race by swapping the order of 1 and 2.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b2ff4590fb7692c4c04ccd9842aa371cd4db8cdf","unresolved":false,"context_lines":[{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This blueprint proposes unifying *_sync_routers_task* and *_rpc_loop* in to a"},{"line_number":42,"context_line":"single processing loop.  This single loop will give priority to RPC messages."},{"line_number":43,"context_line":"In other words, an RPC message about a given router will bump that router ahead"},{"line_number":44,"context_line":"in the queue before all of the routers that are in the queue from the"},{"line_number":45,"context_line":"*_sync_routers_task* code path."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_2c1f0872","line":42,"in_reply_to":"1ae5cdf2_698df530","updated":"2014-06-23 18:21:03.000000000","message":"I don\u0027t believe that any synchronization is needed to clean up namespaces.  Is there a reason they need to be synchronized that I have not considered?","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93758a04765f81870b0be1a45cbd64a6d59bb95a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"--------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This blueprint proposes unifying *_sync_routers_task* and *_rpc_loop* in to a"},{"line_number":42,"context_line":"single processing loop.  This single loop will give priority to RPC messages."},{"line_number":43,"context_line":"In other words, an RPC message about a given router will bump that router ahead"},{"line_number":44,"context_line":"in the queue before all of the routers that are in the queue from the"},{"line_number":45,"context_line":"*_sync_routers_task* code path."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_ebb154e1","line":42,"in_reply_to":"1ae5cdf2_853c5832","updated":"2014-06-24 19:27:50.000000000","message":"Did you have a look at my implementation?  It swaps 1 and 2.  I see what you mean now and I had mentally dismissed it because my implementation took care of it.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"91d67e9048551f5ab9cd00143df2e9f8270f0143","unresolved":false,"context_lines":[{"line_number":82,"context_line":"ExclusiveRouterProcessor"},{"line_number":83,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A new worker will spawn and immediately call _process_router_update.  This"},{"line_number":86,"context_line":"method will immediately look to the queue for the next router update.  It will"},{"line_number":87,"context_line":"block (friendly green thread style block) until one is available."},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_69bb35c4","line":85,"updated":"2014-06-19 05:34:33.000000000","message":"If ExclusiveRouterProcessor is complicated, could we do the following instead to simplify things?\n\n* create per-router eventlet Queue\n* assign a eventlet thread to every per-router Queue above","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"61337ad2aa52ad9923fab0c16566178481c41037","unresolved":false,"context_lines":[{"line_number":82,"context_line":"ExclusiveRouterProcessor"},{"line_number":83,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A new worker will spawn and immediately call _process_router_update.  This"},{"line_number":86,"context_line":"method will immediately look to the queue for the next router update.  It will"},{"line_number":87,"context_line":"block (friendly green thread style block) until one is available."},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_7bd3cd00","line":85,"in_reply_to":"1ae5cdf2_69bb35c4","updated":"2014-06-20 07:34:30.000000000","message":"I felt the same when reviewing the implementation patch. Instead of a per-router Queue (Which is unbound in memory) I suggested a finite amount of queues, and to distribute the jobs according to a modulo on the router id. This way, updates to the same router will always end up in the same queue, which is critical since you don\u0027t want the same router being processed twice, in the same time, by different workers.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b2ff4590fb7692c4c04ccd9842aa371cd4db8cdf","unresolved":false,"context_lines":[{"line_number":82,"context_line":"ExclusiveRouterProcessor"},{"line_number":83,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A new worker will spawn and immediately call _process_router_update.  This"},{"line_number":86,"context_line":"method will immediately look to the queue for the next router update.  It will"},{"line_number":87,"context_line":"block (friendly green thread style block) until one is available."},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_6f1ae2c7","line":85,"in_reply_to":"1ae5cdf2_69bb35c4","updated":"2014-06-23 18:21:03.000000000","message":"Iwamoto.  My testing shows that a thread per router will be worse.  More than about 4-8 threads seems to slow things down.  Evidence shows that this suggestion could make the problem worse since all routers will be processed essentially at the same time.  The maintenance of existing routers could still drastically slow the responsiveness to new RPC updates.  Possibly even worse.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"6a33baba5cb0e3ead263982065e85972d954e04e","unresolved":false,"context_lines":[{"line_number":82,"context_line":"ExclusiveRouterProcessor"},{"line_number":83,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A new worker will spawn and immediately call _process_router_update.  This"},{"line_number":86,"context_line":"method will immediately look to the queue for the next router update.  It will"},{"line_number":87,"context_line":"block (friendly green thread style block) until one is available."},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_65b90c79","line":85,"in_reply_to":"1ae5cdf2_6f1ae2c7","updated":"2014-06-24 09:23:17.000000000","message":"I just wondered if simpler alternative is possible.  I see.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b2ff4590fb7692c4c04ccd9842aa371cd4db8cdf","unresolved":false,"context_lines":[{"line_number":82,"context_line":"ExclusiveRouterProcessor"},{"line_number":83,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A new worker will spawn and immediately call _process_router_update.  This"},{"line_number":86,"context_line":"method will immediately look to the queue for the next router update.  It will"},{"line_number":87,"context_line":"block (friendly green thread style block) until one is available."},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_6f6662bd","line":85,"in_reply_to":"1ae5cdf2_7bd3cd00","updated":"2014-06-23 18:21:03.000000000","message":"Assaf, this handles updating routers in two threads just as well.  It is just a little different.  I would argue that it is not more complicated.  Here is what the difference boils down to.\n\nYour suggestion assigns a router to one of multiple queues deterministically.  Coders love that word, deterministic, but I don\u0027t see any other advantage.  Each worker has to manage the updates in the same way, keeping track of when router data was fetch and comparing it to the update timestamp, etc.\n\nIn mine, a worker gets an update from a single queue and tries to grab a lock for the router.  If it doesn\u0027t get the lock then it passes the update to the one with the lock.\n\nThe latter is already implemented and under test which is a huge advantage.  Another advantage is that the queues cannot become unbalanced since there is a single queue.\n\nEverything else is the same.  Most of the complication in what I\u0027ve implemented will still be needed in the alternative.  Any illusion that it is much less complicated is just hand-waving.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"91d67e9048551f5ab9cd00143df2e9f8270f0143","unresolved":false,"context_lines":[{"line_number":143,"context_line":"get all of the router data after the updates are created."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"An update will be processed for a router iff the update timestamp is newer than"},{"line_number":146,"context_line":"the most recent router_data_timestamp."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Alternatives"},{"line_number":149,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_094551b3","line":146,"updated":"2014-06-19 05:34:33.000000000","message":"This seems to be a valid optimization, but I feel the current code that updates all routers anyway just in case is more robust.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b2ff4590fb7692c4c04ccd9842aa371cd4db8cdf","unresolved":false,"context_lines":[{"line_number":143,"context_line":"get all of the router data after the updates are created."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"An update will be processed for a router iff the update timestamp is newer than"},{"line_number":146,"context_line":"the most recent router_data_timestamp."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Alternatives"},{"line_number":149,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1ae5cdf2_cc8064c2","line":146,"in_reply_to":"1ae5cdf2_094551b3","updated":"2014-06-23 18:21:03.000000000","message":"I think you might have misunderstood this just a bit.  If this check is false it means that the router was updated since the update was requested.  This is no less robust.\n\nAll routers are added to the queue under the same conditions that the current code updates all routers.  So, they still get updated.  They are just updated on a lower priority than the RPC updates.","commit_id":"3d2ad5799d31dd66dd8c1ee6f678c72486077572"}]}
