更新时间:2024-01-23 GMT+08:00
分享

获取系统资源

使用get命令获取购买的计算资源、性能加速资源、数据库资源、存储资源列表。

命令结构

health get resource [flags]
表1 参数说明

参数

简写

是否必选

说明

--type

-t

名称,支持computing、performance、database、storage,分别代表计算资源、性能加速资源、数据库资源和存储资源。

--action

-a

查询计算节点方式。

取值范围:

  • get-labels:获取计算资源标签列表。get-labels要和--node一起组合使用。
  • list:获取计算资源列表。
  • flavors:获取可用区下的计算节点规格列表。

默认值:list。

--node

-n

计算节点id。设置了--label后使用,获取某个计算资源节点下的标签列表。

--zone

-z

可用区id。如:cn-north-7c。

命令示例

本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。

  • 获取计算资源列表
    health get resource -t computing
    # 执行成功返回结果如下
    Id                                              Name                                                    Specifications                          Billing Mode            Data Disk               Status          Purchased               Schedulable
    8a178a22-38ca-4707-bab3-e12324cdc96d            health-ef0ec0fb-4022-46c9-898e-fbd440b44c09             eihealth.cpu.spec.cpu4.4xlarge.2        Pay-per-use             SAS|200GB               ACTIVE          2024-01-02 17:30:28     true
  • 获取性能加速资源列表
    health get resource -t performance
    # 执行成功返回结果如下
    ID                                              Name                                                    Specifications                          Billing Mode    Used Capacity   Used Capacity Percent   Max.Capacity    Job Quota       Status                          Purchased               Running Jobs
    01c24e2f-2038-4718-acb0-a0c388a2f93c            sfs-turbo-218766ac-5855-4ad4-a5fd-67130951afdd          eihealth.storage.ioacc.spec.ioacc       xxx     0.00GB          0.00%                   100GB           1               ACTIVE / Schedulable            2023-01-19 21:57:51     0
  • 获取数据库资源列表
    health get resource -t database
    # 执行成功返回结果如下
    Name                                            Specifications                                  Billing Mode    Usage           Data Disk       Status          Purchased
    医疗智能体数据库标准版 200 GB                           eihealth.dbm.spec.standard.200g(4vCPUS|8GB)     Pay-per-use             2.36GB          40GB            NORMAL          2023-12-27 16:07:12
  • 获取存储资源列表
    health get resource -t storage
    # 执行成功返回结果如下
    Name                             Specifications                    Billing Mode    Usage    Purchased
    EIHealthSingleAZStoragePackage   eihealth.storage.spec.singleaz    xxx             4.06TB   2021-09-10 20:58:03
  • 获取计算资源节点标签
    health get resource -t computing -a get-labels  -n 9b1727a3-2102-4d92-95b9-7eaa86b398ac
    
    1 
    111 
    123 
    copy-in
  • 获取计算资源规格列表
    health  get resource -t computing  -a flavors  -z cn-north-7c
    
    Flavor Name                             vCPUs | Memory          Assured/Maximum Bandwidth       Packets per Second(PPS)         Sold Out
    eihealth.cpu.spec.cpu1.8xlarge.2        32vCPUS/64GB            8/15 Gbit/s                     2600000 pps                     true
    eihealth.cpu.spec.cpu1.8xlarge.4        32vCPUS/128GB           8/15 Gbit/s                     2600000 pps                     true
    eihealth.cpu.spec.cpu1.15xlarge.2       60vCPUS/128GB           16/16 Gbit/s                    5000000 pps                     true
    eihealth.cpu.spec.cpu1.15xlarge.4       60vCPUS/256GB           16/16 Gbit/s                    5000000 pps                     true
    eihealth.cpu.spec.cpu3.xlarge.2         4vCPUS/8GB              2.4/8 Gbit/s                    800000 pps                      false
    eihealth.cpu.spec.cpu3.2xlarge.2        8vCPUS/16GB             4.5/15 Gbit/s                   1500000 pps                     false
    eihealth.cpu.spec.cpu3.4xlarge.2        16vCPUS/32GB            9/20 Gbit/s                     2800000 pps                     true
    eihealth.cpu.spec.cpu3.8xlarge.2        32vCPUS/64GB            18/30 Gbit/s                    5500000 pps                     true
    eihealth.cpu.spec.cpu3.8xlarge.4        32vCPUS/128GB           18/30 Gbit/s                    5500000 pps                     true

分享:

    相关文档

    相关产品