Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xo-server): limit VM migration concurrency #6076

Merged
merged 1 commit into from
Jan 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

> Users must be able to say: “Nice enhancement, I'm eager to test it”

- Limit number of concurrent VM migrations per pool to `3` [#6065](https://github.com/vatesfr/xen-orchestra/issues/6065) (PR [#6076](https://github.com/vatesfr/xen-orchestra/pull/6076))
Can be changed in `xo-server`'s configuration file: `xapiOptions.vmMigrationConcurrency`

### Bug fixes

> Users must be able to say: “I had this issue, happy to know it's fixed”
Expand Down
2 changes: 2 additions & 0 deletions packages/xo-server/src/xapi/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default class Xapi extends XapiBase {
restartHostTimeout,
vdiExportConcurrency,
vmExportConcurrency,
vmMigrationConcurrency = 3,
vmSnapshotConcurrency,
...opts
}) {
Expand All @@ -96,6 +97,7 @@ export default class Xapi extends XapiBase {
this._exportVdi = limitConcurrency(vdiExportConcurrency, waitStreamEnd)(this._exportVdi)
this.exportVm = limitConcurrency(vmExportConcurrency, waitStreamEnd)(this.exportVm)

this._migrateVmWithStorageMotion = limitConcurrency(vmMigrationConcurrency)(this._migrateVmWithStorageMotion)
this._snapshotVm = limitConcurrency(vmSnapshotConcurrency)(this._snapshotVm)

// Patch getObject to resolve _xapiId property.
Expand Down