Bryce Codell
12/07/2023, 4:12 AMephemeralStorage
parameter for ECS Tasks in Prefect Cloud? I tried adding the snippet below to the Job Variables configuration, but based on the logs it looks like each ECS Task is still using the default (20 GiB). Using this configuration works to override the default cpu
and memory
parameters, so it’s unclear why overriding this parameter isn’t working:
"ephemeralStorage": {
"sizeInGiB": 40
}
mira
12/07/2023, 10:27 AMBryce Codell
12/07/2023, 11:58 AMephemeralStorage
parameter defined. Are you saying that I need to define a default one here before I can override it in the job variables configuration for a specific flow? Or are you saying that overriding this parameter is simply not supported by Prefect?mira
12/07/2023, 12:27 PMBryce Codell
12/07/2023, 4:38 PM"ephemeralStorage": {
"type": "object",
"title": "Ephemeral Storage",
"description": "The storage available on the task device.",
"additionalProperties": {
"sizeInGiB": "int"
}
}
In job_configuration:
"ephemeralStorage": "{{ ephemeralStorage }}",
Then finally in the job variable configurations in the Prefect Flow:
"ephemeralStorage": {
"sizeInGiB": 40 # or whatever size is needed up to 200
},
mira
12/07/2023, 4:56 PMjob_variables = {
"execution_role_arn": os.getenv("EXECUTION_ROLE", ""),
"task_role_arn": os.getenv("TASK_ROLE", ""),
"cluster": os.getenv("ECS_CLUSTER"),
"vpc_id": os.getenv("VPC_ID", ""),
"container_name": os.getenv("ECR_REPO_NAME", ""),
"family": "prefect-flow",
"aws_credentials": {
"$ref": {
"block_document_id": os.getenv("AWS_CREDENTIAL_BLOCK_ID", "")
}
},
}
Bryce Codell
12/07/2023, 5:44 PMNicolas Zapata
03/04/2024, 1:42 PM{
"ephemeralStorage": {
"sizeInGiB": 40
}
}