Concept machine
and instance
#6890
Replies: 3 comments 29 replies
-
Your table looks good to me as long as we are consistent with it. It seems to parallel docker images vs containers.
I don't think we should assume a 1-1 relationship, although for now only 1-1 is possible. Having a cluster of identical workers will definitely be needed. This could be handled either by having multiple instances or by having a single instance that defines a kubernetes cluster or something similar, but I don't see much downside in keeping open the option of having multiple instances per machine config. |
Beta Was this translation helpful? Give feedback.
-
Meaning https://www.notion.so/iterative/215a0767aa0341d892b52767e58e2ac6 (outdated) and https://github.com/iterative/dvc/wiki/Remote-executors (incomplete) ? Or are there any more internal docs somewhere There's also https://github.com/iterative/terraform-provider-iterative/blob/master/README.md which isn't internal and has the same issue to some extent (especially with term "machine", since "instance" has a clear meaning within that context). |
Beta Was this translation helpful? Give feedback.
-
Here's the related references on subcommands in CLI design: https://clig.dev/#subcommands. Also, off topic, I like this diagram: https://cloud.ibm.com/docs/containers?topic=containers-kubernetes-service-cli @jorgeorpinel What do you think about something like that in the docs? |
Beta Was this translation helpful? Give feedback.
-
Follow #6855 (comment)
We have
machine
,instance
, and config, status with them, They are a bit confusing in the current unreleased documents.So maybe it's time to fix the name and usage for each of the concepts.
Currently,
machine
is a template or a Metaclass object, whileinstance
represents the actual running server, generated from onemachine
. Somachine
here is only an abstract concept, it is only a name of config and does not represent any Cloud/Server in the real world. With thismachine
config, we can generate an actual instance from it that is calledinstance
.instance
here actually represent a real word machine / virtual machine. It can't be configured directly. It only has status and has a similar value to themachine
that generated it.Currently, we have
dvc machine list
anddvc machine status
these two similar commands, one is formachine
to show the config from them, the other is forinstance
to show the running status.machine
sometimes represents the concept of a config, sometimes represents a remote machine and it is also used in the first level in commands makes it more confusing.Another question is that should the
machine
andinstance
here be a one-to-one relationship?@dberenbaum , @jorgeorpinel , @pmrowla
Beta Was this translation helpful? Give feedback.
All reactions