Title: Userdispersing algorithm does not consider VMs in starting state · Issue #11606 · apache/cloudstack · GitHub
Open Graph Title: Userdispersing algorithm does not consider VMs in starting state · Issue #11606 · apache/cloudstack
X Title: Userdispersing algorithm does not consider VMs in starting state · Issue #11606 · apache/cloudstack
Description: problem I tried to use userdispersing algorithm for volumes and VMs, still I've got numerous VMs starting on the same host. See #11412 In the end it was confirmed that algorithm considers just running VMs. As VM start takes time, and VMs...
Open Graph Description: problem I tried to use userdispersing algorithm for volumes and VMs, still I've got numerous VMs starting on the same host. See #11412 In the end it was confirmed that algorithm considers just runn...
X Description: problem I tried to use userdispersing algorithm for volumes and VMs, still I've got numerous VMs starting on the same host. See #11412 In the end it was confirmed that algorithm considers just ...
Opengraph URL: https://github.com/apache/cloudstack/issues/11606
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Userdispersing algorithm does not consider VMs in starting state","articleBody":"### problem\n\nI tried to use userdispersing algorithm for volumes and VMs, still I've got numerous VMs starting on the same host. See https://github.com/apache/cloudstack/discussions/11412\nIn the end it was confirmed that algorithm considers just running VMs.\nAs VM start takes time, and VMs are started in packs (Jenkins jcloud plugin), all VMs are placed to the same host. Finally I had to switch to random algo that do dispersing a lot better (though not ideal)\nI believe that as soon as VM is assigned for start on a host (still in Starting state), it should be already considered by userdispersing algorithm.\n\n### versions\n\nCloudStack 4.21.0.0, though I had the same issue with 4.20\nKVM\nlocal fat volumes\n\n### The steps to reproduce the bug\n\n1. Confiugre CS to use userdispersing algorithm (volumes and VMs)\n2. Start several VMs via api without waiting for response that VM was started, e.g.\n```\nfor i in {01..10}; do cloudstack deployVirtualMachine serviceofferingid=XXX templateid=YYY zoneid=ZZZ name=test-${i} \u0026 done\n```\nin my env all VMs start on the same host, even if I add some delay to the loop, unless the delay is enough to fully start VM\n\n### What to do about it?\n\nAlgorithm should query both Running and Starting VMs and use that data to decide the next VM placement","author":{"url":"https://github.com/akrasnov-drv","@type":"Person","name":"akrasnov-drv"},"datePublished":"2025-09-10T15:16:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11606/cloudstack/issues/11606"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de050c72-6077-c909-a4ff-d444a171d566 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1AC:25572C:3396EE1:4672967:6A4F09EC |
| html-safe-nonce | 17c0527fb090afd2248d239e5c71181e61d3ce2d977e0bb049bad679ee1c7ecc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUFDOjI1NTcyQzozMzk2RUUxOjQ2NzI5Njc6NkE0RjA5RUMiLCJ2aXNpdG9yX2lkIjoiOTEwODg1NDk4MjAyNzcwODkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a1687b50e9b6a6183d07dbccc30570662fc8d7e808766af97940d8e8a1285aa9 |
| hovercard-subject-tag | issue:3402889052 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/11606/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c2c5130616975831925eba918192965213e1b7f9647ca64c47a9802dea8ec2f/apache/cloudstack/issues/11606 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c2c5130616975831925eba918192965213e1b7f9647ca64c47a9802dea8ec2f/apache/cloudstack/issues/11606 |
| og:image:alt | problem I tried to use userdispersing algorithm for volumes and VMs, still I've got numerous VMs starting on the same host. See #11412 In the end it was confirmed that algorithm considers just runn... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | akrasnov-drv |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width