Compare commits
No commits in common. "a697b2d47fa6369588c1384bf4bf86b907e9c910" and "8d42d6e700bebcd52bfb9bee950ff2695ae80be2" have entirely different histories.
a697b2d47f
...
8d42d6e700
@ -1,45 +0,0 @@
|
|||||||
async def get_zhipu_0112_product(ns={}):
|
|
||||||
return {
|
|
||||||
'status': True,
|
|
||||||
'msg': 'get product list success',
|
|
||||||
'data': [
|
|
||||||
{
|
|
||||||
"name": "GPU节点(云算力调度系统服务、算力运维服务)算力服务器型号:8卡CPU服务器",
|
|
||||||
"price": "58000元/月/节点",
|
|
||||||
"amount": 96,
|
|
||||||
"price_month": "5568000 元/月",
|
|
||||||
"total_price": "16704000元",
|
|
||||||
"hardware": [
|
|
||||||
{"name": "GPU型号", "value": "NVIDIA A100"},
|
|
||||||
{"name": "显存", "value": "80G"},
|
|
||||||
{"name": "CPU", "value": "AMD EPYC 7763 64-core"},
|
|
||||||
{"name": "内存", "value": "256GB"},
|
|
||||||
{"name": "存储", "value": "2TB NVMe SSD"},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "GPU计算节点(高性能图形渲染服务、并行数据处理服务)算力服务器型号:多卡GPU服务器",
|
|
||||||
"price": "11600元/月/节点",
|
|
||||||
"amount": 72,
|
|
||||||
"price_month": "835200 元/月",
|
|
||||||
"total_price": "2505600元",
|
|
||||||
"hardware": [
|
|
||||||
{"name": "GPU型号", "value": " NVIDIA RTX 4090"},
|
|
||||||
{"name": "显存", "value": "24G"},
|
|
||||||
{"name": "CPU", "value": "Intel Xeon Platinum 8375C 32-core"},
|
|
||||||
{"name": "内存", "value": "128GB"},
|
|
||||||
{"name": "存储", "value": "1TB NVMe SSD"},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "算力技术服务",
|
|
||||||
"price": "63595/月",
|
|
||||||
"amount": 1,
|
|
||||||
"price_month": "63595 元/月",
|
|
||||||
"total_price": "190785元"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = await get_zhipu_0112_product(params_kw)
|
|
||||||
return ret
|
|
||||||
@ -1,135 +0,0 @@
|
|||||||
async def get_zhipu_0112_product_detail(ns={}):
|
|
||||||
import random
|
|
||||||
import copy
|
|
||||||
ygpu_base = {
|
|
||||||
"device_id": "CZ-YGPU-80",
|
|
||||||
"internal_ip": "192.168.1.80",
|
|
||||||
"public_ip": "101.202.185.248",
|
|
||||||
"service_period": {
|
|
||||||
"start_date": "2025-10-01",
|
|
||||||
"end_date": "2025-12-31"
|
|
||||||
},
|
|
||||||
"hardware_config": {
|
|
||||||
"gpu": {
|
|
||||||
"model": "NVIDIA A100 80GB",
|
|
||||||
"memory": "80GB"
|
|
||||||
},
|
|
||||||
"cpu": "AMD EPYC 7763 64-core",
|
|
||||||
"ram": "256GB",
|
|
||||||
"storage": "2TB NVMe SSD"
|
|
||||||
},
|
|
||||||
"network_config": {
|
|
||||||
"bandwidth": "10Gbps"
|
|
||||||
},
|
|
||||||
"service_level": {
|
|
||||||
"sla": "99.9%",
|
|
||||||
"max_concurrent_connections": 100,
|
|
||||||
"max_load_threshold": "90%",
|
|
||||||
"billing_method": "monthly"
|
|
||||||
},
|
|
||||||
"historical_stats": {
|
|
||||||
"uptime_rate": "1",
|
|
||||||
"average_load": "1",
|
|
||||||
"peak_load": "1",
|
|
||||||
"total_usage_hours": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
hgpu_base = {
|
|
||||||
"device_id": "CZ-HGPU-02",
|
|
||||||
"internal_ip": "192.168.2.80",
|
|
||||||
"public_ip": "101.202.185.248",
|
|
||||||
"service_period": {
|
|
||||||
"start_date": "2025-10-01",
|
|
||||||
"end_date": "2025-12-31"
|
|
||||||
},
|
|
||||||
"hardware_config": {
|
|
||||||
"gpu": {
|
|
||||||
"model": " NVIDIA RTX 4090 24GB",
|
|
||||||
"memory": "24GB"
|
|
||||||
},
|
|
||||||
"cpu": "Intel Xeon Platinum 8375C 32-core",
|
|
||||||
"ram": "128GB",
|
|
||||||
"storage": "1TB NVMe SSD"
|
|
||||||
},
|
|
||||||
"network_config": {
|
|
||||||
"bandwidth": "5Gbps"
|
|
||||||
},
|
|
||||||
"service_level": {
|
|
||||||
"sla": "99.5%",
|
|
||||||
"max_concurrent_connections": 50,
|
|
||||||
"max_load_threshold": "80%",
|
|
||||||
"billing_method": "monthly"
|
|
||||||
},
|
|
||||||
"historical_stats": {
|
|
||||||
"uptime_rate": "1",
|
|
||||||
"average_load": "1",
|
|
||||||
"peak_load": "1",
|
|
||||||
"total_usage_hours": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ygpu_list = []
|
|
||||||
for i in range(1, 97):
|
|
||||||
ygpu = copy.deepcopy(ygpu_base)
|
|
||||||
ygpu['device_id'] = f'CZ-YGPU-{i:02d}'
|
|
||||||
ygpu['internal_ip'] = f'192.168.1.{i}'
|
|
||||||
ygpu['public_ip'] = f'101.202.{i+100}.{i+123}'
|
|
||||||
ygpu['historical_stats']['uptime_rate'] = str(round(random.uniform(90, 99.99), 2)) + '%'
|
|
||||||
ygpu['historical_stats']['average_load'] = str(round(random.uniform(60, 80.9), 1)) + '%'
|
|
||||||
ygpu['historical_stats']['peak_load'] = str(round(random.uniform(80, 90.9), 1)) + '%'
|
|
||||||
ygpu['historical_stats']['total_usage_hours'] = random.randint(1900, 2100)
|
|
||||||
ygpu_list.append(ygpu)
|
|
||||||
hgpu_list = []
|
|
||||||
for i in range(1, 73):
|
|
||||||
hgpu = copy.deepcopy(hgpu_base)
|
|
||||||
uptime_rate = str(round(random.uniform(90, 99.99), 2)) + '%'
|
|
||||||
average_load = str(round(random.uniform(60, 80.9), 1)) + '%'
|
|
||||||
peak_load = str(round(random.uniform(80, 90.9), 1)) + '%'
|
|
||||||
total_usage_hours = random.randint(1900, 2100)
|
|
||||||
hgpu['device_id'] = f'CZ-HGPU-{i:02d}'
|
|
||||||
hgpu['internal_ip'] = f'192.168.2.{i}'
|
|
||||||
hgpu['public_ip'] = f'101.202.{i+100}.{i+123}'
|
|
||||||
hgpu['historical_stats']['uptime_rate'] = uptime_rate
|
|
||||||
hgpu['historical_stats']['average_load'] = average_load
|
|
||||||
hgpu['historical_stats']['peak_load'] = peak_load
|
|
||||||
hgpu['historical_stats']['total_usage_hours'] = total_usage_hours
|
|
||||||
hgpu_list.append(hgpu)
|
|
||||||
|
|
||||||
data = {
|
|
||||||
'status': True,
|
|
||||||
'msg': 'get product list success',
|
|
||||||
'data': {}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ns.get('keyword') == 'ygpu':
|
|
||||||
if ns.get('server_id'):
|
|
||||||
count_ygpu = 0
|
|
||||||
for ygpu in ygpu_list:
|
|
||||||
if ygpu['device_id'] == ns.get('server_id'):
|
|
||||||
count_ygpu += 1
|
|
||||||
data['data'] = {"servers": [ygpu]}
|
|
||||||
return data
|
|
||||||
if count_ygpu == 0:
|
|
||||||
data['data'] = {"servers": []}
|
|
||||||
return {'status': False, 'msg': 'server_id not found', 'data': {"servers": []}}
|
|
||||||
data['data'] = {"servers": ygpu_list}
|
|
||||||
elif ns.get('keyword') == 'hgpu':
|
|
||||||
if ns.get('server_id'):
|
|
||||||
count_hgpu = 0
|
|
||||||
for hgpu in hgpu_list:
|
|
||||||
if hgpu['device_id'] == ns.get('server_id'):
|
|
||||||
count_hgpu += 1
|
|
||||||
data['data'] = {"servers": [hgpu]}
|
|
||||||
return data
|
|
||||||
if count_hgpu == 0:
|
|
||||||
data['data'] = {"servers": []}
|
|
||||||
return {'status': False, 'msg': 'server_id not found', 'data': {"servers": []}}
|
|
||||||
data['data'] = {"servers": hgpu_list}
|
|
||||||
else:
|
|
||||||
data['data'] = {
|
|
||||||
"ygpu_servers": ygpu_list,
|
|
||||||
"hgpu_servers": hgpu_list
|
|
||||||
}
|
|
||||||
return data
|
|
||||||
|
|
||||||
ret = await get_zhipu_0112_product_detail(params_kw)
|
|
||||||
return ret
|
|
||||||
@ -7,9 +7,9 @@
|
|||||||
<div class="title">异构芯片规模</div>
|
<div class="title">异构芯片规模</div>
|
||||||
<div class="conter">
|
<div class="conter">
|
||||||
<div class="conter-top">
|
<div class="conter-top">
|
||||||
<div class="top-tit">33000 /<span>P</span></div>
|
<div class="top-tit">33000 /<span>个</span></div>
|
||||||
<div class="top-tit">5000 /<span>P</span></div>
|
<div class="top-tit">5000 /<span>个</span></div>
|
||||||
<div class="top-tit">8000 /<span>P</span></div>
|
<div class="top-tit">8000 /<span>个</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="conter-center">
|
<div class="conter-center">
|
||||||
<img src="../images/3D.png" alt="">
|
<img src="../images/3D.png" alt="">
|
||||||
@ -491,8 +491,7 @@ export default {
|
|||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
margin-left: 2px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user