Skip to content

Commit 49d5a42

Browse files
Merge pull request volcano-sh#4719 from 3sunny/master_label_hypernode
Revise the documentation for hypernode auto discovery
2 parents 83f550e + ec891a3 commit 49d5a42

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

docs/design/hyperNode-auto-discovery.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This design document describes the design and implementation of the HyperNode ne
66

77
## Design Goals
88

9-
* **Automated Discovery**: Automatically discover network topology information from different data sources (such as UFM, RoCE, etc.).
9+
* **Automated Discovery**: Automatically discover network topology information from different data sources (such as UFM, RoCE, label, etc.).
1010
* **Scalability**: Support multiple network topology discovery sources and easily extend new discovery methods.
1111
* **Real-time**: Be able to reflect changes in network topology in a timely manner.
1212
* **Fault Tolerance**: When a discovery source fails, it does not affect the normal operation of the system.
@@ -63,9 +63,16 @@ networkTopologyDiscovery:
6363
config:
6464
[...]
6565
- source: label
66-
enabled: false
66+
enabled: true
6767
config:
68-
# Configuration of the label discovery source
68+
networkTopologyTypes:
69+
rack-level-topology: # 2-level topology
70+
- nodeLabel: "volcano.sh/tor"
71+
- nodeLabel: "kubernetes.io/hostname"
72+
cluster-level-topology: # 3-level topology
73+
- nodeLabel: "volcano.sh/hypercluster"
74+
- nodeLabel: "volcano.sh/hypernode"
75+
- nodeLabel: "kubernetes.io/hostname"
6976
```
7077
7178
* **Code Example**:
@@ -91,7 +98,7 @@ type Credentials struct {
9198

9299
// DiscoveryConfig contains configuration for a specific discovery source
93100
type DiscoveryConfig struct {
94-
// Source specifies the discover source (e.g., "ufm", "roce", etc.)
101+
// Source specifies the discover source (e.g., "ufm", "roce", "label", etc.)
95102
Source string `json:"source" yaml:"source"`
96103

97104
// Enabled determines if discovery for this source is active

0 commit comments

Comments
 (0)