flyte icon indicating copy to clipboard operation
flyte copied to clipboard

[Docs] What is the distinction between flytectl sandbox and flytectl demo

Open SmritiSatyanV opened this issue 3 years ago • 2 comments

Description

As seen https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl.html#id1, there are two sandbox nouns. What is the difference between flytectl sandbox and flytectl demo? According to the discussion: demo is for beginners, and sandbox is for advanced users who wish to update certain attributes, perform end to end testing and gain better control over it.

Goal: We need to provide clear distinction between flytectl sandbox and flytectl demo , or delete one of them.

Marc: We need a clarification of the differences between demo and sandbox to help the user choose the best

What are each best for? When should the user choose one or the other? What is included in each one? What is missing? Proposed places to add this content:

https://docs.flyte.org/projects/cookbook/en/latest/userguide_setup.html#create-a-local-demo-flyte-cluster

https://docs.flyte.org/projects/flytectl/en/latest/sandbox.html

https://docs.flyte.org/projects/flytectl/en/latest/demo.html

See also

https://flyte-org.slack.com/archives/CP2HDHKE1/p1655871238925919

SmritiSatyanV avatar May 17 '22 06:05 SmritiSatyanV

Yes, please clarify this... What is different between them? And when should I choose which?

flixr avatar Jun 18 '22 14:06 flixr

Hi @flixr

flytectl sandbox

  • Uses all Flyte released images in addition to postgres and minio
  • May glitch incase of bad network
  • Uses port 30081
  • Up-to-date with production environment setup

flytectl demo

  • Uses single binary to bundle all the Flyte components thereby reducing the time to spin up the cluster because it has lesser dependencies to download
  • Other dependencies include postgres and minio
  • Uses port 30080

If you are looking to play around or you are a beginner, start with demo, else use sandbox. Hope this answers your question. We have a comprehensive document on all the differences between sandbox and demo coming soon.

SmritiSatyanV avatar Jun 20 '22 10:06 SmritiSatyanV

Any chance there are updates on this? I can only start the demo. I can't start the sandbox as it doesn't have the k3s file that is symlinked /var/lib/flyte/config/kubeconfig

rupurt avatar May 31 '23 07:05 rupurt

The advantage of the demo is that it comes with a docker registry to store images that can be run on the cluster.

tekumara avatar May 31 '23 11:05 tekumara

I think we want to make both the same. Cc @jeevb / @eapolinario

kumare3 avatar May 31 '23 14:05 kumare3

Generally, we should all be using flytectl demo now. Personally, I can't think of a reason to use flytectl sandbox. Do folks frequently experiment with individually bumped components in the sandbox?

@eapolinario: Please confirm, but I believe that the near-term goal is to drop the current implementation of flytectl sandbox completely, move flytectl demo to flytectl sandbox, and just add demo as an alias of sandbox for backward compatibility.

jeevb avatar May 31 '23 15:05 jeevb

Is there a way to remove the default project from the demo?

rupurt avatar May 31 '23 16:05 rupurt

Is there a way to remove the default project from the demo?

You should be able to override the projects by specifying this in your own values.yaml file for flyte-binary.

However, this is frozen in the public sandbox, by default. You will need to override with the following configuration in ~/.flyte/sandbox/config.yaml:

flyte:
  admin:
    seedProjects:
      - myproject

The flytesnacks project might still persist. If so, you will need to wipe your sandbox state with flytectl demo teardown -v then restart it again: flytectl demo start

Screenshot 2023-05-31 at 1 13 14 PM

jeevb avatar May 31 '23 20:05 jeevb

@jeevb sweet. That worked. Thank you :pray:

Is it possible to make that file come from somewhere local to the repository?

rupurt avatar Jun 02 '23 22:06 rupurt

@jeevb sweet. That worked. Thank you 🙏

Is it possible to make that file come from somewhere local to the repository?

Not atm, afaik. But we should make the config directory configurable for sure.

jeevb avatar Jun 02 '23 23:06 jeevb

there is no difference any more

kumare3 avatar Dec 22 '23 20:12 kumare3