Skip to content

Parallelized the Tasks To reduce execution time for LargeClusters#29357

Open
Samhitha-Microsoft wants to merge 2 commits intoAzure:mainfrom
Samhitha-Microsoft:user/samhitham/ParallelizeTheTasks
Open

Parallelized the Tasks To reduce execution time for LargeClusters#29357
Samhitha-Microsoft wants to merge 2 commits intoAzure:mainfrom
Samhitha-Microsoft:user/samhitham/ParallelizeTheTasks

Conversation

@Samhitha-Microsoft
Copy link
Copy Markdown
Contributor

Description

Parallelizing sequential per-node remote operations (Verify-NodesArcRegistrationState, Test-ClusterArcEnabled) that caused registration to take 35+ minutes on large (30-60 node) clusters

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings April 2, 2026 04:19
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets performance improvements in the StackHCI registration flow by parallelizing per-node remote Arc validation checks that were previously executed sequentially, reducing end-to-end registration time on large clusters.

Changes:

  • Parallelized per-node Arc registration state verification via Invoke-Command -ComputerName fan-out.
  • Reworked cluster-wide Arc-enabled validation to run checks across all nodes in a single remote invocation and aggregate errors.
  • Added a release note entry describing improved registration performance for large clusters.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
src/StackHCI/StackHCI/ChangeLog.md Adds an upcoming release entry noting improved registration performance on large clusters.
src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1 Parallelizes node-level Arc checks and adjusts MSI registration flow behavior around Arc enablement validation.

@VeryEarly VeryEarly self-assigned this Apr 3, 2026
@VeryEarly
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown
Contributor

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@Samhitha-Microsoft
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown
Contributor

Commenter does not have sufficient privileges for PR 29357 in repo Azure/azure-powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants