Create scaffolding of ddl-simulator
Implement global server as control plane Implement device to get their info from global server and connect each others
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
[
|
||||
{
|
||||
"id": "d1",
|
||||
"role": "leader",
|
||||
"capacity": 1.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3700
|
||||
},
|
||||
{
|
||||
"id": "d2",
|
||||
"role": "leader",
|
||||
"capacity": 1.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3701,
|
||||
"parentID": "d1",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3700
|
||||
},
|
||||
{
|
||||
"id": "d3",
|
||||
"role": "worker",
|
||||
"capacity": 2.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3702,
|
||||
"parentID": "d1",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3700
|
||||
},
|
||||
{
|
||||
"id": "d4",
|
||||
"role": "worker",
|
||||
"capacity": 1.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3703,
|
||||
"parentID": "d2",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3701
|
||||
},
|
||||
{
|
||||
"id": "d5",
|
||||
"role": "worker",
|
||||
"capacity": 5.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3704,
|
||||
"parentID": "d2",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3701
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"id": "d1",
|
||||
"role": "leader",
|
||||
"capacity": 1.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3700
|
||||
},
|
||||
{
|
||||
"id": "d2",
|
||||
"role": "worker",
|
||||
"capacity": 1.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3701,
|
||||
"parentID": "d1",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3700
|
||||
},
|
||||
{
|
||||
"id": "d3",
|
||||
"role": "worker",
|
||||
"capacity": 2.0,
|
||||
"ip": "0.0.0.0",
|
||||
"port": 3702,
|
||||
"parentID": "d1",
|
||||
"parentIP": "127.0.0.1",
|
||||
"parentPort": 3700
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user