Hi! I'm trying to run a PoC using Flyte demo local...
# ask-the-community
g
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
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
Thanks! I don't see any mem limits entries for the cluster there. Where should I add it?
a
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
@Albert Wibowo Thanks a ton! That worked like a charm. First time that I see so much green on the Flyte UI! 🎊
a
No worries, I was helped by others in this channel too. Shoutouts to all the admins🔥
148 Views