Commit 24fffd06 authored by Nicolas Seydoux's avatar Nicolas Seydoux
Browse files

Topology for distributed scalability experiments

parent c670712b
......@@ -86,23 +86,41 @@
#############################
echo "Scala distributed"
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_adp -c adp
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_adp -c adp
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_adp -c adp
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cdr -c cdr
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cir -c cir
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cdp -c cdp
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_cip -c cip
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/coopis/clone_f_0_rpi23sb_adp -c adp
#
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cdr -c cdr
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cir -c cir
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cdp -c cdp
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_cip -c cip
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/coopis/clone_f_1_rpi23sb_adp -c adp
#
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cdr -c cdr
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cir -c cir
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cdp -c cdp
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_cip -c cip
# python3 simulator/generator.py -t simulator/coopis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/coopis/clone_f_2_rpi23sb_adp -c adp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/thesis/clone_f_0_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/thesis/clone_f_0_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/thesis/clone_f_0_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/thesis/clone_f_0_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_0_rpi23sb.json -o simulator/thesis/clone_f_0_rpi23sb_adp -c adp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/thesis/clone_f_1_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/thesis/clone_f_1_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/thesis/clone_f_1_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/thesis/clone_f_1_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_1_rpi23sb.json -o simulator/thesis/clone_f_1_rpi23sb_adp -c adp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/thesis/clone_f_2_rpi23sb_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/thesis/clone_f_2_rpi23sb_cir -c cir
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/thesis/clone_f_2_rpi23sb_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/thesis/clone_f_2_rpi23sb_cip -c cip
python3 simulator/generator.py -t simulator/thesis/scala_distributed/clone_f_2_rpi23sb.json -o simulator/thesis/clone_f_2_rpi23sb_adp -c adp
#############################
# echo "Specialisation"
......
echo "distribution local"
python3 factory_generator.py -b distribution/distribution_0_blueprint.json -d distribution/distribution_0.ttl -o distribution/distribution_0.json
python3 factory_generator.py -b distribution/distribution_1_blueprint.json -d distribution/distribution_1.ttl -o distribution/distribution_1.json
python3 factory_generator.py -b distribution/distribution_2_blueprint.json -d distribution/distribution_2.ttl -o distribution/distribution_2.json
python3 factory_generator.py -b distribution/distribution_3_blueprint.json -d distribution/distribution_3.ttl -o distribution/distribution_3.json
python3 factory_generator.py -b distribution/distribution_4_blueprint.json -d distribution/distribution_4.ttl -o distribution/distribution_4.json
# python3 factory_generator.py -b distribution/distribution_0_blueprint.json -d distribution/distribution_0.ttl -o distribution/distribution_0.json
# python3 factory_generator.py -b distribution/distribution_1_blueprint.json -d distribution/distribution_1.ttl -o distribution/distribution_1.json
# python3 factory_generator.py -b distribution/distribution_2_blueprint.json -d distribution/distribution_2.ttl -o distribution/distribution_2.json
# python3 factory_generator.py -b distribution/distribution_3_blueprint.json -d distribution/distribution_3.ttl -o distribution/distribution_3.json
# python3 factory_generator.py -b distribution/distribution_4_blueprint.json -d distribution/distribution_4.ttl -o distribution/distribution_4.json
echo "scalability distrib"
python3 factory_generator.py -b scala_distributed/clone_f_0_rpi23sb_blueprint.json -d scala_distributed/clone_f_0_rpi23sb.ttl -o scala_distributed/clone_f_0_rpi23sb.json
python3 factory_generator.py -b scala_distributed/clone_f_1_rpi23sb_blueprint.json -d scala_distributed/clone_f_1_rpi23sb.ttl -o scala_distributed/clone_f_1_rpi23sb.json
python3 factory_generator.py -b scala_distributed/clone_f_2_rpi23sb_blueprint.json -d scala_distributed/clone_f_2_rpi23sb.ttl -o scala_distributed/clone_f_2_rpi23sb.json
{
"layers": {
"concentrates": [
{
"host": "http://rate.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "particle_level",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Floor0",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "temperature",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Floor0",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "luminosity",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "presence",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "conveyor_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "conveyor_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "supervisor_presence",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0
},
{
"host": "http://blacksad.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "product_quality",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"type": "room",
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "product_quality",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"type": "room",
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"type": "gallery",
"count": 1
},
{
"host": "http://syndream.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "luminosity",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "presence",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "conveyor_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "conveyor_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "supervisor_presence",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0
},
{
"host": "http://blacksad.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "product_quality",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"type": "room",
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_state",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine011",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "product_quality",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine011",
"up": 0
},
{
"host": "http://syndream.laas.fr",
"type": "sensor",
"count": 1,
"measures": "machine_speed",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine011",
"up": 0
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine011",
"type": "room",
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"type": "gallery",
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Floor0",
"type": "floor",
"count": 1
}
],
"host": "http://syndream.laas.fr",
"type": "building",
"count": 1
},
"name": "myFactory",
"centralized": "adp",
"common_knowledge": [
"https://w3id.org/laas-iot/edr/iiot/scala_distributed/clone_f_0_rpi23sb.ttl"
]
}
{
"type":"factory",
"floors":[{
"type":"floor",
"sensors":[{"type":"particle_level", "up":0}, {"type":"temperature", "up":0}],
"count":1,
"conveyors":[{
"type":"conveyor",
"sensors":[{"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"conveyor_state", "up":0}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":0}],
"count":2,
"machines":[{
"type":"spark_machine",
"sensors":[{"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"count":1
},{
"type":"temperature_machine",
"sensors":[{"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"count":1
}]
}
]
}
]
}
{
"layers": {
"host": "http://syndream.laas.fr",
"type": "building",
"concentrates": [
{
"host": "http://rate.laas.fr",
"type": "floor",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "particle_level",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Floor0",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "temperature",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Floor0",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"type": "gallery",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "luminosity",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "presence",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "conveyor_state",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "conveyor_speed",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "supervisor_presence",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"up": 0,
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"type": "room",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "machine_state",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "product_quality",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "machine_speed",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"up": 0,
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine000",
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"type": "room",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "machine_state",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "product_quality",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "machine_speed",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"up": 0,
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine001",
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor00",
"count": 1
},
{
"host": "http://syndream.laas.fr",
"type": "gallery",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "luminosity",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "presence",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "conveyor_state",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "conveyor_speed",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "supervisor_presence",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Conveyor01",
"up": 0,
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"type": "room",
"concentrates": [
{
"host": "http://syndream.laas.fr",
"measures": "machine_state",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "product_quality",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0,
"count": 1
},
{
"host": "http://syndream.laas.fr",
"measures": "machine_speed",
"type": "sensor",
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"up": 0,
"count": 1
}
],
"feature": "https://w3id.org/laas-iot/edr/iiot/factory#Machine010",
"count": 1
},
{
"host": "http://blacksad.laas.fr",
"type": "room",
"concentrates": [
{
"host": "http://syndream.laas.fr"