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

feat: add ephemeral_storage parameter for Batch (Fargate-only) #1739

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

stev-0
Copy link
Contributor

@stev-0 stev-0 commented Feb 16, 2024

Fixes issue #1738.

Please note I have not been able to test this for real as I don't have the right permissions in our AWS environment yet, but these are the parameters the code gives to the register_job_definition call:

{'type': 'container', 'containerProperties': {'image': 'public.ecr.aws/docker/library/python:3.11', 'jobRoleArn': 'arn:aws:iam::xxxx', 'command': ['echo', 'hello world'], 'resourceRequirements': [{'value': '1', 'type': 'VCPU'}, {'value': '4096', 'type': 'MEMORY'}], 'executionRoleArn': 'arn:aws:iam::xxxx', 'networkConfiguration': {'assignPublicIp': 'ENABLED'}, 'ephemeralStorage': {'sizeInGiB': 50}}, 'propagateTags': True, 'platformCapabilities': ['FARGATE'], 'jobDefinitionName': 'metaflow_xxxx'}

Also fixes some documentation for the tempfs parameter, and clarifies where this parameter can be used.

Stephen Knox added 2 commits February 16, 2024 17:18
@stev-0
Copy link
Contributor Author

stev-0 commented Feb 27, 2024

I have the correct permissions now, and this gives a batch job with ephemeral storage as expected when run

@romain-intel
Copy link
Contributor

Mergeable anytime from my end -- no impact on core.

@saikonen saikonen merged commit cbf9b7f into Netflix:master Feb 29, 2024
34 checks passed
@stev-0 stev-0 deleted the ephemeral_storage_parameter branch March 1, 2024 10:46
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.

None yet

3 participants