diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-08-16 11:09:25 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-08-16 11:26:31 +0100 |
commit | a1cdf7391a5d59cf5e9bcba1b4ac8abd585adbf7 (patch) | |
tree | a6238dd6ee91610c8357f2175ee3932130057141 /k6-tests/ncmp/ncmp-kpi.js | |
parent | 4dfd43bab5ab8988796421567b3045fd96bd483b (diff) |
[k6] Remove incorrect passthrough rates
Reported rates for passthrough operations is incorrectly reported,
due to it being averaged over whole test time including setup and
teardown. It was agreed to simply not report rates, and only report
NCMP overhead.
- remove http request rates for passthrough operations
- change VUs from passthrough read so that there are 10 total
Issue-ID: CPS-2264
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ida498955e69dffb332d6efeb8a8d73343565f9a1
Diffstat (limited to 'k6-tests/ncmp/ncmp-kpi.js')
-rw-r--r-- | k6-tests/ncmp/ncmp-kpi.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/k6-tests/ncmp/ncmp-kpi.js b/k6-tests/ncmp/ncmp-kpi.js index d7e4405393..f4a44dba68 100644 --- a/k6-tests/ncmp/ncmp-kpi.js +++ b/k6-tests/ncmp/ncmp-kpi.js @@ -20,6 +20,7 @@ import { check } from 'k6'; import { Gauge, Trend } from 'k6/metrics'; +import { Reader } from 'k6/x/kafka'; import { TOTAL_CM_HANDLES, READ_DATA_FOR_CM_HANDLE_DELAY_MS, WRITE_DATA_FOR_CM_HANDLE_DELAY_MS, makeCustomSummaryReport, recordTimeInSeconds, makeBatchOfCmHandleIds, DATA_OPERATION_READ_BATCH_SIZE, @@ -28,15 +29,12 @@ import { import { registerAllCmHandles, deregisterAllCmHandles } from './common/cmhandle-crud.js'; import { executeCmHandleSearch, executeCmHandleIdSearch } from './common/search-base.js'; import { passthroughRead, passthroughReadWithAltId, passthroughWrite, batchRead } from './common/passthrough-crud.js'; -import { - Reader, -} from 'k6/x/kafka'; let cmHandlesCreatedPerSecondGauge = new Gauge('cmhandles_created_per_second'); let cmHandlesDeletedPerSecondGauge = new Gauge('cmhandles_deleted_per_second'); -let passthroughReadNcmpOverheadTrend = new Trend('ncmp_overhead_passthrough_read'); -let passthroughReadNcmpOverheadTrendWithAlternateId = new Trend('ncmp_overhead_passthrough_read_alt_id'); -let passthroughWriteNcmpOverheadTrend = new Trend('ncmp_overhead_passthrough_write'); +let passthroughReadNcmpOverheadTrend = new Trend('ncmp_overhead_passthrough_read', true); +let passthroughReadNcmpOverheadTrendWithAlternateId = new Trend('ncmp_overhead_passthrough_read_alt_id', true); +let passthroughWriteNcmpOverheadTrend = new Trend('ncmp_overhead_passthrough_write', true); let dataOperationsBatchReadCmHandlePerSecondTrend = new Trend('data_operations_batch_read_cmhandles_per_second'); const reader = new Reader({ @@ -53,7 +51,7 @@ export const options = { passthrough_read: { executor: 'constant-vus', exec: 'passthrough_read', - vus: 10, + vus: 9, duration: DURATION, }, passthrough_read_alt_id: { @@ -100,8 +98,6 @@ export const options = { thresholds: { 'cmhandles_created_per_second': ['value >= 22'], 'cmhandles_deleted_per_second': ['value >= 22'], - 'http_reqs{scenario:passthrough_write}': ['rate >= 13'], - 'http_reqs{scenario:passthrough_read}': ['rate >= 25'], 'ncmp_overhead_passthrough_read': ['avg <= 100'], 'ncmp_overhead_passthrough_read_alt_id': ['avg <= 100'], 'ncmp_overhead_passthrough_write': ['avg <= 100'], |