Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma_code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven-Ove Hänsel
ma_code
Commits
ebda5f5a
Commit
ebda5f5a
authored
8 months ago
by
julian
Browse files
Options
Downloads
Patches
Plain Diff
added some helpful info to experiment output, moved insertion config to compose files
parent
65750c8d
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
edge-id-no-index.yml
+5
-0
5 additions, 0 deletions
edge-id-no-index.yml
edge-id-triggers.yml
+5
-0
5 additions, 0 deletions
edge-id-triggers.yml
edge-id.yml
+5
-0
5 additions, 0 deletions
edge-id.yml
edge-uuid.yml
+5
-0
5 additions, 0 deletions
edge-uuid.yml
start_tests.py
+25
-123
25 additions, 123 deletions
start_tests.py
with
45 additions
and
123 deletions
edge-id-no-index.yml
+
5
−
0
View file @
ebda5f5a
...
@@ -2,3 +2,8 @@ services:
...
@@ -2,3 +2,8 @@ services:
postgres
:
postgres
:
volumes
:
volumes
:
-
./postgres/initdb/02-initdb_edge_id_no_uuid_index.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
-
./postgres/initdb/02-initdb_edge_id_no_uuid_index.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
sub_pg
:
environment
:
-
EDGE_INSERTS=EDGE_INSERTS
-
UUID_EDGES=
This diff is collapsed.
Click to expand it.
edge-id-triggers.yml
+
5
−
0
View file @
ebda5f5a
...
@@ -3,3 +3,8 @@ services:
...
@@ -3,3 +3,8 @@ services:
volumes
:
volumes
:
-
./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
-
./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
-
./postgres/initdb/03-initdb_trigger_edge_id.sql:/docker-entrypoint-initdb.d/03-initdb.sql:ro
-
./postgres/initdb/03-initdb_trigger_edge_id.sql:/docker-entrypoint-initdb.d/03-initdb.sql:ro
sub_pg
:
environment
:
-
EDGE_INSERTS=
-
UUID_EDGES=
This diff is collapsed.
Click to expand it.
edge-id.yml
+
5
−
0
View file @
ebda5f5a
...
@@ -2,3 +2,8 @@ services:
...
@@ -2,3 +2,8 @@ services:
postgres
:
postgres
:
volumes
:
volumes
:
-
./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
-
./postgres/initdb/02-initdb_edge_id.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
sub_pg
:
environment
:
-
EDGE_INSERTS=EDGE_INSERTS
-
UUID_EDGES=
This diff is collapsed.
Click to expand it.
edge-uuid.yml
+
5
−
0
View file @
ebda5f5a
...
@@ -2,3 +2,8 @@ services:
...
@@ -2,3 +2,8 @@ services:
postgres
:
postgres
:
volumes
:
volumes
:
-
./postgres/initdb/02-initdb_edge_uuid.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
-
./postgres/initdb/02-initdb_edge_uuid.sql:/docker-entrypoint-initdb.d/02-initdb.sql:ro
sub_pg
:
environment
:
-
EDGE_INSERTS=EDGE_INSERTS
-
UUID_EDGES=UUID_EDGES
This diff is collapsed.
Click to expand it.
start_tests.py
+
25
−
123
View file @
ebda5f5a
from
logging
import
INFO
,
basicConfig
,
info
from
os
import
environ
,
makedirs
,
path
from
os
import
environ
,
makedirs
,
path
from
subprocess
import
run
from
subprocess
import
run
from
typing
import
Sequence
from
typing
import
Sequence
...
@@ -11,18 +12,19 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
...
@@ -11,18 +12,19 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
f
=
[
"
-f
"
]
*
len
(
compose_files
)
f
=
[
"
-f
"
]
*
len
(
compose_files
)
interleaved
=
(
val
for
pair
in
zip
(
f
,
compose_files
)
for
val
in
pair
)
interleaved
=
(
val
for
pair
in
zip
(
f
,
compose_files
)
for
val
in
pair
)
print
(
"
Start compose environment
...
"
)
info
(
f
"
Start
ing
compose environment
for
{
name
}
"
)
run
((
"
docker
"
,
"
compose
"
,
*
interleaved
,
"
up
"
,
"
-d
"
,
"
--build
"
))
run
((
"
docker
"
,
"
compose
"
,
*
interleaved
,
"
up
"
,
"
-d
"
,
"
--build
"
))
print
(
"
waiting for
data run
to finish
"
)
info
(
f
"
waiting for
{
name
}
to finish
"
)
run
((
"
docker
"
,
"
compose
"
,
"
wait
"
,
"
query_pg
"
))
run
((
"
docker
"
,
"
compose
"
,
"
wait
"
,
"
query_pg
"
))
print
(
"
data run
finished, saving result
"
)
info
(
f
"
{
name
}
finished, saving result
"
)
run
((
"
docker
"
,
"
compose
"
,
"
cp
"
,
"
query_pg:/app/log/data.csv
"
,
f
"
result/
{
name
}
.csv
"
))
run
((
"
docker
"
,
"
compose
"
,
"
cp
"
,
"
query_pg:/app/log/data.csv
"
,
f
"
result/
{
name
}
.csv
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
run
((
"
docker
"
,
"
compose
"
,
"
down
"
))
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
basicConfig
(
level
=
INFO
,
format
=
"
%(asctime)s - %(levelname)s - %(message)s
"
)
result_dir
=
"
result
"
result_dir
=
"
result
"
if
not
path
.
exists
(
result_dir
):
if
not
path
.
exists
(
result_dir
):
makedirs
(
result_dir
)
makedirs
(
result_dir
)
...
@@ -30,202 +32,102 @@ if __name__ == "__main__":
...
@@ -30,202 +32,102 @@ if __name__ == "__main__":
{
{
"
name
"
:
"
experiment_batch1_10000
"
,
"
name
"
:
"
experiment_batch1_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
1
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
1
,
},
},
},
{
{
"
name
"
:
"
experiment_batch10_10000
"
,
"
name
"
:
"
experiment_batch10_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10
,
},
},
},
{
{
"
name
"
:
"
experiment_batch10_20000
"
,
"
name
"
:
"
experiment_batch10_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
10
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
10
,
},
},
},
{
{
"
name
"
:
"
experiment_batch100_10000
"
,
"
name
"
:
"
experiment_batch100_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
100
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
100
,
},
},
},
{
{
"
name
"
:
"
experiment_batch100_20000
"
,
"
name
"
:
"
experiment_batch100_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
100
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
100
,
},
},
},
{
{
"
name
"
:
"
experiment_batch1000_10000
"
,
"
name
"
:
"
experiment_batch1000_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
1000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
1000
,
},
},
},
{
{
"
name
"
:
"
experiment_batch1000_20000
"
,
"
name
"
:
"
experiment_batch1000_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
1000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
1000
,
},
},
},
{
{
"
name
"
:
"
experiment_no_uuid_index
"
,
"
name
"
:
"
experiment_no_uuid_index
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-no-index.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-no-index.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
1500
,
"
BATCH_SIZE
"
:
1500
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
1500
,
"
BATCH_SIZE
"
:
1500
,
},
},
},
{
{
"
name
"
:
"
experiment_default_10000
"
,
"
name
"
:
"
experiment_default_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_default_20000
"
,
"
name
"
:
"
experiment_default_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_default_30000
"
,
"
name
"
:
"
experiment_default_30000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
30000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
30000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_hash_index_15000
"
,
"
name
"
:
"
experiment_hash_index_15000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-hash.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-hash.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
15000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
15000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_hash_index_25000
"
,
"
name
"
:
"
experiment_hash_index_25000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-hash.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-hash.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
25000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
25000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_multicolumn_index_15000
"
,
"
name
"
:
"
experiment_multicolumn_index_15000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-multi.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-multi.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
15000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
15000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_multicolumn_index_25000
"
,
"
name
"
:
"
experiment_multicolumn_index_25000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-multi.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id.yml
"
,
"
index-multi.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
25000
,
"
BATCH_SIZE
"
:
5000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
25000
,
"
BATCH_SIZE
"
:
5000
,
},
},
},
{
{
"
name
"
:
"
experiment_triggers_10000
"
,
"
name
"
:
"
experiment_triggers_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10000
},
"
EDGE_INSERTS
"
:
""
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10000
,
},
},
},
{
{
"
name
"
:
"
experiment_triggers_20000
"
,
"
name
"
:
"
experiment_triggers_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
20000
},
"
EDGE_INSERTS
"
:
""
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
20000
,
},
},
},
{
{
"
name
"
:
"
experiment_triggers_30000
"
,
"
name
"
:
"
experiment_triggers_30000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-id-triggers.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
30000
,
"
BATCH_SIZE
"
:
30000
},
"
EDGE_INSERTS
"
:
""
,
"
UUID_EDGES
"
:
""
,
"
LINES_PER_SECOND
"
:
30000
,
"
BATCH_SIZE
"
:
30000
,
},
},
},
{
{
"
name
"
:
"
experiment_uuid_10000
"
,
"
name
"
:
"
experiment_uuid_10000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-uuid.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-uuid.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
"
UUID_EDGES
"
,
"
LINES_PER_SECOND
"
:
10000
,
"
BATCH_SIZE
"
:
10000
,
},
},
},
{
{
"
name
"
:
"
experiment_uuid_20000
"
,
"
name
"
:
"
experiment_uuid_20000
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-uuid.yml
"
,
"
index.yml
"
),
"
compose_files
"
:
(
"
compose.yml
"
,
"
edge-uuid.yml
"
,
"
index.yml
"
),
"
env
"
:
{
"
env
"
:
{
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
20000
},
"
EDGE_INSERTS
"
:
"
EDGE_INSERTS
"
,
"
UUID_EDGES
"
:
"
UUID_EDGES
"
,
"
LINES_PER_SECOND
"
:
20000
,
"
BATCH_SIZE
"
:
20000
,
},
},
},
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment