{
  "hosts": {
    "ncmpBaseUrl": "http://localhost:8883",
    "dmiStubUrl": "http://ncmp-dmi-plugin-demo-and-csit-stub:8092",
    "kafkaBootstrapServer": "localhost:9092",
    "containerUpTimeInSeconds": 300
  },
  "scenarios": {
    "passthrough_read_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "passthroughReadScenario",
      "rate": 5,
      "timeUnit": "1s",
      "duration": "15m",
      "preAllocatedVUs": 5,
      "startTime": "0ms"
    },
    "passthrough_read_alt_id_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "passthroughReadAltIdScenario",
      "rate": 5,
      "timeUnit": "1s",
      "duration": "15m",
      "preAllocatedVUs": 5,
      "startTime": "200ms"
    },

    "passthrough_write_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "passthroughWriteScenario",
      "rate": 5,
      "timeUnit": "1s",
      "duration": "15m",
      "preAllocatedVUs": 5,
      "startTime": "400ms"
    },
    "passthrough_write_alt_id_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "passthroughWriteAltIdScenario",
      "rate": 5,
      "timeUnit": "1s",
      "duration": "15m",
      "preAllocatedVUs": 5,
      "startTime": "600ms"
    },

    "cm_handle_id_search_nofilter_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleIdSearchNoFilterScenario",
      "rate": 1,
      "timeUnit": "2s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "0ms"
    },
    "cm_handle_id_search_module_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleIdSearchModuleScenario",
      "rate": 1,
      "timeUnit": "2s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "400ms"
    },
    "cm_handle_id_search_property_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleIdSearchPropertyScenario",
      "rate": 1,
      "timeUnit": "2s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "800ms"
    },
    "cm_handle_id_search_cpspath_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleIdSearchCpsPathScenario",
      "rate": 1,
      "timeUnit": "2s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "1200ms"
    },
    "cm_handle_id_search_trustlevel_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleIdSearchTrustLevelScenario",
      "rate": 1,
      "timeUnit": "2s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "1600ms"
    },

    "cm_handle_search_nofilter_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleSearchNoFilterScenario",
      "rate": 1,
      "timeUnit": "15s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "0s"
    },
    "cm_handle_search_module_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleSearchModuleScenario",
      "rate": 1,
      "timeUnit": "15s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "3s"
    },
    "cm_handle_search_property_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleSearchPropertyScenario",
      "rate": 1,
      "timeUnit": "15s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "6s"
    },
    "cm_handle_search_cpspath_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleSearchCpsPathScenario",
      "rate": 1,
      "timeUnit": "15s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "9s"
    },
    "cm_handle_search_trustlevel_scenario": {
      "executor": "constant-arrival-rate",
      "exec": "cmHandleSearchTrustLevelScenario",
      "rate": 1,
      "timeUnit": "15s",
      "duration": "15m",
      "preAllocatedVUs": 1,
      "startTime": "12s"
    },

    "legacy_batch_produce_scenario": {
      "executor": "shared-iterations",
      "exec": "legacyBatchProduceScenario",
      "vus": 2,
      "iterations": 100
    },
    "legacy_batch_consume_scenario": {
      "executor": "per-vu-iterations",
      "exec": "legacyBatchConsumeScenario",
      "vus": 1,
      "iterations": 1
    }
  },
  "thresholds": {
    "http_req_failed": ["rate == 0"],
    "cmhandles_created_per_second": ["avg >= 22"],
    "cmhandles_deleted_per_second": ["avg >= 22"],
    "ncmp_overhead_passthrough_read": ["avg <= 40"],
    "ncmp_overhead_passthrough_write": ["avg <= 40"],
    "ncmp_overhead_passthrough_read_alt_id": ["avg <= 40"],
    "ncmp_overhead_passthrough_write_alt_id": ["avg <= 40"],
    "id_search_nofilter_duration": ["avg <= 2000"],
    "id_search_module_duration": ["avg <= 2000"],
    "id_search_property_duration": ["avg <= 2000"],
    "id_search_cpspath_duration": ["avg <= 2000"],
    "id_search_trustlevel_duration": ["avg <= 2000"],
    "cm_search_nofilter_duration": ["avg <= 15000"],
    "cm_search_module_duration": ["avg <= 15000"],
    "cm_search_property_duration": ["avg <= 15000"],
    "cm_search_cpspath_duration": ["avg <= 15000"],
    "cm_search_trustlevel_duration": ["avg <= 15000"],
    "legacy_batch_read_cmhandles_per_second": ["avg >= 150"]
  }
}