)]}'
{"id":"openstack%2Fopenstack-ansible-plugins~582199","triplet_id":"openstack%2Fopenstack-ansible-plugins~stable%2Fqueens~Ic61364b304bd4cc614d3b945f06fc7297a65e440","project":"openstack/openstack-ansible-plugins","branch":"stable/queens","hashtags":[],"change_id":"Ic61364b304bd4cc614d3b945f06fc7297a65e440","subject":"Correct severe performance problem","status":"ABANDONED","created":"2018-07-12 14:35:23.000000000","updated":"2018-09-10 20:51:17.000000000","total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"b1fca3c4ea1839ef479dd2ce674ced7ad67b2b47","_number":582199,"virtual_id_number":582199,"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:43:12.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:46.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:56:59.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:56:59.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:43:12.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:46.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":"4e8a3858accb3894ed6fea1d26273cf5624401cc","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2018-07-12 14:35:23.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"24fd3ab93378a836e4bac14141e3b063fbd95041","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2018-07-12 14:51:12.000000000","message":"Patch Set 2: Commit message was updated.","accounts_in_message":[],"_revision_number":2},{"id":"dc8fa46bc8c78014021b0374512b4cc6ead28c23","author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"date":"2018-07-12 14:56:59.000000000","message":"Patch Set 2: Code-Review+1\n\nI\u0027d like to give time for reviewers to see an try this before merging, but I\u0027d like to merge it very fast, please.","accounts_in_message":[],"_revision_number":2},{"id":"1acdb473658f27039b56d3bff8c52505d5b49f21","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-07-12 15:43:12.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- build-openstack-sphinx-docs http://logs.openstack.org/99/582199/2/check/build-openstack-sphinx-docs/32a66fd/html/ : SUCCESS in 4m 06s\n- openstack-ansible-linters http://logs.openstack.org/99/582199/2/check/openstack-ansible-linters/3c5ba4f/ : SUCCESS in 7m 02s\n- openstack-ansible-functional-centos-7 http://logs.openstack.org/99/582199/2/check/openstack-ansible-functional-centos-7/a9fa211/ : SUCCESS in 22m 53s\n- openstack-ansible-functional-opensuse-423 http://logs.openstack.org/99/582199/2/check/openstack-ansible-functional-opensuse-423/fe323e7/ : SUCCESS in 13m 43s\n- openstack-ansible-functional-ubuntu-xenial http://logs.openstack.org/99/582199/2/check/openstack-ansible-functional-ubuntu-xenial/b11b63c/ : SUCCESS in 14m 58s","accounts_in_message":[],"_revision_number":2},{"id":"c63425e3423fe54986f0ba48eb64c207ce542c8f","author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"date":"2018-07-12 20:02:46.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":"c33f90e7ab16b7564d1ec6c8645dc379475316fa","author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"date":"2018-07-13 14:59:05.000000000","message":"Removed Code-Review+1 by Jean-Philippe Evrard \u003cjean-philippe@evrard.me\u003e\n","accounts_in_message":[],"_revision_number":2},{"id":"b1fca3c4ea1839ef479dd2ce674ced7ad67b2b47","author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"date":"2018-09-10 20:51:17.000000000","message":"Abandoned\n\ndupe review.. https://review.openstack.org/601343 supersedes this.","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"32bab7c788a9ad658f406020142495cde51cb90d","revisions":{"785d32be7107ab1744670183d7cad27cf62b2ae7":{"kind":"REWORK","_number":1,"created":"2018-07-12 14:35:23.000000000","uploader":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"ref":"refs/changes/99/582199/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-plugins","ref":"refs/changes/99/582199/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/1"}}},"commit":{"parents":[{"commit":"335e9413b07760240a2d7ed9961e4754482cb60c","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/335e9413b07760240a2d7ed9961e4754482cb60c"}]}],"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:34:45.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 94c93e533f533206611ed70934b5819d7a318289)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/785d32be7107ab1744670183d7cad27cf62b2ae7"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/785d32be7107ab1744670183d7cad27cf62b2ae7"}]},"branch":"refs/heads/stable/queens"},"32bab7c788a9ad658f406020142495cde51cb90d":{"kind":"NO_CODE_CHANGE","_number":2,"created":"2018-07-12 14:51:12.000000000","uploader":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"ref":"refs/changes/99/582199/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-plugins","ref":"refs/changes/99/582199/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/99/582199/2"}}},"commit":{"parents":[{"commit":"335e9413b07760240a2d7ed9961e4754482cb60c","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/335e9413b07760240a2d7ed9961e4754482cb60c"}]}],"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:09.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 94c93e533f533206611ed70934b5819d7a318289)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/32bab7c788a9ad658f406020142495cde51cb90d"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/32bab7c788a9ad658f406020142495cde51cb90d"}]},"branch":"refs/heads/stable/queens"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
