)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bad2ada6942f835d4ea7bc3605cdd6ad1e94c19c","unresolved":false,"context_lines":[{"line_number":15,"context_line":"For now we have a green pool for the router ResourceProcessingQueue"},{"line_number":16,"context_line":"with 8 greenlet, but some of these routers can still be waiting, event"},{"line_number":17,"context_line":"worse thing is that there are time-consuming actions during the router"},{"line_number":18,"context_line":"processing procedure. For instance, installing arp entrys, iptables"},{"line_number":19,"context_line":"rules, route rules etc."},{"line_number":20,"context_line":"So when the VM is up, it will try to get meta via the local proxy"},{"line_number":21,"context_line":"hosting by the dvr router. But the router is not ready yet in that"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9fdfeff1_aaf06c68","line":18,"range":{"start_line":18,"start_character":51,"end_line":18,"end_character":57},"updated":"2019-02-14 08:00:16.000000000","message":"nitty nit: entries","commit_id":"39506c3efe1b2159ff8b4aa75b94f61cb11ef84d"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"a94c57332dc1a5e365b02db3e037022aabf91268","unresolved":false,"context_lines":[{"line_number":256,"context_line":"            self.metadata_driver)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        # L3 agent router processing green pool"},{"line_number":259,"context_line":"        self._pool \u003d eventlet.GreenPool(size\u003d8)"},{"line_number":260,"context_line":"        self._queue \u003d queue.ResourceProcessingQueue()"},{"line_number":261,"context_line":"        super(L3NATAgent, self).__init__(host\u003dself.conf.host)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_4a4345b0","line":259,"range":{"start_line":259,"start_character":40,"end_line":259,"end_character":46},"updated":"2019-02-11 15:56:19.000000000","message":"Please use a constant whose name self-documents the purpose instead of \u00278\u0027.","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"eb037414b46e4e253e0ae38060c70bdc567c191f","unresolved":false,"context_lines":[{"line_number":256,"context_line":"            self.metadata_driver)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        # L3 agent router processing green pool"},{"line_number":259,"context_line":"        self._pool \u003d eventlet.GreenPool(size\u003d8)"},{"line_number":260,"context_line":"        self._queue \u003d queue.ResourceProcessingQueue()"},{"line_number":261,"context_line":"        super(L3NATAgent, self).__init__(host\u003dself.conf.host)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_537afdf0","line":259,"range":{"start_line":259,"start_character":40,"end_line":259,"end_character":46},"in_reply_to":"9fdfeff1_4a4345b0","updated":"2019-02-12 23:23:10.000000000","message":"Done","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"3ee22ab84bc2fad50c3b9b5ef5af586d0adf5ca9","unresolved":false,"context_lines":[{"line_number":256,"context_line":"            self.metadata_driver)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        # L3 agent router processing green pool"},{"line_number":259,"context_line":"        self._pool \u003d eventlet.GreenPool(size\u003d8)"},{"line_number":260,"context_line":"        self._queue \u003d queue.ResourceProcessingQueue()"},{"line_number":261,"context_line":"        super(L3NATAgent, self).__init__(host\u003dself.conf.host)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_77e37635","line":259,"range":{"start_line":259,"start_character":40,"end_line":259,"end_character":46},"in_reply_to":"9fdfeff1_4a4345b0","updated":"2019-02-12 16:22:52.000000000","message":"Might be useful to keep track of the size in _pool_size, since in the resize code it can use it to determine if it\u0027s changed,  and not call resize().","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"a94c57332dc1a5e365b02db3e037022aabf91268","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"    def _resize_process_pool(self):"},{"line_number":374,"context_line":"        max_size \u003d 32 if len(self.router_info) \u003e 32 else len(self.router_info)"},{"line_number":375,"context_line":"        self._pool.resize(max([8, max_size]))"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_8a228d00","line":374,"range":{"start_line":374,"start_character":8,"end_line":374,"end_character":21},"updated":"2019-02-11 15:56:19.000000000","message":"I think a constant should also be used for 32 here.\n\nIt might be easier to say:\n\nL3_GREENLET_THREAD_MAX \u003d 32\nL3_GREENLET_THREAD_MIN \u003d 8\nresize_to \u003d max([L3_GREENLET_THREAD_MIN,\n                 min([L3_GREENLET_THREAD_MAX,\n                      len(self.router.info)])])\nself._pool.resize(resize_to)","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"002acecc38a1ff9d5f21f555c8280d031edaef8f","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"    def _resize_process_pool(self):"},{"line_number":374,"context_line":"        max_size \u003d 32 if len(self.router_info) \u003e 32 else len(self.router_info)"},{"line_number":375,"context_line":"        self._pool.resize(max([8, max_size]))"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_a1569705","line":374,"range":{"start_line":374,"start_character":8,"end_line":374,"end_character":21},"in_reply_to":"9fdfeff1_8a228d00","updated":"2019-02-11 16:52:23.000000000","message":"+1 to the idea of defining constants.","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"af7e6b2285234ad1f6ff21a82d44bc853249f458","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"    def _resize_process_pool(self):"},{"line_number":374,"context_line":"        max_size \u003d 32 if len(self.router_info) \u003e 32 else len(self.router_info)"},{"line_number":375,"context_line":"        self._pool.resize(max([8, max_size]))"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_9e564e06","line":374,"range":{"start_line":374,"start_character":8,"end_line":374,"end_character":21},"in_reply_to":"9fdfeff1_8a228d00","updated":"2019-02-11 16:02:28.000000000","message":"Another way would be:\n\nrouter_count \u003d len(self.router.info)\nif L3_GREENLET_THREAD_MIN \u003c\u003d router_count \u003c\u003d L3_GREENLET_THREAD_MAX:\n    self._pool.resize(router_count)\nelseif router_count \u003c L3_GREENLET_THREAD_MIN:\n    self._pool.resize(L3_GREENLET_THREAD_MIN)\nelse:\n    self._pool.resize(L3_GREENLET_THREAD_MAX)","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"eb037414b46e4e253e0ae38060c70bdc567c191f","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"    def _resize_process_pool(self):"},{"line_number":374,"context_line":"        max_size \u003d 32 if len(self.router_info) \u003e 32 else len(self.router_info)"},{"line_number":375,"context_line":"        self._pool.resize(max([8, max_size]))"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_1380f5be","line":374,"range":{"start_line":374,"start_character":8,"end_line":374,"end_character":21},"in_reply_to":"9fdfeff1_8a228d00","updated":"2019-02-12 23:23:10.000000000","message":"Done","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"002acecc38a1ff9d5f21f555c8280d031edaef8f","unresolved":false,"context_lines":[{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        registry.notify(resources.ROUTER, events.AFTER_DELETE, self, router\u003dri)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self._resize_process_pool()"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"    def init_extension_manager(self, connection):"},{"line_number":436,"context_line":"        l3_ext_manager.register_opts(self.conf)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_61ae6fe8","line":433,"range":{"start_line":433,"start_character":8,"end_line":433,"end_character":35},"updated":"2019-02-11 16:52:23.000000000","message":"This function should be called only at the end of the main function, \"_process_router_update\". If the number of the calculated threads is the same as the current one, don\u0027t resize the pool.\n\nBy doing this you\u0027ll have only one single point to calculate the number of needed threads.","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"79d31226533a5d78869e61b7ffc70de39c70d99c","unresolved":false,"context_lines":[{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        registry.notify(resources.ROUTER, events.AFTER_DELETE, self, router\u003dri)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self._resize_process_pool()"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"    def init_extension_manager(self, connection):"},{"line_number":436,"context_line":"        l3_ext_manager.register_opts(self.conf)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_c18db27c","line":433,"range":{"start_line":433,"start_character":8,"end_line":433,"end_character":35},"in_reply_to":"9fdfeff1_11723aae","updated":"2019-02-13 08:12:36.000000000","message":"Of course, only when the number of routers has changed. But I suggest to execute the function at the end of \"_process_router_update\" to have one single point, at the end of the main thread, to calculate the new number of pool threads.","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"a0802375e75bc26cc5a91f889390a174f4f361a6","unresolved":false,"context_lines":[{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        registry.notify(resources.ROUTER, events.AFTER_DELETE, self, router\u003dri)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self._resize_process_pool()"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"    def init_extension_manager(self, connection):"},{"line_number":436,"context_line":"        l3_ext_manager.register_opts(self.conf)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_11723aae","line":433,"range":{"start_line":433,"start_character":8,"end_line":433,"end_character":35},"in_reply_to":"9fdfeff1_61ae6fe8","updated":"2019-02-12 15:48:33.000000000","message":"Actually the pool resizing in _router_added and _router_removed are also running in a green thread. This is something like we are going to resize the pool but the current one has been set in a running greenlet. So here my thoughts is to extend the pool size before processing, and reduce it after removed.","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"88e09cb976604a03e43c132a8e8220d4746a34f3","unresolved":false,"context_lines":[{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        registry.notify(resources.ROUTER, events.AFTER_DELETE, self, router\u003dri)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self._resize_process_pool()"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"    def init_extension_manager(self, connection):"},{"line_number":436,"context_line":"        l3_ext_manager.register_opts(self.conf)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_13477e4e","line":433,"range":{"start_line":433,"start_character":8,"end_line":433,"end_character":35},"in_reply_to":"9fdfeff1_b02d5296","updated":"2019-02-13 19:24:28.000000000","message":"Makes sense","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"0aa474780a566bb3f01e06172d17be1e10321ef2","unresolved":false,"context_lines":[{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        registry.notify(resources.ROUTER, events.AFTER_DELETE, self, router\u003dri)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self._resize_process_pool()"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"    def init_extension_manager(self, connection):"},{"line_number":436,"context_line":"        l3_ext_manager.register_opts(self.conf)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9fdfeff1_b02d5296","line":433,"range":{"start_line":433,"start_character":8,"end_line":433,"end_character":35},"in_reply_to":"9fdfeff1_c18db27c","updated":"2019-02-13 16:07:13.000000000","message":"No, let me give a specific example for this. If one router is coming to process, it can add a greenlet room for next router when the router number is exceed the pool size, (for instance the 9th router can give the 10th a running chance), and the next may be processed more quickly. But if we add this resize to the end of the \"_process_router_update\", then 10th may still wait for a free greenlet to run. Make sense?","commit_id":"845f3bdfb331436e6c7eed0ece63c496c41306d4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"3eef14d61a026aa42e339e26f1d173b68b7105dc","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    def _resize_process_pool(self):"},{"line_number":377,"context_line":"        resize_to \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":378,"context_line":"                         min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":379,"context_line":"                              len(self.router_info)])])"},{"line_number":380,"context_line":"        self._pool.resize(resize_to)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_0fd0c11e","line":379,"updated":"2019-02-13 10:10:33.000000000","message":"maybe it could be good idea to add some debug or info message about new pool size?","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"0aa474780a566bb3f01e06172d17be1e10321ef2","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    def _resize_process_pool(self):"},{"line_number":377,"context_line":"        resize_to \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":378,"context_line":"                         min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":379,"context_line":"                              len(self.router_info)])])"},{"line_number":380,"context_line":"        self._pool.resize(resize_to)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_3095e287","line":379,"in_reply_to":"9fdfeff1_0fd0c11e","updated":"2019-02-13 16:07:13.000000000","message":"I\u0027m now considering Brian\u0027s suggestion adding a _pool_size attribute to the agent to track it.","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"33118b713ec76ea769832c687de98ad576bd83b0","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    def _resize_process_pool(self):"},{"line_number":377,"context_line":"        resize_to \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":378,"context_line":"                         min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":379,"context_line":"                              len(self.router_info)])])"},{"line_number":380,"context_line":"        self._pool.resize(resize_to)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_ae8dee7c","line":379,"in_reply_to":"9fdfeff1_0fd0c11e","updated":"2019-02-13 17:01:34.000000000","message":"info message would nice to have here IMO.","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"33118b713ec76ea769832c687de98ad576bd83b0","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    def _resize_process_pool(self):"},{"line_number":377,"context_line":"        resize_to \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":378,"context_line":"                         min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":379,"context_line":"                              len(self.router_info)])])"},{"line_number":380,"context_line":"        self._pool.resize(resize_to)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    def _router_added(self, router_id, router):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_aebbae0c","line":379,"in_reply_to":"9fdfeff1_3095e287","updated":"2019-02-13 17:01:34.000000000","message":"access to self._pool_size would be synchronized in such case?","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"33118b713ec76ea769832c687de98ad576bd83b0","unresolved":false,"context_lines":[{"line_number":379,"context_line":"                              len(self.router_info)])])"},{"line_number":380,"context_line":"        self._pool.resize(resize_to)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    def _router_added(self, router_id, router):"},{"line_number":383,"context_line":"        ri \u003d self._create_router(router_id, router)"},{"line_number":384,"context_line":"        registry.notify(resources.ROUTER, events.BEFORE_CREATE,"},{"line_number":385,"context_line":"                        self, router\u003dri)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_2e249e5f","line":382,"range":{"start_line":382,"start_character":8,"end_line":382,"end_character":21},"updated":"2019-02-13 17:01:34.000000000","message":"could be that called in the same time when _router_removed is called?","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"33118b713ec76ea769832c687de98ad576bd83b0","unresolved":false,"context_lines":[{"line_number":418,"context_line":"        else:"},{"line_number":419,"context_line":"            return True"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def _router_removed(self, ri, router_id):"},{"line_number":422,"context_line":"        if ri is None:"},{"line_number":423,"context_line":"            LOG.warning(\"Info for router %s was not found. \""},{"line_number":424,"context_line":"                        \"Performing router cleanup\", router_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9fdfeff1_ae172eee","line":421,"range":{"start_line":421,"start_character":8,"end_line":421,"end_character":23},"updated":"2019-02-13 17:01:34.000000000","message":"could be that called in the same time when _router_added is called?","commit_id":"d926b44e1c5db682e23e9b90ca0134ee5d8a38ad"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"b8178ad67d6247bef70ac6d62c39f01d0412ab7a","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    @lockutils.synchronized(\u0027resize_greepool\u0027)"},{"line_number":378,"context_line":"    def _resize_process_pool(self):"},{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_4eb9e276","line":377,"range":{"start_line":377,"start_character":5,"end_line":377,"end_character":27},"updated":"2019-02-13 17:21:25.000000000","message":"nice!","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"46759d766fa2453e032f91bb6129266e673a0f30","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    @lockutils.synchronized(\u0027resize_greepool\u0027)"},{"line_number":378,"context_line":"    def _resize_process_pool(self):"},{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_0953d46c","line":377,"range":{"start_line":377,"start_character":36,"end_line":377,"end_character":44},"updated":"2019-02-13 17:52:19.000000000","message":"nit: greenpool, but it still works :)","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d9fb4163ba03cbbafb336a77728db8266e830fd3","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        return legacy_router.LegacyRouter(*args, **kwargs)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    @lockutils.synchronized(\u0027resize_greepool\u0027)"},{"line_number":378,"context_line":"    def _resize_process_pool(self):"},{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_ec73f44c","line":377,"range":{"start_line":377,"start_character":36,"end_line":377,"end_character":44},"in_reply_to":"9fdfeff1_0953d46c","updated":"2019-02-14 08:26:54.000000000","message":"Done","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"b8178ad67d6247bef70ac6d62c39f01d0412ab7a","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.debug(\"Router processing queue green pool size: %d\","},{"line_number":383,"context_line":"                  self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_8e682af5","line":382,"range":{"start_line":382,"start_character":12,"end_line":382,"end_character":17},"updated":"2019-02-13 17:21:25.000000000","message":"How about info? For ops would be nice to have such info in runtime visible without changing debug option.","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d9fb4163ba03cbbafb336a77728db8266e830fd3","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.debug(\"Router processing queue green pool size: %d\","},{"line_number":383,"context_line":"                  self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_ac8f2c21","line":382,"range":{"start_line":382,"start_character":12,"end_line":382,"end_character":17},"in_reply_to":"9fdfeff1_29e6d8b1","updated":"2019-02-14 08:26:54.000000000","message":"Done","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d9fb4163ba03cbbafb336a77728db8266e830fd3","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.debug(\"Router processing queue green pool size: %d\","},{"line_number":383,"context_line":"                  self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_0c719844","line":382,"range":{"start_line":382,"start_character":12,"end_line":382,"end_character":17},"in_reply_to":"9fdfeff1_8e682af5","updated":"2019-02-14 08:26:54.000000000","message":"Done","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"46759d766fa2453e032f91bb6129266e673a0f30","unresolved":false,"context_lines":[{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.debug(\"Router processing queue green pool size: %d\","},{"line_number":383,"context_line":"                  self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_29e6d8b1","line":382,"range":{"start_line":382,"start_character":12,"end_line":382,"end_character":17},"in_reply_to":"9fdfeff1_8e682af5","updated":"2019-02-13 17:52:19.000000000","message":"maybe \"Re-sized router processing queue green pool size to: %d\"","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bad2ada6942f835d4ea7bc3605cdd6ad1e94c19c","unresolved":false,"context_lines":[{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.info(\"Resizing router processing queue green pool size to: %d\","},{"line_number":383,"context_line":"                 self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"    def _router_added(self, router_id, router):"},{"line_number":387,"context_line":"        ri \u003d self._create_router(router_id, router)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9fdfeff1_0a8c18d5","line":384,"updated":"2019-02-14 08:00:16.000000000","message":"Do we need to call this resize() always, even if old _pool_size is the same as new _pool_size?","commit_id":"39506c3efe1b2159ff8b4aa75b94f61cb11ef84d"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d9fb4163ba03cbbafb336a77728db8266e830fd3","unresolved":false,"context_lines":[{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.info(\"Resizing router processing queue green pool size to: %d\","},{"line_number":383,"context_line":"                 self._pool_size)"},{"line_number":384,"context_line":"        self._pool.resize(self._pool_size)"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"    def _router_added(self, router_id, router):"},{"line_number":387,"context_line":"        ri \u003d self._create_router(router_id, router)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9fdfeff1_e569c78b","line":384,"in_reply_to":"9fdfeff1_0a8c18d5","updated":"2019-02-14 08:26:54.000000000","message":"IMO, that GreenPool resize function looks quite simple, I think it is OK to call it everytime.","commit_id":"39506c3efe1b2159ff8b4aa75b94f61cb11ef84d"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"2021ee1d3773cfcbbe23b258f73dea98317c36fd","unresolved":false,"context_lines":[{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    @lockutils.synchronized(\u0027resize_greenpool\u0027)"},{"line_number":378,"context_line":"    def _resize_process_pool(self):"},{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.info(\"Resizing router processing queue green pool size to: %d\","}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_71c7d065","line":379,"updated":"2019-02-14 15:56:41.000000000","message":"If we\u0027re not going to compare old vs new and not call .resize() then we don\u0027t need to have this in the object, can just be pool_size \u003d ... right?","commit_id":"837c9283abd4ccb56d5b4ad0eb1ca435cd2fdf3b"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"8550d24b73e0d1c42a2c75ab934a280a12712aa7","unresolved":false,"context_lines":[{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    @lockutils.synchronized(\u0027resize_greenpool\u0027)"},{"line_number":378,"context_line":"    def _resize_process_pool(self):"},{"line_number":379,"context_line":"        self._pool_size \u003d max([ROUTER_PROCESS_GREENLET_MIN,"},{"line_number":380,"context_line":"                               min([ROUTER_PROCESS_GREENLET_MAX,"},{"line_number":381,"context_line":"                                    len(self.router_info)])])"},{"line_number":382,"context_line":"        LOG.info(\"Resizing router processing queue green pool size to: %d\","}],"source_content_type":"text/x-python","patch_set":9,"id":"9fdfeff1_70324560","line":379,"in_reply_to":"9fdfeff1_71c7d065","updated":"2019-02-16 14:12:23.000000000","message":"It could bee \"self._pool.size !\u003d pool_size\", but IMO we can call resize everytime, it is not too much expensive.","commit_id":"837c9283abd4ccb56d5b4ad0eb1ca435cd2fdf3b"}],"neutron/conf/agent/l3/config.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"a335ea22ce52fc2bdb66fb75ae601870aff85e73","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_45c45391","line":105,"updated":"2019-01-30 15:08:32.000000000","message":"Why 16? Why not 4, 12, 24 or 100?\n\nDid you do any analysis to reach this number?\n\nIf we (the developer community) don\u0027t know, how can we expect the operator to pick the right number? Based on what information?\n\nCan we instead calculate the number somehow, so we don\u0027t dump the responsibility on the operator?\n\nhttps://assafmuller.com/2017/05/19/when-is-not-cool-to-add-a-new-openstack-configuration-option/","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"e6d30ddc9db87e2fe0f17ce0f3fa1db2be7ab669","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_a0616dab","line":105,"in_reply_to":"9fdfeff1_45c45391","updated":"2019-01-30 15:49:13.000000000","message":"Make sense, actually we did the testing of this. Increase the green pool size of route processing queue can narrow down the probability of dvr installing timeout during the large number of concurrent processing actions. And for that value detail, we have a min value 8 here, it is the original value. For the maximum, IMO, we should also limit it. I will update that.\n\nAnd furthermore, for this new configuration here, I have made a choice once is that this is really worthy to? or hard coding it? I choiced the the former. Since the cloud operator can pick a proper value based on their testing results. And we now does not have a global attribute to calculate, how and when this can change automatically or metabolically. So it is now manually.\nThanks.","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d6592d68c66024c5b4c6b82a4905918aa7a52a64","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_96fca5b5","line":105,"in_reply_to":"9fdfeff1_7d01e705","updated":"2019-01-31 06:35:35.000000000","message":"A compute node could have 48, 96, 112, and more cpu, and sometimes not all the cpu for l3-agent can schedule to. There are cpu isolated toplogy can also make such algorithm not so much proper.","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"340b32cf4a472813b5c36b8ed592c5b107521717","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_d4df8566","line":105,"in_reply_to":"9fdfeff1_96fca5b5","updated":"2019-01-31 08:34:47.000000000","message":"Maybe we can do something more \"intelligent\" without config options? For example set number of green threads in pool based on number of routers handled by the agent.\nNumber of threads in pool can be then dynamically changed when routers are remove or added to agent.\nI don\u0027t think this would be very hard to implement.","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"68292f508adcdea23d7555a123c093e0bb23b4a4","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_7d01e705","line":105,"in_reply_to":"9fdfeff1_a0616dab","updated":"2019-01-30 20:32:56.000000000","message":"Right, this could be something like (1 + host.cpu_count()) // 2 with a minimum of 8 and just live in the code.  I do realize there are many places we use a config value for threads, just wondering how many per cpu is good.","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"c2c050f600598aa2379ea47b62443650f6316778","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                      \u0027external network. This mark will be masked with \u0027"},{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_e26fcff9","line":105,"in_reply_to":"9fdfeff1_d4df8566","updated":"2019-02-10 05:56:33.000000000","message":"Thanks Slawek, I will try that.","commit_id":"e25892a5dc1e940a5df1be4dbb6cd52be1cae1d8"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"340b32cf4a472813b5c36b8ed592c5b107521717","unresolved":false,"context_lines":[{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8, max\u003d32,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_74a1f9f7","line":106,"range":{"start_line":106,"start_character":22,"end_line":106,"end_character":28},"updated":"2019-01-31 08:34:47.000000000","message":"why this max value here?\nIIUC this is number of green threads, not native threads so it should scale quite well to even higher numbers than 32 if operator wants that, no?","commit_id":"0c88c6e6a0ac3bcafbf5a979e1111fb277f623f0"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"c2c050f600598aa2379ea47b62443650f6316778","unresolved":false,"context_lines":[{"line_number":103,"context_line":"                      \u00270xffff so that only the lower 16 bits will be used.\u0027)),"},{"line_number":104,"context_line":"    cfg.IntOpt(\u0027router_process_queue_size\u0027,"},{"line_number":105,"context_line":"               default\u003d16,"},{"line_number":106,"context_line":"               min\u003d8, max\u003d32,"},{"line_number":107,"context_line":"               help\u003d_(\u0027L3 router processing queue green pool size.\u0027)),"},{"line_number":108,"context_line":"]"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_62a67f56","line":106,"range":{"start_line":106,"start_character":22,"end_line":106,"end_character":28},"in_reply_to":"9fdfeff1_74a1f9f7","updated":"2019-02-10 05:56:33.000000000","message":"IMO, 32 is now 4 times larger than current value. More greenlet we have, more resource (memory, cpu etc) costs. L3-agent in compute node should take care the resource usage and not waste them, otherwise it may cause operators have too much burden on it. It can be a larger value here. But we should test it more.","commit_id":"0c88c6e6a0ac3bcafbf5a979e1111fb277f623f0"}],"neutron/tests/functional/agent/l3/test_legacy_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"46759d766fa2453e032f91bb6129266e673a0f30","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    def test_router_processing_pool_size(self):"},{"line_number":111,"context_line":"        router_info_1 \u003d self.generate_router_info(False)"},{"line_number":112,"context_line":"        r1 \u003d self.manage_router(self.agent, router_info_1)"},{"line_number":113,"context_line":"        self.assertEqual(8, self.agent._pool.size)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"        router_info_2 \u003d self.generate_router_info(False)"},{"line_number":116,"context_line":"        r2 \u003d self.manage_router(self.agent, router_info_2)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_69be2066","line":113,"range":{"start_line":113,"start_character":25,"end_line":113,"end_character":26},"updated":"2019-02-13 17:52:19.000000000","message":"should use the value from the agent, that way if they do change the test still passes","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"46759d766fa2453e032f91bb6129266e673a0f30","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertEqual(8, self.agent._pool.size)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        router_info_list \u003d [r1, r2]"},{"line_number":120,"context_line":"        for _i in range(33):"},{"line_number":121,"context_line":"            ri \u003d self.generate_router_info(False)"},{"line_number":122,"context_line":"            rtr \u003d self.manage_router(self.agent, ri)"},{"line_number":123,"context_line":"            router_info_list.append(rtr)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fdfeff1_49b9dc76","line":120,"range":{"start_line":120,"start_character":24,"end_line":120,"end_character":26},"updated":"2019-02-13 17:52:19.000000000","message":"max + 1","commit_id":"fea192d670b79c03d5275ad21fa2077cf2087d42"}]}
