)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"280337191a5010ce5f8fcddac93803f3a6b46c1d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"While deployment tools might want to change the number of workers"},{"line_number":10,"context_line":"to match the number of cores (Or some fraction of it), any default"},{"line_number":11,"context_line":"other than 1 should be outright better."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"The numbers were taken from 19:34:"},{"line_number":14,"context_line":"https://www.youtube.com/watch?v\u003dAF9r_VQrcJ0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3ae8d1ca_cbf5c1cc","line":11,"updated":"2014-05-27 04:57:13.000000000","message":"The number of workers really depends on different deployment. The video from HP just indicates one certain deployment.\n\nIt\u0027s confusing to set the default to 10, not 8, not 4 or something else. IMO, adding additional words in comments or docs is more appropriate rather than changing the default value.\n\nThere are lots of different worker implementations among openstack sub-projects, like neutron-rpc-workers, neutron-api-workers. They are set to zero as default value.\n\nIn addition, for nova, some of workers are set to 1 by default and some of workers are set to cpu_count() by default.","commit_id":"a6f8edf6493eb00d6dc9d228fb0ade8715215e6e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"26c1fe1276dc4f5e882bf97b598de512527ae731","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"While deployment tools might want to change the number of workers"},{"line_number":10,"context_line":"to match the number of cores (Or some fraction of it), any default"},{"line_number":11,"context_line":"other than 1 should be outright better."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"The numbers were taken from 19:34:"},{"line_number":14,"context_line":"https://www.youtube.com/watch?v\u003dAF9r_VQrcJ0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3ae8d1ca_a6d6e7c3","line":11,"in_reply_to":"3ae8d1ca_cbf5c1cc","updated":"2014-05-27 08:36:25.000000000","message":"I think that the different configuration values should be examined on a case by case basis. Saying that some nova workers value is set to 1 by default isn\u0027t a very good argument when it comes to this specific change. I changed the workers value to cpu_count() which should scale with the deployment. I truly believe that any value other than 1 would be a better value in the absolute sense. The default value is incredibly important - We shouldn\u0027t be relying on the different deployment tools to do our jobs. But, going back to my original point, each configuration value should be examined separately, and in this case I think the default should not be 1.","commit_id":"a6f8edf6493eb00d6dc9d228fb0ade8715215e6e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"438a4820a6028a3df50d6b1a6f55ebaab2f6d10d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"other than 1 should be outright better."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Inspired from 19:34:"},{"line_number":14,"context_line":"https://www.youtube.com/watch?v\u003dAF9r_VQrcJ0"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"DocImpact"},{"line_number":17,"context_line":"Closes-Bug: #1323005"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1ae5cdf2_fdd4a321","line":14,"updated":"2014-06-02 17:46:29.000000000","message":"Ah yes, my colleague\u0027s summit presentation :)","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"}],"etc/metadata_agent.ini":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"438a4820a6028a3df50d6b1a6f55ebaab2f6d10d","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"# Number of separate worker processes for metadata server. Defaults to"},{"line_number":49,"context_line":"# half the number of CPU cores"},{"line_number":50,"context_line":"# metadata_workers \u003d"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Number of backlog requests to configure the metadata server socket with"},{"line_number":53,"context_line":"# metadata_backlog \u003d 2048"}],"source_content_type":"text/x-properties","patch_set":5,"id":"1ae5cdf2_5d2bd72f","line":50,"updated":"2014-06-02 17:46:29.000000000","message":"This change I\u0027m not so sure about.  When I originally created these tunables we immediately did a deployment and overwhelmed the nova metadata server.  This value and the nova one need to be tuned such that:\n\n(neutron_metadata_workers * num_network_nodes) ~\u003d (nova_metadata_workers)\n\nSetting this to some large value without increasing nova will simply move the problem elsewhere.\n\nSo I guess I\u0027d leave this value as a deployment setting unless it\u0027s causing tests/tempest failures.  Perhaps even something like 4 is palletable, but by default the number of api_workers is also 1, and that hasn\u0027t been a problem.","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2c13cac0fc7a8f15b551260431e1ed7daf001bbb","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"# Number of separate worker processes for metadata server. Defaults to"},{"line_number":49,"context_line":"# half the number of CPU cores"},{"line_number":50,"context_line":"# metadata_workers \u003d"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Number of backlog requests to configure the metadata server socket with"},{"line_number":53,"context_line":"# metadata_backlog \u003d 2048"}],"source_content_type":"text/x-properties","patch_set":5,"id":"1ae5cdf2_458fc775","line":50,"in_reply_to":"1ae5cdf2_5d2bd72f","updated":"2014-06-08 13:44:10.000000000","message":"I just checked and nova_metadata_workers defaults to the number of cores.\n\nCheck out nova/cmd/api_metadata.py, and nova/service, WSGIService.__init__. It uses getattr on CONF.metadata_workers.\n\nIt isn\u0027t as precise as neutron_metadata_workers * num_network_nodes, but it seems reasonable to me? Since nova uses up all cores for metadata, it would make sense for Neutron to use more than 1 worker by default.","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"438a4820a6028a3df50d6b1a6f55ebaab2f6d10d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"# metadata_workers \u003d"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Number of backlog requests to configure the metadata server socket with"},{"line_number":53,"context_line":"# metadata_backlog \u003d 2048"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"# URL to connect to the cache backend."},{"line_number":56,"context_line":"# default_ttl\u003d0 parameter will cause cache entries to never expire."}],"source_content_type":"text/x-properties","patch_set":5,"id":"1ae5cdf2_5daaf7d4","line":53,"updated":"2014-06-02 17:46:29.000000000","message":"I would agree with this change, or even making it 4K (looks like the slide had the wrong value)","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2c13cac0fc7a8f15b551260431e1ed7daf001bbb","unresolved":false,"context_lines":[{"line_number":50,"context_line":"# metadata_workers \u003d"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Number of backlog requests to configure the metadata server socket with"},{"line_number":53,"context_line":"# metadata_backlog \u003d 2048"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"# URL to connect to the cache backend."},{"line_number":56,"context_line":"# default_ttl\u003d0 parameter will cause cache entries to never expire."}],"source_content_type":"text/x-properties","patch_set":5,"id":"1ae5cdf2_2592bb9f","line":53,"in_reply_to":"1ae5cdf2_5daaf7d4","updated":"2014-06-08 13:44:10.000000000","message":"Done","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"}],"neutron/agent/metadata/agent.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"f69cc429f104e0a4bcb1db2885b1a975f574e83a","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count(),"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ae8d1ca_4c0a7922","line":310,"updated":"2014-05-28 09:05:02.000000000","message":"There will be other OpenStack services running on the same system and I don\u0027t think we should assume that the operator wants more services running than the CPU count.","commit_id":"abd63a8ba8d21bdbd9951f98f97e1fa2091d2e07"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"7ba09b3508ad3f823cc6dd60fafcf90e275c7cd4","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count(),"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ae8d1ca_8c5e4144","line":310,"in_reply_to":"3ae8d1ca_4c0a7922","updated":"2014-05-28 09:28:23.000000000","message":"The problem I have is that 1 is a rotten default value for metadata_workers. 2, 4, or 10 get -1\u0027s asking where I\u0027d come up with the number. Overcommiting CPU cores via the current proposal is arguable (I\u0027m still in favor of this this approach however).\n\nI think that keeping 1 as the default value is the worst choice out of all of the options we have.","commit_id":"abd63a8ba8d21bdbd9951f98f97e1fa2091d2e07"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"bd76204cbf80407b360acf55c3479998c66ca4d3","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count(),"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ae8d1ca_4f5ee8e7","line":310,"in_reply_to":"3ae8d1ca_8c5e4144","updated":"2014-05-28 11:07:23.000000000","message":"Changing to cpu_count() // 2 following a conversation on #openstack-neutron.","commit_id":"abd63a8ba8d21bdbd9951f98f97e1fa2091d2e07"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"3a5fd6eaa297af1ce88c2232c7233c58a25d6270","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count() // 2,"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3ae8d1ca_d13febd4","line":310,"updated":"2014-05-28 18:37:30.000000000","message":"um...not sure that having a default that is variable on the hw platform that we run on is such a good idea; a default value should be static in nature. Have you found other examples where something like this is done?","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4a1654940b8e5b2d62ee5f480bc016829a6fa687","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count() // 2,"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3ae8d1ca_0f2be794","line":310,"in_reply_to":"3ae8d1ca_0fff67ab","updated":"2014-05-28 22:43:14.000000000","message":"interesting, thanks for bringing this to my attention...can\u0027t say I agree...but I won\u0027t get in the way of this review if people feel good about this change. Main reason why I am not particularly happy with making this value dependent on the platform is the potential effect that it can have to the reproducibility of test runs, at least in theory.","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"ecdf8e106817a4beb24d9028f7a22d2a1cf66063","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count() // 2,"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3ae8d1ca_0fff67ab","line":310,"in_reply_to":"3ae8d1ca_d13febd4","updated":"2014-05-28 22:21:44.000000000","message":"as far as I know, nova conductor sets the number of workers by cpu_count() if it is not explicitly provided.","commit_id":"4db46a0a25284db2427e4da2324090cdc31ff819"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b4d50a5b8e00343f1fbc5a4e4f4e28ae99448313","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count() // 2,"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_6573e315","line":310,"updated":"2014-06-08 14:34:10.000000000","message":"only concern here is an exception for the multiprocessing.cpu_count. please see commit in review message - that catches exception and returns 1","commit_id":"e282818938ea85a2bf38c161654161e8022ab961"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"cd0725099732936863727410a051d683e51784e0","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":308,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":309,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":310,"context_line":"                   default\u003dmultiprocessing.cpu_count() // 2,"},{"line_number":311,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":312,"context_line":"                          \u0027server\u0027)),"},{"line_number":313,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_e5161355","line":310,"in_reply_to":"1ae5cdf2_6573e315","updated":"2014-06-08 14:59:31.000000000","message":"Done","commit_id":"e282818938ea85a2bf38c161654161e8022ab961"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bb63e9aa181ccab98048d47fe8dd75e6d4152c90","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":307,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":308,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":309,"context_line":"                   default\u003dutils.cpu_count() // 2,"},{"line_number":310,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":311,"context_line":"                          \u0027server\u0027)),"},{"line_number":312,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_5f1cef13","line":309,"updated":"2014-06-08 20:28:11.000000000","message":"do we need to stub this out during unit tests?","commit_id":"10bf897bf3a10681f5a8769f387599271d57dadb"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2e29e448dc4990d07d27d5d739ccfd7a1eb68a7b","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":307,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":308,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":309,"context_line":"                   default\u003dutils.cpu_count() // 2,"},{"line_number":310,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":311,"context_line":"                          \u0027server\u0027)),"},{"line_number":312,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_f4f23a6e","line":309,"in_reply_to":"1ae5cdf2_5f1cef13","updated":"2014-06-09 08:02:14.000000000","message":"It doesn\u0027t appear to matter what this is set to. \n\nLine 482 of the unit test class[1] that exercises this class wipes out the config here with an explicitly set one. \n\n1. https://github.com/openstack/neutron/blob/6cde36c7dd0d08bc15136a699a9481ad456422dc/neutron/tests/unit/test_metadata_agent.py#L482","commit_id":"10bf897bf3a10681f5a8769f387599271d57dadb"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"23cbb293a1cd02287dddcf4d1a8b9b80574fe8af","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                   default\u003d\u0027$state_path/metadata_proxy\u0027,"},{"line_number":307,"context_line":"                   help\u003d_(\u0027Location for Metadata Proxy UNIX domain socket\u0027)),"},{"line_number":308,"context_line":"        cfg.IntOpt(\u0027metadata_workers\u0027,"},{"line_number":309,"context_line":"                   default\u003dutils.cpu_count() // 2,"},{"line_number":310,"context_line":"                   help\u003d_(\u0027Number of separate worker processes for metadata \u0027"},{"line_number":311,"context_line":"                          \u0027server\u0027)),"},{"line_number":312,"context_line":"        cfg.IntOpt(\u0027metadata_backlog\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_28944643","line":309,"in_reply_to":"1ae5cdf2_f4f23a6e","updated":"2014-06-09 08:20:31.000000000","message":"Thanks Kevin.","commit_id":"10bf897bf3a10681f5a8769f387599271d57dadb"}]}
