flyte icon indicating copy to clipboard operation
flyte copied to clipboard

[Docs] Change limit set in the platform configuration [1Gi] for memory in sandbox

Open SmritiSatyanV opened this issue 3 years ago • 2 comments

Description

You can change the set limit using the below commands:

$ k edit cm flyte-admin-config

  task_resource_defaults.yaml: |
    task_resources:
      defaults:
        cpu: 100m
        memory: 500Mi
        storage: 500Mi
      limits:
        cpu: 2
        gpu: 1
        memory: 1Gi <- change this value
        storage: 20Mi

Add it in the environment guide setup or troubleshooting guide. The above config works for sandbox.

For demo cluster, you can't change config at runtime. Hence, change the config and build a custom image.

$ git clone [email protected]:flyteorg/flyte.git
$ cd flyte
$ vim flyte.yaml (update config)
$ docker build -t user_name/sandbox-lite-test -f docker/sandbox-lite/Dockerfile . # Build image
$ docker push user_name/sandbox-lite-test
$ flytectl demo start --image user_name/sandbox-lite-test

OR

docker exec into the cluster and modify the flyte.yaml file. docker run -v my_flyte.yaml:flyte.yaml … docker restart flyte-sandbox

SmritiSatyanV avatar Sep 02 '22 05:09 SmritiSatyanV

hey @SmritiSatyanV let's hold off on making this change. we are making some changes to the way flytectl brings up the demo cluster that will change the steps here. let's circle back to this in six weeks or so?

wild-endeavor avatar Sep 12 '22 02:09 wild-endeavor

Absolutely @wild-endeavor , thank you for the update..

SmritiSatyanV avatar Sep 12 '22 03:09 SmritiSatyanV

not needed anymore

wild-endeavor avatar Apr 18 '23 20:04 wild-endeavor