https://flyte.org logo
e

Erbene Castro

03/15/2022, 2:40 PM
Hello everyone! I'm testing out flyte and running it locally in sandbox mode. I have created a simple task that loads a 2 GB file in memory and prints some useful information about the file. At this point, I'm just loading the file in memory and not doing anything with it. As I try to run the task from the console, my pod gets killed with OOMKilled. How can I increase the resources available for pod created by Flyte? Thank you!
y

Yuvraj

03/15/2022, 2:44 PM
Please add resource request & limit in task like this
Copy code
@task(
    requests= Resources(
      mem="1000Mi"
    ),
    limits= Resources(
      mem="1000Mi"
    ),
)
👍 1
e

Erbene Castro

03/15/2022, 2:48 PM
Ohhhh, I totally forgot about this! I was trying to change the configs on Kubernetes level! Thank you!
🙌 2
7 Views