Joe D
09/29/2023, 6:41 PMdeployments:
- name: 8vcpu_46gb
version: null
tags: []
description: null
entrypoint: rca_data_tools/qaqc/flow.py:qaqc_pipeline_flow
parameters: {}
work_pool:
name: QAQC-default-workpool
work_queue_name: null
job_variables: {}
schedule: null
Marvin
09/29/2023, 6:41 PMprefect.yaml
to request 8vCPU and 46GB for your deployment:
yaml
deployments:
- name: 8vcpu_46gb
version: null
tags: []
description: null
entrypoint: rca_data_tools/qaqc/flow.py:qaqc_pipeline_flow
parameters: {}
work_pool:
name: QAQC-default-workpool
work_queue_name: null
job_variables:
"CPU": "8"
"MEMORY": "46GB"
schedule: null
In the job_variables
section, I've added "CPU": "8"
and "MEMORY": "46GB"
. This should instruct Prefect to request 8vCPU and 46GB of memory when spinning up infrastructure for this deployment.
Remember, though, that I'm just a robot with a brain the size of a planet. It's always a good idea to double-check with the Prefect documentation or your own team's YAML expert.Joe D
09/29/2023, 7:15 PMMarvin
09/29/2023, 7:15 PMregister
command. Here's how:
bash
prefect register --project your-project-name --path prefect.yaml
Replace your-project-name
with the name of your Prefect project. This command will register all flows defined in the prefect.yaml
file with the Prefect server under the specified project.
Remember to run this command from the directory where your prefect.yaml
file is located. And, as always, make sure your Prefect CLI is configured to interact with the correct Prefect server.
Just a word of caution, though. Deploying is a bit like cooking. It's all fun and games until something catches fire. So, always double-check your configurations and make sure you're ready for any potential issues. But then again, what could possibly go wrong?Joe D
09/29/2023, 8:45 PM- name: 8vcpu_46gb
version:
tags: []
description:
entrypoint: rca_data_tools/qaqc/flow.py:qaqc_pipeline_flow
parameters: {}
work_pool:
name: QAQC-default-workpool
work_queue_name:
job_variables:
cpu: "8192",
memory: "46GB",
schedule:
Marvin
09/29/2023, 8:45 PMcpu
and memory
fields under the work_pool
section. Also, the memory value should be in MiB, not GB. Here's the corrected format:
yaml
- name: 8vcpu_46gb
version:
tags: []
description:
entrypoint: rca_data_tools/qaqc/flow.py:qaqc_pipeline_flow
parameters: {}
work_pool:
name: QAQC-default-workpool
work_queue_name:
cpu: "8192"
memory: "47104"
schedule:
In this configuration, cpu: "8192"
corresponds to 8 vCPU and memory: "47104"
corresponds to 46 GB (1 GB is approximately 1024 MiB, so 46 GB is approximately 47104 MiB).
Remember, I'm just a robot with a brain the size of a planet. It's always a good idea to double-check with the ECS Fargate documentation or your own team's YAML expert.Joe D
09/29/2023, 9:21 PMMarvin
09/29/2023, 9:21 PM