https://flyte.org logo
#ask-the-community
Title
# ask-the-community
g

Gerard Maas

06/22/2023, 8:31 AM
Hi! I'm trying to run a PoC using Flyte demo locally. The tasks are failing with OOM and I have already increased their mem limits to the current max allowed by the sandbox (1G). Is there a way to increase this overall limit for the sandbox configuration?
s

Samhita Alla

06/22/2023, 11:48 AM
Hi @Gerard Maas! You should be able to increase the memory limit by modifying the relevant values in the
flyte-sandbox-config
config map.
Copy code
kubectl -n flyte edit cm flyte-sandbox-config
g

Gerard Maas

06/22/2023, 12:18 PM
Thanks! I don't see any mem limits entries for the cluster there. Where should I add it?
a

Albert Wibowo

06/22/2023, 4:35 PM
Hello Gerard, you can create your own config file at your project level. That's what I did to hack it away. So you can create a config file like this:
Copy code
domain: development
project: flytesnacks
defaults:
  cpu: "3"
  memory: "8Gi"
limits:
  cpu: "5"
  memory: "12Gi"
Then run the following CLI command:
Copy code
flytectl update task-resource-attribute --attrFile yourfile.yaml
g

Gerard Maas

06/23/2023, 3:23 PM
@Albert Wibowo Thanks a ton! That worked like a charm. First time that I see so much green on the Flyte UI! 🎊
a

Albert Wibowo

06/23/2023, 3:24 PM
No worries, I was helped by others in this channel too. Shoutouts to all the admins🔥