Inductiva Logo
Cli

resources

resources

inductiva resources - CLI interface

inductiva resources [-h] {cost,info,available,list,ls} ...

Computational resource management utilities.

The inductiva resources command provides utilities for managing computational resources. It allows you to show estimated costs of resources, show available machine types, list current active resources, and terminate resources.

Options

  • , - show this help message and exit

inductiva resources cost

inductiva resources cost [-h] [--spot] [-n NUM_MACHINES] [--zone ZONE] machine_type

Estimate the costs of the computational resources you plan to use per hour.

The inductiva resources cost command helps you estimate the cost of a machine on the cloud. It allows you to specify the machine type, number of machines, zones, and whether you’re using spot instances.

Positional Arguments

  • - Type of machine to launch. (default: None)

Options

  • , - show this help message and exit
  • - Type of machine to launch.
  • NUM_MACHINES, NUM_MACHINES - Number of machines to launch. (default: 1)
  • ZONE - Zone where the machines will be launched. (default: europe-west1-b)

Examples


# Estimate the cost of using 4 machines of type c2-standard-8
$ inductiva resources cost c2-standard-8 --spot -n 4
Estimated total cost (per machine): 0.48 US$ (0.12 US$)/h.

inductiva resources info

inductiva resources info [-h] [-w [WATCH]] name

The inductiva resources info command provides information about a machine group.

Positional Arguments

  • - name of the machine group to get information about. (default: None)

Options

  • , - show this help message and exit
  • WATCH, WATCH - Prompt the command every N seconds. (default: None)

inductiva resources available

inductiva resources available [-h] [-p {GCP,LOCAL}] [-f FAMILY [FAMILY ...]] [-s]

The inductiva resources available command provides a utility for listing the available machine types by provider (default: GCP) and CPU series. The list includes a description of the memory types and vCPUs available.

Options

  • , - show this help message and exit
  • PROVIDER, PROVIDER - Filter the available types by provider. (default: gcp)
  • FAMILY, FAMILY - Filter the available types by CPU series. (default: None)
  • , - Shows spot instance price.

Examples


# List all available machine types
$ inductiva resources available

MACHINE TYPE            VCPUS     GPUS                     MEMORY (GB)     PRICE/HOUR (USD)     ZONE
a2-highgpu-1g           12        1 x NVIDIA A100 (40gb)   85.0            2.353126             us-central1-a
a2-highgpu-1g           12        1 x NVIDIA A100 (40gb)   85.0            3.747972             europe-west4-b

a2-highgpu-2g           24        2 x NVIDIA A100 (40gb)   170.0           4.706252             us-central1-a
a2-highgpu-2g           24        2 x NVIDIA A100 (40gb)   170.0           7.495944             europe-west4-b

a2-highgpu-4g           48        4 x NVIDIA A100 (40gb)   340.0           9.412504             us-central1-a
a2-highgpu-4g           48        4 x NVIDIA A100 (40gb)   340.0           14.991888            europe-west4-b

a2-highgpu-8g           96        8 x NVIDIA A100 (40gb)   680.0           18.825008            us-central1-a
a2-highgpu-8g           96        8 x NVIDIA A100 (40gb)   680.0           29.983776            europe-west4-b
...

# List the available machine types of the c3d family
$ inductiva resources available -f c3d

MACHINE TYPE            VCPUS     GPUS     MEMORY (GB)     PRICE/HOUR (USD)     ZONE
c3d-highcpu-4           4         n/a      8.0             0.16508132           europe-west1-b

c3d-highcpu-8           8         n/a      16.0            0.33016264           europe-west1-b

c3d-highcpu-16          16        n/a      32.0            0.66032528           europe-west1-b

c3d-highcpu-30          30        n/a      59.0            1.233750645          europe-west1-b

c3d-highcpu-60          60        n/a      118.0           2.46750129           europe-west1-b

c3d-highcpu-90          90        n/a      177.0           3.701251935          europe-west1-b

c3d-highcpu-180         180       n/a      354.0           7.40250387           europe-west1-b

c3d-highcpu-360         360       n/a      708.0           14.80500774          europe-west1-b
...

inductiva resources list (ls)

inductiva resources list [-h] [-w [WATCH]]

The inductiva resources list command provides a snapshot of your active computational resources. From machine type to start time, it gives you a comprehensive overview of your resources in one place.

Options

  • , - show this help message and exit
  • WATCH, WATCH - Prompt the command every N seconds. (default: None)

Examples


$ inductiva resources list
Active Resources:

NAME                            MACHINE TYPE     ELASTIC     TYPE       # MACHINES     DATA SIZE IN GB     SPOT     CREATED AT (UTC)     IDLE TIME      MAX COST ($/HOUR)
api-tgowxa5pdqxoz3kqtzdyuxay2   c2-standard-4    False       standard   0/1            10                  True     24/07, 14:37:00      None/0:03:00   0.755238
api-o309vfqp3i58303hz3y1dk3g5   c2-standard-4    False       standard   0/1            10                  True     24/07, 14:36:25      None/0:03:00   0.755238

inductiva resources start

inductiva resources start [-h] [-n NUM_MACHINES] [-d DATA_DISK_GB] [-s] machine_type

The inductiva resources start command initiates computational resources. It provides options to specify the machine type, number of machines,disk size in GB, and the use of spot instances. This command is suitablefor initiating both individual machines and clusters.

To terminate resources, use the inductiva resources terminate command.

Positional Arguments

  • - Machine type to start. (default: None)

Options

  • , - show this help message and exit
  • NUM_MACHINES, NUM_MACHINES - Number of machines to start. (default: 1)
  • DATA_DISK_GB, DATA_DISK_GB - Disk size in GB. (default: 70)
  • , - Whether to use spot instances.

inductiva resources terminate

inductiva resources terminate [-h] [-y] [--all] [name ...]

The inductiva resources terminate command provides a utility for terminating active computational resources. It allows you to specify the names of the resources to terminate, or terminate all active resources. Multiple resources can be terminated at once by providing their names.

All tasks running on the resources you are terminating will be immediately killed, regardless of their current stage.

Each step requires user confirmation before proceeding.

Positional Arguments

  • - Name(s) of the resource(s) to terminate. (default: None)

Options

  • , - show this help message and exit
  • , - Sets any confirmation values to "yes" automatically. Users will not be asked for confirmation to terminate resource(s).
  • - Terminate all machines.

Examples


$ inductiva resources terminate --all
You are about to terminate ALL resources.
Are you sure you want to proceed (y/[N])? y
Terminating MPICluster(name="api-p3kun5wyta1hacstu4xk38ujr"). This may take a few minutes.
MPI Cluster api-p3kun5wyta1hacstu4xk38ujr with c2-standard-8 x2 machines successfully terminated in 0:01:10.
Terminating MachineGroup(name="api-rdqprn82417bsd7id1qnac4c6"). This may take a few minutes.
Machine Group api-rdqprn82417bsd7id1qnac4c6 with c2-standard-4 machines successfully terminated in 0:01:18.