280 lines
6.0 KiB
XML
280 lines
6.0 KiB
XML
|
|
{
|
|
"id":"compute_node_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"算力节点",
|
|
|
|
|
|
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_compute_node.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_compute_node.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_compute_node.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_compute_node.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"pool_id": {
|
|
"title": "所属算力池",
|
|
"width": 150
|
|
},
|
|
"name": {
|
|
"title": "节点名称",
|
|
"width": 150
|
|
},
|
|
"ip_address": {
|
|
"title": "IP地址",
|
|
"width": 140
|
|
},
|
|
"cpu_cores": {
|
|
"title": "CPU核数",
|
|
"width": 80
|
|
},
|
|
"memory_gb": {
|
|
"title": "内存GB",
|
|
"width": 80
|
|
},
|
|
"gpu_count": {
|
|
"title": "GPU数",
|
|
"width": 70
|
|
},
|
|
"gpu_type": {
|
|
"title": "GPU型号",
|
|
"width": 100
|
|
},
|
|
"node_type": {
|
|
"title": "节点类型",
|
|
"width": 100
|
|
},
|
|
"status": {
|
|
"title": "状态",
|
|
"width": 100
|
|
}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"resellerid",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "id"
|
|
},
|
|
{
|
|
"name": "pool_id",
|
|
"title": "所属算力池",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "所属算力池",
|
|
"uitype": "code",
|
|
"valueField": "pool_id",
|
|
"textField": "pool_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pcpool')}}",
|
|
"table": "compute_pool",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "pool_id",
|
|
"textField": "pool_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "节点名称",
|
|
"type": "str",
|
|
"length": 128,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "节点名称"
|
|
},
|
|
{
|
|
"name": "ip_address",
|
|
"title": "IP地址",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "IP地址"
|
|
},
|
|
{
|
|
"name": "ssh_port",
|
|
"title": "SSH端口",
|
|
"type": "int",
|
|
"default": 22,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "SSH端口"
|
|
},
|
|
{
|
|
"name": "ssh_user",
|
|
"title": "SSH用户",
|
|
"type": "str",
|
|
"length": 64,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "SSH用户"
|
|
},
|
|
{
|
|
"name": "cpu_cores",
|
|
"title": "CPU核数",
|
|
"type": "int",
|
|
"default": 0,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "CPU核数"
|
|
},
|
|
{
|
|
"name": "memory_gb",
|
|
"title": "内存GB",
|
|
"type": "int",
|
|
"default": 0,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "内存GB"
|
|
},
|
|
{
|
|
"name": "gpu_count",
|
|
"title": "GPU数量",
|
|
"type": "int",
|
|
"default": 0,
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "GPU数量"
|
|
},
|
|
{
|
|
"name": "gpu_type",
|
|
"title": "GPU型号",
|
|
"type": "str",
|
|
"length": 64,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "GPU型号"
|
|
},
|
|
{
|
|
"name": "node_type",
|
|
"title": "节点类型(control/compute/storage)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"label": "节点类型(control/compute/storage)",
|
|
"uitype": "code",
|
|
"valueField": "node_type",
|
|
"textField": "node_type_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pcpool')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "node_type",
|
|
"textField": "node_type_text",
|
|
"cond": "parentid='node_type'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态(available/allocated/maintenance/offline)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"default": "available",
|
|
"label": "状态(available/allocated/maintenance/offline)",
|
|
"uitype": "code",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pcpool')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"cond": "parentid='node_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "last_heartbeat",
|
|
"title": "最后心跳",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "最后心跳"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[]
|
|
|
|
} |