name: "tsbs-scale100-high-cpu-1@1816rps"

metadata:
  labels:
    test_type: query
    includes_targets: "true"

description: '
  use case: tsbs devops scale 100 use-case
  query: high-cpu-1
  tsbs query detail: All the readings where one metric is above a threshold for a particular host
  sample query:
    1st get the series names that pass the condition:
      "TS.MRANGE" "1451729628728" "1451772828728" "FILTER_BY_VALUE" "90.0" "1000" "FILTER" "fieldname=usage_user" "measurement=cpu" "hostname=host_1" "GROUPBY" "fieldname" "REDUCE" "max"
    then pass the given hostnames and timestamps to a second query:
      "TS.MRANGE" "1451656883002" "1451700083002" "FILTER_BY_TS" "1451665600000" "1451665620000" "1451665630000" "1451665640000" (...)
  '



setups:
  - oss-cluster-15-primaries
  - oss-cluster-30-primaries

dbconfig:
  - dataset_name: "data_redistimeseries_cpu-only_100"
  - tool: tsbs_load_redistimeseries
  - parameters:
    - file: "https://s3.amazonaws.com/benchmarks.redislabs/redistimeseries/tsbs/datasets/devops/scale100/data_redistimeseries_cpu-only_100.dat"
  - check:
      keyspacelen: 1000
  - module-configuration-parameters:
      redistimeseries:
        CHUNK_SIZE_BYTES: 128

clientconfig:
  - benchmark_type: "read-only"
  - tool: tsbs_run_queries_redistimeseries
  - parameters:
    - workers: 32
    - max-rps: 1816
    - print-interval: 2500
    - file: "https://s3.amazonaws.com/benchmarks.redislabs/redistimeseries/tsbs/queries/devops/scale100/devops-scale100-4days/queries_cpu-only_redistimeseries_100_high-cpu-1_100000.dat"

exporter:
  redistimeseries:
    metrics:
      - "$.Totals.overallQuantiles.all_queries.q50":
          "target-1": 14.07
          "target-2": 7.54
      - "$.Totals.overallQueryRates.all_queries":
          "target-1": 1816
          "target-2": 1816
