https://flyte.org logo
#ask-ai
Title
# ask-ai
w

WCHsu

03/31/2024, 6:08 PM
@Glime I encountered the following error: details: Requested CPU default [2] is greater than current limit set in the platform configuration [800m]. Please contact Flyte Admins to change these limits or consult the configuration. How to configure limit set in the platform configuration?
g

Glime

03/31/2024, 6:08 PM
To configure the limit set in the platform configuration for CPU resources in Flyte, you need to adjust the task resource limits in the Flyte configuration. This involves modifying the configuration for task resources, which can be done through the FlyteAdmin service or by using
flytectl
to update the cluster resource attributes. Here are the steps you can follow to update the CPU limits: 1. ​*Using FlyteAdmin Service*​: If you have direct access to modify the FlyteAdmin service's configuration, you can update the
task_resource_defaults
configuration to set the new CPU limits. This configuration is typically found in the FlyteAdmin's config file (
flyteadmin_config.yaml
or similar). 2. ​*Using `flytectl`*​:
flytectl
is a command-line interface for Flyte. You can use it to update the cluster resource attributes, including the CPU limits for tasks. Here's how you can update the CPU limit: • First, ensure you have
flytectl
installed and configured to communicate with your Flyte cluster. • Use the following command to update the CPU limit:
Copy code
flytectl update cluster-resource-attributes --project <your-project> --domain <your-domain> --attributesFile <path-to-your-attributes-file.yaml>
• Your attributes file (
attributesFile.yaml
) should contain the new limits you want to set. For example:
Copy code
project: <your-project>
        domain: <your-domain>
        attributes:
          taskResourceAttributes:
            limits:
              cpu: "2"  # This is where you set the new CPU limit
Please note that changing these configurations might require administrative privileges on your Flyte cluster. If you do not have the necessary permissions, you should contact your Flyte administrators to make these changes. Remember to replace
<your-project>
,
<your-domain>
, and the CPU limit value (
"2"
) with the actual values relevant to your use case. For more detailed information on configuring task resources and using
flytectl
, you can refer to the official Flyte documentation: • Task Resource Configuration: https://docs.flyte.org/en/latest/deployment/cluster_config/task_resource_config.html
flytectl
Documentation: https://docs.flyte.org/projects/flytectl/en/stable/ --- This is an AI-generated response, take its recommendations with caution. Please help us improve the model accuracy by giving this response a thumbs up/thumbs down reaction. Answered By Glime 👍 button 👎 button
d

David Espejo (he/him)

04/01/2024, 11:26 AM
@WCHsu were you able to fix this? do you still need help?
3 Views