)]}'
{"id":"openstack%2Fzun~818071","triplet_id":"openstack%2Fzun~master~I035ad581392e1e75d7eb69ffba3277cf92c9f9fb","project":"openstack/zun","branch":"master","topic":"ycj","hashtags":[],"change_id":"I035ad581392e1e75d7eb69ffba3277cf92c9f9fb","subject":"Increase the weight of the scheduling strategy.","status":"ABANDONED","created":"2021-11-16 11:54:28.000000000","updated":"2021-11-30 00:59:58.000000000","total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"1579c092edcbc82d5f6ad35f441b13f7b5d2d454","_number":818071,"virtual_id_number":818071,"owner":{"_account_id":34189,"name":"yangchangjia","display_name":"Frank","email":"ycj52011@gmail.com","username":"ycj"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:check","value":1,"date":"2021-11-16 13:04:26.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"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":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"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":"","default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2021-11-16 13:04:26.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"}],"messages":[{"id":"2ae6bad1df6ce2deed77b0d8b86d12a24fa4d840","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":34189,"name":"yangchangjia","display_name":"Frank","email":"ycj52011@gmail.com","username":"ycj"},"date":"2021-11-16 11:54:28.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"a8378fb77ac8bcc082288651a2b86d35d0b829de","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2021-11-16 13:04:26.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/203c1e1691124cf09b38b6218a83c02e : SUCCESS in 9m 08s\n- openstack-tox-lower-constraints https://zuul.opendev.org/t/openstack/build/48da173bfe214774a2f1009f445f7b43 : SUCCESS in 7m 49s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/4e794a51de274c4a933a532e4c7ba680 : SUCCESS in 8m 49s\n- openstack-tox-py36 https://zuul.opendev.org/t/openstack/build/4154526298ff4f9b9c305adc59dcf6dd : SUCCESS in 6m 50s\n- openstack-tox-py38 https://zuul.opendev.org/t/openstack/build/1224e45462a0461cabdecacf2ee4d8b9 : SUCCESS in 8m 00s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/47750a19f5c84a0dbb1c70ae8d60278c : SUCCESS in 7m 32s (non-voting)\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/9e7351dd11344bbfad46d41796c7d792 : SUCCESS in 9m 45s\n- zun-tempest-py3-docker-sql https://zuul.opendev.org/t/openstack/build/8aebd48eb6b84b139a2d9e406216b40c : SUCCESS in 47m 30s\n- zun-tempest-docker-sql-ipv6-only https://zuul.opendev.org/t/openstack/build/1120b38f2143415a942733632c9cf163 : SUCCESS in 47m 13s (non-voting)\n- zun-tempest-multinode-docker-sql https://zuul.opendev.org/t/openstack/build/072d0429b06144aea060143003c948d2 : SUCCESS in 1h 01m 18s\n- zun-fullstack https://zuul.opendev.org/t/openstack/build/88c149686f8a495db18ff7ebde0f8a40 : FAILURE in 33m 40s (non-voting)\n- zun-tempest-docker-sql-standalone https://zuul.opendev.org/t/openstack/build/307bbf10ed54474bae711ef4d72b4f50 : SUCCESS in 41m 55s (non-voting)","accounts_in_message":[],"_revision_number":1},{"id":"1579c092edcbc82d5f6ad35f441b13f7b5d2d454","tag":"autogenerated:gerrit:abandon","author":{"_account_id":34189,"name":"yangchangjia","display_name":"Frank","email":"ycj52011@gmail.com","username":"ycj"},"date":"2021-11-30 00:59:58.000000000","message":"Abandoned\n\nclean code.","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"2bf25636eb47c9cc478f463fd4cb96dac436f883","revisions":{"2bf25636eb47c9cc478f463fd4cb96dac436f883":{"kind":"REWORK","_number":1,"created":"2021-11-16 11:54:28.000000000","uploader":{"_account_id":34189,"name":"yangchangjia","display_name":"Frank","email":"ycj52011@gmail.com","username":"ycj"},"ref":"refs/changes/71/818071/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/zun","ref":"refs/changes/71/818071/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/zun refs/changes/71/818071/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/zun refs/changes/71/818071/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/zun refs/changes/71/818071/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/zun refs/changes/71/818071/1"}}},"commit":{"parents":[{"commit":"5e175ca5b72d786faffaa13c0c84b6003aaff937","subject":"Increase the weight of the scheduling strategy.","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/zun/commit/5e175ca5b72d786faffaa13c0c84b6003aaff937"}]}],"author":{"name":"ycj","email":"ycj52011@gmail.com","date":"2021-11-16 11:52:30.000000000","tz":480},"committer":{"name":"ycj","email":"ycj52011@gmail.com","date":"2021-11-16 11:52:30.000000000","tz":480},"subject":"Increase the weight of the scheduling strategy.","message":"Increase the weight of the scheduling strategy.\n\nIn the current version, the node scheduling strategy only filters the resources, and does not calculate the weight of the nodes, resulting in all containers being created on the same node. Similar to nova, it is mainly to increase the weight calculation of the scheduling strategy, which is very necessary. The impact on zun\u0027s overall scheduling process is relatively small. After node filtering, add node weight calculation method, so that zun\u0027s scheduling tasks can be distributed to different nodes, making the scheduling strategy more healthy.\n\nFor the current version, the node hardware configuration of our environment:\n```\ncomputer01\t16H64G7T\tzun-compute\ncomputer02\t16H64G7T\tzun-compute\ncomputer03\t16H64G40T\tnova-compute\ncomputer04\t16H64G7T\tnova-compute\ncontroller01\t16H64G40T\tcontroller\n\n```\nThe \"scheduler\" config of \"zun.conf\" is:\n```\n[scheduler]\n# * A string, where the string corresponds to the class name of a scheduler\n#   driver. There are a number of options available:\n# ** \u0027chance_scheduler\u0027, which simply picks a host at random\n# ** A custom scheduler driver. In this case, you will be responsible for\n#    creating and maintaining the entry point in your \u0027setup.cfg\u0027 file\n#  (string value)\n# Possible values:\n# chance_scheduler - \u003cNo description provided\u003e\n# fake_scheduler - \u003cNo description provided\u003e\n# filter_scheduler - \u003cNo description provided\u003e\n#driver \u003d filter_scheduler\ndriver \u003d filter_scheduler\n\n# * A list of zero or more strings, where each string corresponds to the name\n# of a filter that may be used for selecting a host\navailable_filters \u003d zun.scheduler.filters.all_filters\n\n#enabled_filters \u003d AvailabilityZoneFilter,CPUFilter,RamFilter,ComputeFilter,DiskFilter,RuntimeFilter\nenabled_filters \u003d CPUFilter\n```\n\nIn \"zun.scheduler.FilterScheduler._schedule()\", we can get node info:\n```\n[\nComputeNode(architecture\u003d\u0027x86_64\u0027,cpu_used\u003d13.0,cpus\u003d16,created_at\u003d2021-06-29T21:31:15Z,disk_quota_supported\u003dTrue,\ndisk_total\u003d5256,disk_used\u003d130,enable_cpu_pinning\u003dFalse,hostname\u003d\u0027computer02\u0027,kernel_version\u003d\u00273.10.0-862.el7.x86_64\u0027,\nlabels\u003d{},mem_available\u003d59848,mem_free\u003d57234,mem_total\u003d63890,mem_used\u003d6656,numa_topology\u003dNUMATopology,\nos\u003d\u0027CentOS Linux 7 (Core)\u0027,os_type\u003d\u0027linux\u0027,paused_containers\u003d0,pci_device_pools\u003dPciDevicePoolList,\nrp_uuid\u003d28f40aa4-aec9-4225-b1d3-b040c8adf24e,running_containers\u003d13,\nruntimes\u003d[\u0027io.containerd.runc.v2\u0027,\u0027io.containerd.runtime.v1.linux\u0027,\u0027runc\u0027],\nstopped_containers\u003d13,total_containers\u003d14,updated_at\u003d2021-11-08T03:47:16Z,uuid\u003d28f40aa4-aec9-4225-b1d3-b040c8adf24e),\nComputeNode(architecture\u003d\u0027x86_64\u0027,cpu_used\u003d1.0,cpus\u003d16,created_at\u003d2021-06-29T21:31:08Z,disk_quota_supported\u003dTrue,\ndisk_total\u003d5356,disk_used\u003d10,enable_cpu_pinning\u003dFalse,hostname\u003d\u0027computer01\u0027,kernel_version\u003d\u00273.10.0-862.el7.x86_64\u0027,\nlabels\u003d{},mem_available\u003d61946,mem_free\u003d63378,mem_total\u003d63890,mem_used\u003d512,numa_topology\u003dNUMATopology,\nos\u003d\u0027CentOS Linux 7 (Core)\u0027,os_type\u003d\u0027linux\u0027,paused_containers\u003d0,pci_device_pools\u003dPciDevicePoolList,\nrp_uuid\u003daa5355b2-5ce8-4108-95af-5d724c2d6dc3,running_containers\u003d1,\nruntimes\u003d[\u0027io.containerd.runc.v2\u0027,\u0027io.containerd.runtime.v1.linux\u0027,\u0027runc\u0027],\nstopped_containers\u003d1,total_containers\u003d1,updated_at\u003d2021-11-08T03:47:14Z,uuid\u003daa5355b2-5ce8-4108-95af-5d724c2d6dc3)\n]\n```\n\nBut the final selected node is:\n```\ncomputer02 ram: 57234MB disk: 5126GB cpus: 3.0\n```\n\nFinally, the \"scheduler\" sample config of \"zun.conf\" is:\n```\n[scheduler]\n# * A string, where the string corresponds to the class name of a scheduler\n#   driver. There are a number of options available:\n# ** \u0027chance_scheduler\u0027, which simply picks a host at random\n# ** A custom scheduler driver. In this case, you will be responsible for\n#    creating and maintaining the entry point in your \u0027setup.cfg\u0027 file\n#  (string value)\n# Possible values:\n# chance_scheduler - \u003cNo description provided\u003e\n# fake_scheduler - \u003cNo description provided\u003e\n# filter_scheduler - \u003cNo description provided\u003e\n#driver \u003d filter_scheduler\ndriver \u003d filter_scheduler\n\n# * A list of zero or more strings, where each string corresponds to the name\n# of a filter that may be used for selecting a host\navailable_filters \u003d zun.scheduler.filters.all_filters\n\n#enabled_filters \u003d AvailabilityZoneFilter,CPUFilter,RamFilter,ComputeFilter,DiskFilter,RuntimeFilter\nenabled_filters \u003d CPUFilter\n\n#\n# Size of subset of best hosts selected by scheduler. For more information,\n# refer to the documentation. (integer value)\n# Minimum value: 1\n# Deprecated group;name - DEFAULT;scheduler_host_subset_size\n#host_subset_size\u003d1\n#\n# Weighers that the scheduler will use. For more information, refer to the\n# documentation. (list value)\n# Deprecated group;name - DEFAULT;scheduler_weight_classes\n#weight_classes\u003dzun.scheduler.weights.all_weighers\nweight_classes\u003dzun.scheduler.weights.all_weighers\n\n#\n# RAM weight multipler ratio. For more information, refer to the documentation.\n# (floating point value)\n#ram_weight_multiplier\u003d1.0\n\n#\n# CPU weight multiplier ratio. For more information, refer to the documentation.\n# (floating point value)\n#cpu_weight_multiplier\u003d1.0\n\n#\n# Disk weight multipler ratio. For more information, refer to the documentation.\n# (floating point value)\n#disk_weight_multiplier\u003d1.0\n\n#\n# Enable spreading the instances between hosts with the same best weight. For\n# more information, refer to the documentation. (boolean value)\n#shuffle_best_same_weighed_hosts\u003dfalse\n```\n\nChange-Id: I035ad581392e1e75d7eb69ffba3277cf92c9f9fb\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/zun/commit/2bf25636eb47c9cc478f463fd4cb96dac436f883"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/zun/commit/2bf25636eb47c9cc478f463fd4cb96dac436f883"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
