makeSummaryCsvLine('4c', 'CM-handle search with Property filter', 'milliseconds', 'cm_search_property_duration', 4500, testResults, scenarioConfig),
makeSummaryCsvLine('4d', 'CM-handle search with Cps Path filter', 'milliseconds', 'cm_search_cpspath_duration', 4500, testResults, scenarioConfig),
makeSummaryCsvLine('4e', 'CM-handle search with Trust Level filter', 'milliseconds', 'cm_search_trustlevel_duration', 7000, testResults, scenarioConfig),
- makeSummaryCsvLine('5a', 'NCMP overhead for Synchronous single CM-handle pass-through read', 'milliseconds', 'ncmp_overhead_passthrough_read', 20, testResults, scenarioConfig),
makeSummaryCsvLine('5b', 'NCMP overhead for Synchronous single CM-handle pass-through read with alternate id', 'milliseconds', 'ncmp_overhead_passthrough_read_alt_id', 40, testResults, scenarioConfig),
- makeSummaryCsvLine('6a', 'NCMP overhead for Synchronous single CM-handle pass-through write', 'milliseconds', 'ncmp_overhead_passthrough_write', 20, testResults, scenarioConfig),
makeSummaryCsvLine('6b', 'NCMP overhead for Synchronous single CM-handle pass-through write with alternate id', 'milliseconds', 'ncmp_overhead_passthrough_write_alt_id', 40, testResults, scenarioConfig),
makeSummaryCsvLine('7', 'Legacy batch read operation', 'events/second', 'legacy_batch_read_cmhandles_per_second', 300, testResults, scenarioConfig),
];
"containerUpTimeInSeconds": 420
},
"scenarios": {
- "passthrough_read_scenario": {
- "executor": "constant-vus",
- "exec": "passthroughReadScenario",
- "vus": 2,
- "duration": "2h"
- },
"passthrough_read_alt_id_scenario": {
"executor": "constant-vus",
"exec": "passthroughReadAltIdScenario",
- "vus": 2,
- "duration": "2h"
- },
- "passthrough_write_scenario": {
- "executor": "constant-vus",
- "exec": "passthroughWriteScenario",
- "vus": 2,
+ "vus": 4,
"duration": "2h"
},
"passthrough_write_alt_id_scenario": {
"executor": "constant-vus",
"exec": "passthroughWriteAltIdScenario",
- "vus": 2,
+ "vus": 4,
"duration": "2h"
},
"cm_handle_id_search_nofilter_scenario": {
"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,
+ "rate": 25,
"timeUnit": "1s",
"duration": "15m",
- "preAllocatedVUs": 5,
+ "preAllocatedVUs": 10,
"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,
+ "rate": 13,
"timeUnit": "1s",
"duration": "15m",
- "preAllocatedVUs": 5,
+ "preAllocatedVUs": 10,
"startTime": "600ms"
},
-
"cm_handle_id_search_nofilter_scenario": {
"executor": "constant-arrival-rate",
"exec": "cmHandleIdSearchNoFilterScenario",
"preAllocatedVUs": 1,
"startTime": "1600ms"
},
-
"cm_handle_search_nofilter_scenario": {
"executor": "constant-arrival-rate",
"exec": "cmHandleSearchNoFilterScenario",
"preAllocatedVUs": 1,
"startTime": "12s"
},
-
"legacy_batch_produce_scenario": {
"executor": "shared-iterations",
"exec": "legacyBatchProduceScenario",
"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"],
let cmHandlesCreatedPerSecondTrend = new Trend('cmhandles_created_per_second', false);
let cmHandlesDeletedPerSecondTrend = new Trend('cmhandles_deleted_per_second', false);
-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 passthroughWriteNcmpOverheadTrendWithAlternateId = new Trend('ncmp_overhead_passthrough_write_alt_id', true);
let idSearchNoFilterDurationTrend = new Trend('id_search_nofilter_duration', true);
let idSearchModuleDurationTrend = new Trend('id_search_module_duration', true);
sleep(CONTAINER_UP_TIME_IN_SECONDS);
}
-export function passthroughReadScenario() {
- const response = passthroughRead(false);
- if (check(response, { 'passthrough read status equals 200': (r) => r.status === 200 })) {
- const overhead = response.timings.duration - READ_DATA_FOR_CM_HANDLE_DELAY_MS;
- passthroughReadNcmpOverheadTrend.add(overhead);
- }
-}
-
export function passthroughReadAltIdScenario() {
const response = passthroughRead(true);
if (check(response, { 'passthrough read with alternate Id status equals 200': (r) => r.status === 200 })) {
}
}
-export function passthroughWriteScenario() {
- const response = passthroughWrite(false);
- if (check(response, { 'passthrough write status equals 201': (r) => r.status === 201 })) {
- const overhead = response.timings.duration - WRITE_DATA_FOR_CM_HANDLE_DELAY_MS;
- passthroughWriteNcmpOverheadTrend.add(overhead);
- }
-}
-
export function passthroughWriteAltIdScenario() {
const response = passthroughWrite(true);
if (check(response, { 'passthrough write with alternate Id status equals 201': (r) => r.status === 201 })) {