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

Issue 3329 - Lookup EC2 sizes at runtime #3651

Merged
merged 16 commits into from
Nov 22, 2024

Conversation

m09526
Copy link
Member

@m09526 m09526 commented Nov 8, 2024

To find the correct number of containers per EC2 instance when scaling, we now look that information up at runtime from AWS.

Issue

Tests

EC2Scaler doesn't currently have unit tests.

Documentation

This is an improvement to correct a flaw in the previous design.

@patchwork01 patchwork01 added the pr-base-for-stacking Base for stacked pull requests (a dependency for others) label Nov 20, 2024
Copy link
Collaborator

@patchwork01 patchwork01 left a comment

Choose a reason for hiding this comment

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

Approved based on unit tests in stacked PR (#3747)

// advertised by an EC2 instance to accommodate this. This ensures we will create enough instances to hold
// the desired number of containers. ECS will then be able to avoid allocating too many containers on to a
// single instance.
long memoryMiB = (long) (typeInfo.getMemoryInfo().getSizeInMiB() * 0.9);
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth adding a separate issue to make this 0.9 configurable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gaffer01 gaffer01 assigned patchwork01 and unassigned gaffer01 Nov 20, 2024
@patchwork01 patchwork01 assigned m09526 and unassigned patchwork01 Nov 21, 2024
Copy link
Collaborator

@patchwork01 patchwork01 left a comment

Choose a reason for hiding this comment

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

See comments above

@patchwork01 patchwork01 merged commit d520c3d into develop Nov 22, 2024
9 checks passed
@patchwork01 patchwork01 deleted the 3329-lookup-EC2-instance-stats-at-runtime branch November 22, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compactions-module pr-base-for-stacking Base for stacked pull requests (a dependency for others)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent scheduling & speed of compaction tasks on EC2
3 participants