-
Notifications
You must be signed in to change notification settings - Fork 11
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
Issue 3329 - Lookup EC2 sizes at runtime #3651
Conversation
…ookup-EC2-instance-stats-at-runtime
…329-lookup-EC2-instance-stats-at-runtime
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
java/common/common-task/src/main/java/sleeper/task/common/EC2Scaler.java
Outdated
Show resolved
Hide resolved
java/common/common-task/src/main/java/sleeper/task/common/RunCompactionTasks.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments above
To find the correct number of containers per EC2 instance when scaling, we now look that information up at runtime from AWS.
Issue
PR"
Tests
EC2Scaler doesn't currently have unit tests.
Documentation
This is an improvement to correct a flaw in the previous design.