mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
rehome graph-wheels under cqld4
This commit is contained in:
parent
7d31c6a6a0
commit
7d92c37c55
@ -0,0 +1,121 @@
|
||||
description: creates local graphs which resemble a wagon-wheel topology, using
|
||||
DSE Graph, version 6.8 or newer
|
||||
|
||||
scenarios:
|
||||
drop-graph: run driver=cqld4 graphname=graph_wheels tags=block:drop-graph cycles===UNDEF
|
||||
creategraph: run driver=cqld4 graphname=graph_wheels tags=phase:create-graph cycles===UNDEF
|
||||
creategraph-classic: run driver=cqld4 graphname=graph_wheels tags=block:create-graph-classic cycles===UNDEF
|
||||
schema: run driver=cqld4 graphname=graph_wheels tags=phase:graph-schema cycles===UNDEF
|
||||
disable-verify: run driver=cqld4 graphname=graph_wheels tags=phase:disable-verify cycles===UNDEF
|
||||
rampup: run driver==cqld4 graphname=graph_wheels tags=phase:rampup cycles=1000
|
||||
default:
|
||||
creategraph: run driver=cqld4 graphname=graph_wheels tags=phase:create-graph cycles===UNDEF
|
||||
schema: run driver=cqld4 graphname=graph_wheels tags=phase:graph-schema cycles===UNDEF
|
||||
rampup: run driver==cqld4 graphname=graph_wheels tags=phase:rampup cycles=1
|
||||
devmode: run driver=cqld4 graphname=graph_wheels tags=name:dev-mode
|
||||
prodmode: run driver=cqld4 graphname=graph_wheels tags=name:dev-mode
|
||||
|
||||
bindings:
|
||||
sessionid: ToEpochTimeUUID()->java.util.UUID; ToString();
|
||||
deviceid: Add(200000); Div(<<sessons_per_device:10>>); ToEpochTimeUUID()->java.util.UUID; ToString();
|
||||
type: WeightedStrings('phone:10;computer:10;')
|
||||
os: WeightedStrings('android:6;ios:4;linux:2;osx:7;windows:3')
|
||||
osversion: WeightedStrings('nougat:3;oreo:1;jellybean:2;4:1;4c:1;5:1;5c:1;trusty:1;xenial:1;yosemite:1;el capitan:2;sierra:3;high sierra:1;7:1;10:2')
|
||||
ipaddress: Combinations('1;7;0-3;.;0-2;0-2;0-5;.;0-2;0-2;0-5')
|
||||
createdtime: Add(1505256898)
|
||||
diag_ten_pct: WeightedLongs('1:1;0:9')
|
||||
diag_one_pct: WeightedLongs('1:1;0:99')
|
||||
|
||||
blocks:
|
||||
drop-graph:
|
||||
statements:
|
||||
drop-graph:
|
||||
type: gremlin
|
||||
script: "system.graph('<<graphname:graph_wheels>>').ifExists().drop();"
|
||||
create-graph-classic:
|
||||
statements:
|
||||
creategraph:
|
||||
type: gremlin
|
||||
script: >-
|
||||
system.graph('<<graphname:graph_wheels>>')
|
||||
.classicEngine()
|
||||
.create()
|
||||
create-graph:
|
||||
tags:
|
||||
phase: create-graph
|
||||
statements:
|
||||
creategraph:
|
||||
type: gremlin
|
||||
script: >-
|
||||
system.graph('<<graphname:graph_wheels>>').ifNotExists().create()
|
||||
create-schema:
|
||||
tags:
|
||||
phase: graph-schema
|
||||
statements:
|
||||
graph-schema:
|
||||
type: gremlin
|
||||
graphname: <<graphname:graph_wheels>>
|
||||
script: >-
|
||||
schema.vertexLabel('session')
|
||||
.ifNotExists()
|
||||
.partitionBy('sessionid', Uuid)
|
||||
.property('ipaddress', Text)
|
||||
.property('deviceid', Uuid)
|
||||
.property('createdtime', Bigint)
|
||||
.create();
|
||||
|
||||
schema.vertexLabel('device')
|
||||
.ifNotExists()
|
||||
.partitionBy('deviceid', Uuid)
|
||||
.property('type', Text)
|
||||
.property('os', Text)
|
||||
.property('osversion', Text)
|
||||
.create();
|
||||
|
||||
schema.edgeLabel('using')
|
||||
.ifNotExists()
|
||||
.from('session')
|
||||
.to('device')
|
||||
.create()
|
||||
dev-mode:
|
||||
tags:
|
||||
phase: dev-mode
|
||||
statements:
|
||||
dev-mode:
|
||||
type: gremlin
|
||||
graphname: <<graphname:graph_wheels>>
|
||||
script: >-
|
||||
schema.config().option('graph.schema_mode').set('Development');
|
||||
prod-mode:
|
||||
tags:
|
||||
phase: prod-mode
|
||||
statements:
|
||||
prod-mode:
|
||||
type: gremlin
|
||||
graphname: <<graphname:graph_wheels>>
|
||||
script: >-
|
||||
schema.config().option('graph.schema_mode').set('Production');
|
||||
rampup:
|
||||
tags:
|
||||
phase: rampup
|
||||
statements:
|
||||
main-add:
|
||||
type: gremlin
|
||||
diag: "{diag_one_pct}"
|
||||
graphname: <<graphname:graph_wheels>>
|
||||
script: >-
|
||||
device = g.addV('device')
|
||||
.property('deviceid', '{deviceid}' as UUID)
|
||||
.property('type', '{type}')
|
||||
.property('os', '{os}')
|
||||
.property('osversion', '{osversion}')
|
||||
.as('d')
|
||||
.addV('session')
|
||||
.property('sessionid', '{sessionid}' as UUID)
|
||||
.property('ipaddress', '{ipaddress}')
|
||||
.property('deviceid', '{deviceid}' as UUID)
|
||||
.property('createdtime', {createdtime})
|
||||
.as('s')
|
||||
.addE('using').from('s').to('d');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user