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

Bug: Windows numCPU returning incorrectly for values above 64 #4067

Merged
merged 1 commit into from Dec 22, 2023

Conversation

arun-annamalai
Copy link
Contributor

@arun-annamalai arun-annamalai commented Dec 20, 2023

Summary

This PR fixes a customer issue wherein Windows contiainer instances with vCPU larger than 64 were reporting incorrect CPU values.

Implementation details

The changes are implemented by using MSFT win32 API to get the correct number of CPUs on the instance.

Testing

This was tested by launching an EC2 instance with 128 vCPU and ensuring that the ECS console showed the right CPU count in the resources section.

New tests cover the changes:
yes, there are unit tests added.

Description for the changelog

Bug: Windows numCPU returning incorrectly for values above 64

Does this PR include breaking model changes? If so, Have you added transformation functions?

No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@arun-annamalai arun-annamalai requested a review from a team as a code owner December 20, 2023 18:54
@arun-annamalai arun-annamalai changed the title [WIP] Bug: Windows numCPU returning incorrectly for values above 64 Bug: Windows numCPU returning incorrectly for values above 64 Dec 20, 2023
@arun-annamalai arun-annamalai self-assigned this Dec 21, 2023
@arun-annamalai arun-annamalai merged commit f83022d into aws:dev Dec 22, 2023
36 checks passed
@mye956 mye956 mentioned this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants