)]}'
{"id":"openstack%2Fopenstack-ansible-plugins~582201","triplet_id":"openstack%2Fopenstack-ansible-plugins~stable%2Fpike~Ic61364b304bd4cc614d3b945f06fc7297a65e440","project":"openstack/openstack-ansible-plugins","branch":"stable/pike","hashtags":[],"change_id":"Ic61364b304bd4cc614d3b945f06fc7297a65e440","subject":"Correct severe performance problem","status":"ABANDONED","created":"2018-07-12 14:37:48.000000000","updated":"2018-09-10 20:50:27.000000000","total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"0b56762ca49d2221fe3176d6a5993d2543bcb339","_number":582201,"virtual_id_number":582201,"owner":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},{"value":1,"date":"2018-07-12 15:30:29.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":1,"default_value":0,"optional":true},"Code-Review":{"disliked":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"all":[{"value":-1,"date":"2018-07-12 20:02:50.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"value":0,"date":"2018-07-12 14:57:15.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","value":-1,"default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Backport-Candidate":{"all":[{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"}],"values":{"-1":"Not A Backport Candidate"," 0":"Backport Review Needed","+1":"Proposed Backport"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2018-07-12 14:57:15.000000000","updated_by":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"reviewer":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"state":"REVIEWER"},{"updated":"2018-07-12 15:30:29.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2018-07-12 20:02:50.000000000","updated_by":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"reviewer":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"state":"REVIEWER"}],"messages":[{"id":"7b91bb75fea0b6c7dab0c6696fc66c7347c67637","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2018-07-12 14:37:48.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"afb79c2f55167f794127cf061684ea7bcb72dfd0","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2018-07-12 14:51:25.000000000","message":"Patch Set 2: Commit message was updated.","accounts_in_message":[],"_revision_number":2},{"id":"693295ac07db8c7bb3ca3bc1c8c330dd91fd5eac","author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"date":"2018-07-12 14:57:15.000000000","message":"Patch Set 2: Code-Review+1\n\nSee comment on queens.","accounts_in_message":[],"_revision_number":2},{"id":"43abdd6401bed89c33c645c2bd0215d3eac8da2c","author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"date":"2018-07-12 14:57:20.000000000","message":"Patch Set 2:\n\ncheck experimental","accounts_in_message":[],"_revision_number":2},{"id":"047246f62eb9f1fbe5e3c9aeafe2931ce0c5002e","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-07-12 15:30:29.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- build-openstack-sphinx-docs http://logs.openstack.org/01/582201/2/check/build-openstack-sphinx-docs/2a5d856/html/ : SUCCESS in 3m 48s\n- openstack-ansible-linters http://logs.openstack.org/01/582201/2/check/openstack-ansible-linters/1689053/ : SUCCESS in 7m 04s\n- openstack-ansible-functional-centos-7 http://logs.openstack.org/01/582201/2/check/openstack-ansible-functional-centos-7/124c905/ : SUCCESS in 7m 32s\n- openstack-ansible-functional-opensuse-423 http://logs.openstack.org/01/582201/2/check/openstack-ansible-functional-opensuse-423/a5e0175/ : SUCCESS in 7m 33s\n- openstack-ansible-functional-ubuntu-xenial http://logs.openstack.org/01/582201/2/check/openstack-ansible-functional-ubuntu-xenial/2c66e9e/ : SUCCESS in 7m 44s","accounts_in_message":[],"_revision_number":2},{"id":"8970671bd68fb9c934826817558f539c500ccc72","author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"date":"2018-07-12 20:02:50.000000000","message":"Patch Set 2: Code-Review-1\n\nWe need to see if this ansible version is affected by https://review.openstack.org/#/c/582358/.","accounts_in_message":[],"_revision_number":2},{"id":"ddafe8d095dbd690dc18c736ea778d49e86ba305","author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"date":"2018-07-13 14:58:58.000000000","message":"Removed Code-Review+1 by Jean-Philippe Evrard \u003cjean-philippe@evrard.me\u003e\n","accounts_in_message":[],"_revision_number":2},{"id":"0b56762ca49d2221fe3176d6a5993d2543bcb339","author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"date":"2018-09-10 20:50:27.000000000","message":"Abandoned\n\ndupe review.. https://review.openstack.org/601342 supersedes this.","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"85bb9f9a267dde15c19850af601216ec61315023","revisions":{"ec5db688037b5dcf96edf16dc65d545d6987fe34":{"kind":"REWORK","_number":1,"created":"2018-07-12 14:37:48.000000000","uploader":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"ref":"refs/changes/01/582201/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-plugins","ref":"refs/changes/01/582201/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/1"}}},"commit":{"parents":[{"commit":"e36a35d4c0620bcac9357a3ff9689704d9863637","subject":"Remove *.txt file content from py_pkgs lookup output","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/e36a35d4c0620bcac9357a3ff9689704d9863637"}]}],"author":{"name":"Kevin Carter","email":"kevin.carter@rackspace.com","date":"2018-07-12 14:33:38.000000000","tz":-300},"committer":{"name":"Kevin Carter","email":"kevin.carter@rackspace.com","date":"2018-07-12 14:37:28.000000000","tz":-300},"subject":"Correct severe performance problem","message":"Correct severe performance problem\n\nWhen running our plugins we\u0027re seeing a severe performance impact in\nthe ansible run-time. As it turns out, within the linear strategy we\u0027re\nlooping over all physical hosts in an environment and pulling address\ninformation out to store as a task variable. This action causes all\ntasks to reload all {group,host}_vars for all hosts and that repetitive\naction results in a massive slowdown, especially when there are many\nhosts within the inventory.\n\nResults from a normal OSA playbook run on 50 hosts:\n  time openstack-ansible openstack-hosts-setup.yml --forks 15\n  real    37m44.263s\n  user    35m30.984s\n  sys     2m23.252s\n\nResults with the strategy plugin disabled on 50 hosts:\n  time ANSIBLE_STRATEGY_PLUGINS\u003dfalse openstack-ansible openstack-hosts-setup.yml --forks 15\n  real    5m8.641s\n  user    6m30.792s\n  sys     1m32.512s\n\nThis change scopes the physical host look up to the task and target host\nand adds conditionals around the process to ensure we\u0027re not forcing a lookup\nthat has no chance of succeeding.\n\nResults with this patch applied on 50 hosts and no forks:\n  time openstack-ansible openstack-hosts-setup.yml\n  real    6m40.573s\n  user    7m53.336s\n  sys     1m25.828s\n\nShould anything like this come up again debug statements have been added\nto the method so that we can enable verbose mode and know what is being\nparsed.\n\nChange-Id: Ic61364b304bd4cc614d3b945f06fc7297a65e440\nSigned-off-by: Kevin Carter \u003ckevin.carter@rackspace.com\u003e\n(cherry picked from commit 785d32be7107ab1744670183d7cad27cf62b2ae7)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/ec5db688037b5dcf96edf16dc65d545d6987fe34"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/ec5db688037b5dcf96edf16dc65d545d6987fe34"}]},"branch":"refs/heads/stable/pike"},"85bb9f9a267dde15c19850af601216ec61315023":{"kind":"NO_CODE_CHANGE","_number":2,"created":"2018-07-12 14:51:25.000000000","uploader":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"ref":"refs/changes/01/582201/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-plugins","ref":"refs/changes/01/582201/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/01/582201/2"}}},"commit":{"parents":[{"commit":"e36a35d4c0620bcac9357a3ff9689704d9863637","subject":"Remove *.txt file content from py_pkgs lookup output","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/e36a35d4c0620bcac9357a3ff9689704d9863637"}]}],"author":{"name":"Kevin Carter","email":"kevin.carter@rackspace.com","date":"2018-07-12 14:33:38.000000000","tz":-300},"committer":{"name":"Kevin Carter (cloudnull)","email":"kevin@cloudnull.com","date":"2018-07-12 14:51:22.000000000","tz":0},"subject":"Correct severe performance problem","message":"Correct severe performance problem\n\nWhen running our plugins we\u0027re seeing a severe performance impact in\nthe ansible run-time. As it turns out, within the linear strategy we\u0027re\nlooping over all physical hosts in an environment and pulling address\ninformation out to store as a task variable. This action causes all\ntasks to reload all {group,host}_vars for all hosts and that repetitive\naction results in a massive slowdown, especially when there are many\nhosts within the inventory.\n\nResults from a normal OSA playbook run on 50 hosts:\n  time openstack-ansible openstack-hosts-setup.yml --forks 15\n  real    37m44.263s\n  user    35m30.984s\n  sys     2m23.252s\n\nResults with the strategy plugin disabled on 50 hosts:\n  time ANSIBLE_STRATEGY_PLUGINS\u003dfalse openstack-ansible openstack-hosts-setup.yml --forks 15\n  real    5m8.641s\n  user    6m30.792s\n  sys     1m32.512s\n\nThis change scopes the physical host look up to the task and target host\nand adds conditionals around the process to ensure we\u0027re not forcing a lookup\nthat has no chance of succeeding.\n\nResults with this patch applied on 50 hosts and no forks:\n  time openstack-ansible openstack-hosts-setup.yml\n  real    6m40.573s\n  user    7m53.336s\n  sys     1m25.828s\n\nShould anything like this come up again debug statements have been added\nto the method so that we can enable verbose mode and know what is being\nparsed.\n\nChange-Id: I76af71ffe19b2a8afb18ed731f1362a4e399c613\nSigned-off-by: Kevin Carter \u003ckevin.carter@rackspace.com\u003e\n(cherry picked from commit 785d32be7107ab1744670183d7cad27cf62b2ae7)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/85bb9f9a267dde15c19850af601216ec61315023"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/85bb9f9a267dde15c19850af601216ec61315023"}]},"branch":"refs/heads/stable/pike"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
