Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.4 KB

File metadata and controls

46 lines (36 loc) · 1.4 KB

CPU usage

In order to use XPK for CPU, you can do so by using device-type flag.

  • Cluster Create (provision on-demand capacity):

    # Run cluster create with on demand capacity.
    xpk cluster create \
    --cluster xpk-test \
    --device-type=n2-standard-32-256 \
    --num-slices=1 \
    --default-pool-cpu-machine-type=n2-standard-32 \
    --on-demand

    Note that device-type for CPUs is of the format -, thus in the above example, user requests for 256 VMs of type n2-standard-32. Currently workloads using < 1000 VMs are supported.

  • Run a workload:

    # Submit a workload
    xpk workload create \
    --cluster xpk-test \
    --num-slices=1 \
    --device-type=n2-standard-32-256 \
    --workload xpk-test-workload \
    --command="echo hello world"