diff --git a/driver-http/src/main/resources/activities/documents-api/http-docsapi-keyvalue.yaml b/driver-http/src/main/resources/activities/documents-api/http-docsapi-keyvalue.yaml index 91aa31311..d0e3a546b 100644 --- a/driver-http/src/main/resources/activities/documents-api/http-docsapi-keyvalue.yaml +++ b/driver-http/src/main/resources/activities/documents-api/http-docsapi-keyvalue.yaml @@ -1,4 +1,4 @@ -# nb -v run driver=http yaml=http-docsapi-keyvalue tags=phase:schema host=my_stargate_host stargate_host=my_stargate_host auth_token=$AUTH_TOKEN +# nb -v run driver=http yaml=http-docsapi-keyvalue tags=phase:schema stargate_host=my_stargate_host auth_token=$AUTH_TOKEN description: | This workload emulates a key-value data model and access patterns. @@ -10,9 +10,9 @@ description: | scenarios: default: - - run driver=http 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 + schema: run driver=http tags==phase:schema threads==1 cycles==UNDEF + rampup: run driver=http tags==phase:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto + main: run driver=http tags==phase:main cycles===TEMPLATE(main-cycles,10000000) threads=auto bindings: # To enable an optional weighted set of hosts in place of a load balancer # Examples @@ -23,10 +23,10 @@ bindings: # http request id request_id: ToHashedUUID(); ToString(); - seq_key: Mod(<>); ToString() -> String - seq_value: Hash(); Mod(<>); ToString() -> String - rw_key: <int>>; ToString() -> String - rw_value: Hash(); <int>>; ToString() -> String + seq_key: Mod(<>); ToString() -> String + seq_value: Hash(); Mod(<>); ToString() -> String + rw_key: <>)->int>>; ToString() -> String + rw_value: Hash(); <>)->int>>; ToString() -> String blocks: - tags: @@ -44,6 +44,13 @@ blocks: } tags: name: create-keyspace + - delete-docs-collection : DELETE <>://{weighted_hosts}:<><>/v2/namespaces/<>/collections/<> + Accept: "application/json" + X-Cassandra-Request-Id: "{request_id}" + X-Cassandra-Token: "<>" + tags: + name: delete-table + ok-status: "[2-4][0-9][0-9]" - create-docs-collection : POST <>://{weighted_hosts}:<><>/v2/namespaces/<>/collections Accept: "application/json" X-Cassandra-Request-Id: "{request_id}" @@ -77,7 +84,7 @@ blocks: phase: main type: read params: - ratio: <> + ratio: <> statements: - main-select: GET <>://{weighted_hosts}:<><>/v2/namespaces/<>/collections/<>/{rw_key} Accept: "application/json" @@ -85,13 +92,14 @@ blocks: X-Cassandra-Token: "<>" tags: name: main-select + ok-status: "[2-4][0-9][0-9]" - name: main-write tags: phase: main type: write params: - ratio: <> + ratio: <> statements: - main-write: PUT <>://{weighted_hosts}:<><>/v2/namespaces/<>/collections/<>/{rw_key} Accept: "application/json"