代码拉取完成,页面将自动刷新
同步操作将从 Ascend/mind-cluster 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
Copyright(C)2020-2022. Huawei Technologies Co.,Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
Package plugin is using for HuaWei Ascend pin affinity schedule frame.
*/
package plugin
const (
// TorNodeCMName the Name of tor info configmap
TorNodeCMName = "basic-tor-node-cm"
// TorShareCMName the Name of tor share info configmap
TorShareCMName = "tor-share-cm"
// TorInfoCMKey the key of tor info in configmap
TorInfoCMKey = "tor_info"
// TorLevelCMKey the key of tor level in configmap
TorLevelCMKey = "tor_level"
// SingleLayer the single layer switch value of tor level in configmap
SingleLayer = "single_layer"
// TorAffinityKey the key of tor affinity
TorAffinityKey = "tor-affinity"
// GlobalTorInfoKey the key of tor share info in configmap
GlobalTorInfoKey = "global-tor-info"
// NormalSchema the value of normal tor affinity
NormalSchema = "normal-schema"
keyOfSharedTorNum = "shared-tor-num"
shareTorNum1 = 1
shareTorNum2 = 2
keyOfNSLBVersion = "nslb-version"
defaultNSLBVersion = "1.0"
// NSLB2Version nslb 2.0 version
NSLB2Version = "2.0"
isHealthy = "isHealthy"
isSharedTor = "isSharedTor"
vcTaskIndex = "VC_TASK_INDEX"
cmNameSpace = "volcano-system"
defaultSuperPodSize = 48
defaultReserveNodes = 2
// PodRankIndexKey rank index key
PodRankIndexKey = "hccl/rankIndex"
// ReplicaSetType replicaset type
ReplicaSetType = "ReplicaSet"
)
const (
freeTor = 0
)
const (
// the define of tor is healthy
healthyTor = 0
unhealthyTor = 1
)
const (
scoreWeight = 100
defaultSchedulingTaskNum = -1
deviceInfoForceUpdateInterval = 10
)
const (
chipKind = "910"
chipTypeKey = "node.kubernetes.io/npu.chip.name"
// ChipTypeB1 chip type 910B1
ChipTypeB1 = chipKind + "B1"
// ChipTypeB2C chip type 910B2C
ChipTypeB2C = chipKind + "B2C"
// ChipTypeB2 chip type 910 B2
ChipTypeB2 = chipKind + "B2"
// ChipTypeB3 chip type 910B3
ChipTypeB3 = chipKind + "B3"
// ChipTypeB4 chip type 910B4
ChipTypeB4 = chipKind + "B4"
)
// the temp of 910B1/910B2C
const (
// VNPUTempVir06 vir06_1c_16g
VNPUTempVir06 = "vir06_1c_16g"
// VNPUTempVir03 vir03_1c_8g
VNPUTempVir03 = "vir03_1c_8g"
// VNPUTempVir12 vir12_3c_32g
VNPUTempVir12 = "vir12_3c_32g"
)
// the temp of 910B3
const (
// VNPUTempVir05 vir05_1c_16g
VNPUTempVir05 = "vir05_1c_16g"
// VNPUTempVir10 vir10_3c_32g
VNPUTempVir10 = "vir10_3c_32g"
)
// the temp of 910B4
const (
// VNPUB4TempVir05 vir05_1c_8g
VNPUB4TempVir05 = "vir05_1c_8g"
// VNPUB4TempVir10C3NM vir10_3c_16g_nm
VNPUB4TempVir10C3NM = "vir10_3c_16g_nm"
// VNPUB4TempVir10C4M vir10_4c_16g_m
VNPUB4TempVir10C4M = "vir10_4c_16g_m"
// VNPUB4TempVir10 vir10_3c_16g
VNPUB4TempVir10 = "vir10_3c_16g"
)
const (
// GraceExitValue grace exit value
GraceExitValue = 1
// DefaultExitValue default exit value
DefaultExitValue = 0
)
const (
// DefaultGraceOverTime time interval for grace delete
DefaultGraceOverTime = 900
// GraceOverTimeKey for GraceOverTime config by user
GraceOverTimeKey = "grace-over-time"
minGraceOverTime = 2
maxGraceOverTime = 3600
reserveNodesKey = "reserve-nodes"
sizeOfSuperPodKey = "super-pod-size"
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。