119 lines
2.2 KiB
JSON
119 lines
2.2 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "compute_pool",
|
|
"title": "算力池",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "resellerid",
|
|
"title": "商户机构id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "池名称",
|
|
"type": "str",
|
|
"length": 128,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "pool_type",
|
|
"title": "集群类型(k8s/slurm/ray)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "str",
|
|
"length": 512
|
|
},
|
|
{
|
|
"name": "total_cpu",
|
|
"title": "总CPU核数",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "total_memory_gb",
|
|
"title": "总内存GB",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "total_gpu",
|
|
"title": "总GPU数",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "allocated_cpu",
|
|
"title": "已分配CPU",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "allocated_memory_gb",
|
|
"title": "已分配内存GB",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "allocated_gpu",
|
|
"title": "已分配GPU",
|
|
"type": "int",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态(1=启用 0=停用)",
|
|
"type": "char",
|
|
"length": 1,
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "pool_type",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='cluster_type'"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='product_status'"
|
|
}
|
|
]
|
|
} |