Hi! I'm trying to run a PoC using Flyte demo local...
# flyte-support
s
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?
t
Hi @square-airport-45182! 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
👍 1
s
Thanks! I don't see any mem limits entries for the cluster there. Where should I add it?
f
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
gratitude thank you 6
🔥 1
🙏 1
s
@flaky-engineer-56191 Thanks a ton! That worked like a charm. First time that I see so much green on the Flyte UI! 🎊
👍 2
f
No worries, I was helped by others in this channel too. Shoutouts to all the admins🔥
🙇🏽 1
🙇 1
150 Views