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

Cornelis Boon

03/12/2024, 8:47 PM
Hey, just ran into this.
Requested MEMORY limit [2G] is greater than current limit set in the platform configuration [1Gi].
, so how do I increase the memory limit? Thanks!
d

David Espejo (he/him)

03/12/2024, 8:55 PM
Hey Cornelis This is typically controlled in the
task_resource_defaults
section. There's got to be a
task_resources.defaults.memory
set to 1Gi. This is the default resource request for Task Pods. In the absence of Limits (and not setting limits is better) Flyte will make Limit=Request. So raising that key should in turn raise the max amount of resources (mem in this case) a particular Task can request Does that make sense?
c

Cornelis Boon

03/12/2024, 8:57 PM
Let me have a look at the values of the chart, but yes that makes sense. Thanks!
Yup, found it
k

Kevin Su

03/12/2024, 8:59 PM
Are you using flyte sandbox (flytectl demo start)?
c

Cornelis Boon

03/12/2024, 8:59 PM
Flyte binary
Seems like task_resource defaults can't be set (or at least I don't see any examples for this) for flyte binary. Might need to switch to flyte core after all
^this worked
d

David Espejo (he/him)

03/13/2024, 4:36 PM
Sorry, for flyte-binary it would be
inline.task_resources
Example here
c

Cornelis Boon

03/13/2024, 4:38 PM
Awesome! Thanks
Hey, ran into another issue with task_resources. I've set the following in my helm chart:
Copy code
configuration:
   inline:
    task_resources:
      defaults:
        cpu: 500m
        memory: 500Mi
        storage: 500Mi
      limits:
        cpu: "10"
        memory: 20Gi
But when I try to register tasks that set a limit of 4 cpu. I'm getting the following error (suggesting as if the config was not taken?)
Copy code
USER:BadInputToAPI: error=None, cause=<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "Requested CPU limit [4] is greater than current limit set in the platform configuration [2]. Please contact Flyte Admins to change these limits or consult the configuration"
        debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Requested CPU limit [4] is greater than current limit set in the platform configuration [2]. Please contact Flyte Admins to change these limits or consult the configuration", grpc_status:3, created_time:"2024-03-20T11:29:01.232266149+01:00"}"
Issue was that I already had set task-resource-attributes via flytectl. Deleting that allowed the defaults to be picked up
d

David Espejo (he/him)

03/21/2024, 4:13 PM
great, thanks for confirming
2 Views