diff --git a/driver-http/src/main/resources/activities/baselines/http-keyvalue.yaml b/driver-http/src/main/resources/activities/baselines/http-keyvalue.yaml index 41daf905f..0e75488a6 100644 --- a/driver-http/src/main/resources/activities/baselines/http-keyvalue.yaml +++ b/driver-http/src/main/resources/activities/baselines/http-keyvalue.yaml @@ -1,4 +1,4 @@ -# nb -v run driver=http yaml=http-keyvalue tags=phase:schema stargate_host=my_stargate_host auth_token=$AUTH_TOKEN +# nb -v run driver=http yaml=http-keyvalue tags=phase:schema stargate_host=my_stargate_host host=my_stargate_host auth_token=$AUTH_TOKEN description: | This workload emulates a key-value data model and access patterns. This should be identical to the cql variant except for: @@ -7,7 +7,7 @@ description: | scenarios: default: - - run driver=http tags==phase:schema threads==1 cycles==UNDEF + - run driver=cql tags==phase:schema threads==1 cycles==UNDEF - run driver=http tags==phase:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto - run driver=http tags==phase:main cycles===TEMPLATE(main-cycles,10000000) threads=auto bindings: @@ -23,42 +23,21 @@ blocks: - name: schema tags: phase: schema + params: + prepared: false statements: - - create-keyspace: POST http://<>:<>/v2/schemas/keyspaces - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - body: | - { - "name": "<>" - } + - create-keyspace: | + create keyspace if not exists <> + WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '<>'} + AND durable_writes = true; tags: name: create-keyspace - - create-table: POST http://<>:<>/v2/schemas/keyspaces/<>/tables - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - body: | - { - "name": "<>", - "columnDefinitions": - [ - { - "name": "key", - "typeDefinition": "text" - }, - { - "name": "value", - "typeDefinition": "text" - } - ], - "primaryKey": - { - "partitionKey": ["key"] - } - } + - create-table: | + create table if not exists <>.<> ( + key text, + value text, + PRIMARY KEY (key) + ); tags: name: create-table - name: rampup diff --git a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml index bbec96bd6..6e8d8dda4 100644 --- a/driver-http/src/main/resources/activities/baselines/http-tabular.yaml +++ b/driver-http/src/main/resources/activities/baselines/http-tabular.yaml @@ -1,4 +1,4 @@ -# nb -v http-tabular rampup-cycles=1E6 main-cycles=1E9 stargate_host=my_stargate_host auth_token=$AUTH_TOKEN +# nb -v http-tabular rampup-cycles=1E6 main-cycles=1E9 stargate_host=my_stargate_host host=my_stargate_host auth_token=$AUTH_TOKEN description: | This workload emulates a time-series data model and access patterns. This should be identical to the cql variant except for: @@ -8,7 +8,7 @@ description: | scenarios: default: - - run driver=http tags==phase:schema threads==1 cycles==UNDEF + - run driver=cql tags==phase:schema threads==1 cycles==UNDEF - run driver=http tags==phase:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto - run driver=http tags==phase:main cycles===TEMPLATE(main-cycles,10000000) threads=auto bindings: @@ -31,47 +31,22 @@ blocks: - name: schema tags: phase: schema + params: + prepared: false statements: - - create-keyspace: POST http://<>:<>/v2/schemas/keyspaces - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - body: | - { - "name": "<>" - } + - create-keyspace: | + create keyspace if not exists <> + WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '<>'} + AND durable_writes = true; tags: name: create-keyspace - - create-table: POST http://<>:<>/v2/schemas/keyspaces/<>/tables - Accept: "application/json" - X-Cassandra-Request-Id: "{request_id}" - X-Cassandra-Token: "<>" - Content-Type: "application/json" - body: | - { - "name": "<>", - "columnDefinitions": - [ - { - "name": "part", - "typeDefinition": "text" - }, - { - "name": "clust", - "typeDefinition": "text" - }, - { - "name": "data", - "typeDefinition": "text" - } - ], - "primaryKey": - { - "partitionKey": ["part"], - "clusteringKey": ["clust"] - } - } + - create-table: | + create table if not exists <>.<> ( + part text, + clust text, + data text, + PRIMARY KEY (part,clust) + ); tags: name: create-table - name: rampup