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

step-function-tasks: EMR Create cluster support CapacityOptimised #16252

Closed
2 tasks
johsbk opened this issue Aug 27, 2021 · 4 comments · Fixed by #16296
Closed
2 tasks

step-function-tasks: EMR Create cluster support CapacityOptimised #16252

johsbk opened this issue Aug 27, 2021 · 4 comments · Fixed by #16296
Labels
@aws-cdk/aws-stepfunctions-tasks effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@johsbk
Copy link
Contributor

johsbk commented Aug 27, 2021

In the launch specification for an instance fleet config, I would like to set allocation strategy to CapacityOptimized for spot instances. This is available in general for job flow configs

Use Case

I need this feature to avoid EMR failures due to spot instance getting deallocated

Proposed Solution

simply implement it as defined in https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@johsbk johsbk added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 27, 2021
@github-actions github-actions bot added the @aws-cdk/aws-emr Related to Amazon EMR label Aug 27, 2021
@BenChaimberg
Copy link
Contributor

The docs for this feature state that capacity optimized is the default value for spot instances. Can you confirm that there is some other default value that would necessitate adding this feature to the CDK?

@BenChaimberg BenChaimberg added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. effort/small Small work item – less than a day of effort p2 and removed needs-triage This issue or PR still needs to be triaged. labels Aug 30, 2021
@johsbk
Copy link
Contributor Author

johsbk commented Aug 30, 2021 via email

@BenChaimberg
Copy link
Contributor

Interesting, thanks for the confirmation! The allocationStrategy prop needs to be added here:

export interface SpotProvisioningSpecificationProperty {

And then it needs to be properly serialized here:
export function InstanceFleetProvisioningSpecificationsPropertyToJson(property: EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty) {

I am unassigning myself and marking this issue as p2, which means that we are unable to work on this immediately.

We use +1s to help prioritize our work, and are happy to reevaluate this issue based on community feedback. You can reach out to the cdk.dev community on Slack to solicit support for reprioritization.

Please feel free to work on this issue yourself and request my review if you submit a PR! See CONTRIBUTING.md for guidelines.

@BenChaimberg BenChaimberg removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Aug 30, 2021
@BenChaimberg BenChaimberg removed their assignment Aug 30, 2021
@mergify mergify bot closed this as completed in #16296 Aug 31, 2021
mergify bot pushed a commit that referenced this issue Aug 31, 2021
…eCluster (#16296)

fixes #16252

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this issue Sep 6, 2021
…eCluster (aws#16296)

fixes aws#16252

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this issue Sep 7, 2021
…eCluster (aws#16296)

fixes aws#16252

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions-tasks effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants