Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
a7aa2b33
Commit
a7aa2b33
authored
Jan 25, 2024
by
Antoine Kaufmann
Committed by
Hejing Li
Feb 01, 2024
Browse files
experiments: add weights to switches in e2e dc topology
Choose number of hosts underneath switch as weight
parent
bb9781a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+5
-0
No files found.
experiments/simbricks/orchestration/e2e_topologies.py
View file @
a7aa2b33
...
...
@@ -145,6 +145,8 @@ class DCFatTree(E2ETopology):
# Create spine switches
for
i
in
range
(
0
,
self
.
params
[
'n_spine_sw'
]):
sw
=
e2e
.
E2ESwitchNode
(
f
"_
{
bn
}
spine
{
i
}
"
)
sw
.
weight
=
(
self
.
params
[
'n_agg_bl'
]
*
self
.
params
[
'n_agg_sw'
]
*
self
.
params
[
'n_agg_racks'
]
*
self
.
params
[
'h_per_rack'
])
sw
.
mtu
=
self
.
params
[
'mtu'
]
self
.
spine_switches
.
append
(
sw
)
self
.
switches
.
append
(
sw
)
...
...
@@ -160,6 +162,8 @@ class DCFatTree(E2ETopology):
# Create switches in aggregation blocks
for
j
in
range
(
0
,
self
.
params
[
'n_agg_sw'
]):
sw
=
e2e
.
E2ESwitchNode
(
f
"_
{
bn
}
agg
{
i
}
_
{
j
}
"
)
sw
.
weight
=
(
self
.
params
[
'n_agg_racks'
]
*
self
.
params
[
'h_per_rack'
])
sw
.
mtu
=
self
.
params
[
'mtu'
]
ab
[
'switches'
].
append
(
sw
)
self
.
switches
.
append
(
sw
)
...
...
@@ -167,6 +171,7 @@ class DCFatTree(E2ETopology):
# Create racks (including ToRs)
for
j
in
range
(
0
,
self
.
params
[
'n_agg_racks'
]):
tor
=
e2e
.
E2ESwitchNode
(
f
"_
{
bn
}
tor
{
i
}
_
{
j
}
"
)
tor
.
weight
=
self
.
params
[
'h_per_rack'
]
sw
.
mtu
=
self
.
params
[
'mtu'
]
r
=
{
'id'
:
f
'rack
{
i
}
_
{
j
}
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment