Skip to content

Allow creating an exec with cpu node types#31

Merged
zknill merged 3 commits intomasterfrom
zak/cpu-node-types
Jun 27, 2023
Merged

Allow creating an exec with cpu node types#31
zknill merged 3 commits intomasterfrom
zak/cpu-node-types

Conversation

@zknill
Copy link
Copy Markdown
Contributor

@zknill zknill commented Jun 23, 2023

Update the ls-node-types command to list CPU node types. Update the session logging and listing to print the node type.

ls-node-types command has a Type column, CPU or GPU.
The node types are also sorted by price.

Update the exec, ssh, and new commands to accept a --cpu-type. This is mutually exclusive with --gpu-type.

Update the ls-node-types command to list CPU node types.
Update the session logging and listing to print the node type.
@zknill zknill requested a review from noorvir June 23, 2023 16:42
@zknill zknill marked this pull request as ready for review June 26, 2023 11:49
regions = strings.Join(nodeType.Regions, ", ")
}
row := ui.Row{
nodeType.Type,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This printed table is getting pretty wide and doesn't fit on one screen. We might need to refactor it to only include minimal identifying info (name, status, type, createdAt (?), and leave the rest to the unweave ls <exec-name> command (which would then print the info vertically.

Default to the intel cpu node type, unless a --gpu-type is passed on the
cli. The default is set in the .unweave/config.toml file.
@zknill zknill force-pushed the zak/cpu-node-types branch from 0f6cb99 to ace7815 Compare June 27, 2023 13:12
@zknill zknill merged commit bf32d01 into master Jun 27, 2023
@zknill zknill deleted the zak/cpu-node-types branch June 27, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants