Skip to content
Snippets Groups Projects
Commit e3836285 authored by julian's avatar julian
Browse files

configured experiment run

parent 751bb601
Branches
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ MOS_HOST=mosquitto
MOS_TOPIC=ta1-cadets-e3-official
# pub
LINES_PER_SECOND=1500
BATCH_SIZE=1500
LINES_PER_SECOND=10000
BATCH_SIZE=1000000
# query
QUERY_INTERVAL=1
......
......@@ -77,8 +77,6 @@ services:
volumes:
- ./postgres/initdb/initdb.py:/docker-entrypoint-initdb.d/initdb.py:ro
- ./postgres/initdb/00-initdb.sql:/docker-entrypoint-initdb.d/00-initdb.sql:ro
- ./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
- ./postgres/initdb/04-initdb_edge_index.sql:/docker-entrypoint-initdb.d/04-initdb.sql:ro
configs:
- postgres_conf
- data.zip
......
services:
postgres:
volumes:
- ./postgres/initdb/02-initdb_edge_id_no_uuid_index.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
File moved
services:
postgres:
volumes:
- ./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
......@@ -2,4 +2,3 @@ services:
postgres:
volumes:
- ./postgres/initdb/02-initdb_edge_uuid.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
- ./postgres/initdb/03-initdb_trigger_edge_uuid.sql:/docker-entrypoint-initdb.d/03-initdb.sql:ro
CREATE TABLE edge(
source INTEGER NOT NULL,
destination INTEGER NOT NULL,
type EDGE_TYPE NOT NULL
);
......@@ -26,6 +26,84 @@ if __name__ == "__main__":
result_dir = "result"
if not path.exists(result_dir):
makedirs(result_dir)
run_experiment(
("compose.yml", "edge-id-empty.yml", "index.yml"), {"LINES_PER_SECOND": 3000}
experiments: Sequence[dict] = (
{
"compose_files": ("compose.yml", "edge-uuid.yml", "index.yml"),
"env": {"UUID_EDGES": "UUID_EDGES"},
},
{
"compose_files": ("compose.yml", "edge-uuid.yml", "index.yml"),
"env": {"UUID_EDGES": "UUID_EDGES", "LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 1},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 1, "LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 10},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 10, "LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 100},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 100, "LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 1000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"BATCH_SIZE": 1000, "LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id-no-index.yml", "index.yml"),
"env": {"LINES_PER_SECOND": 1500},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index.yml"),
"env": {"LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index-hash.yml"),
"env": {},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index-hash.yml"),
"env": {"LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index-multi.yml"),
"env": {},
},
{
"compose_files": ("compose.yml", "edge-id.yml", "index-multi.yml"),
"env": {"LINES_PER_SECOND": 20000},
},
{
"compose_files": ("compose.yml", "edge-id-triggers.yml", "index.yml"),
"env": {"EDGE_INSERTS": ""},
},
{
"compose_files": ("compose.yml", "edge-id-triggers.yml", "index.yml"),
"env": {"EDGE_INSERTS": "", "LINES_PER_SECOND": 20000},
},
)
for experiment in experiments:
run_experiment(**experiment)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment