For Prefect workers, the recommended memory allocation in a Kubernetes pod varies depending on the specific use case and expected workload, but here are the general guidelines provided by Prefect documentation:
1.
Prefect 2.x:
Prefect 2.x does not specify a strict memory requirement, but typically, it's recommended to provision at least
1024 MiB (1 GiB) of memory. CPU allocation defaults to
500m (0.5 CPU).
Source:
Prefect 2.x Worker Documentation
2.
Prefect 3.x:
Prefect 3.x also doesn't define a strict requirement, but the same recommendation of provisioning at least
1024 MiB (1 GiB) of memory remains relevant.
Source:
Prefect 3.x Worker Documentation
Allocating these resources should offer a good starting point, but you may need to adjust based on the specific resource demands of your flows and tasks.