export const WRITE_DATA_FOR_CM_HANDLE_DELAY_MS = 670; // must have same value as in docker-compose.yml
export const CONTENT_TYPE_JSON_PARAM = {'Content-Type': 'application/json'};
export const LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE = 200;
-export const LEGACY_BATCH_THROUGHPUT_TEST_NUMBER_OF_REQUESTS = 100;
export const MODULE_SET_TAGS = ['tagA', 'tagB', 'tagC', 'tagD', 'tagE'];
/**
makeSummaryCsvLine('4e', 'CM-handle search with Trust Level filter', 'milliseconds', 'cm_search_trustlevel_duration', 18000, testResults, scenarioConfig),
makeSummaryCsvLine('5b', 'NCMP overhead for Synchronous single CM-handle pass-through read with alternate id', 'milliseconds', 'ncmp_overhead_passthrough_read_alt_id', 18, testResults, scenarioConfig),
makeSummaryCsvLine('6b', 'NCMP overhead for Synchronous single CM-handle pass-through write with alternate id', 'milliseconds', 'ncmp_overhead_passthrough_write_alt_id', 18, testResults, scenarioConfig),
- makeSummaryCsvLine('7', 'Legacy batch read operation', 'events/second', 'legacy_batch_read_cmhandles_per_second', 1750, testResults, scenarioConfig),
+ makeSummaryCsvLine('7', 'Legacy batch read operation', 'events/second', 'legacy_batch_read_cmhandles_per_second', 200, testResults, scenarioConfig),
];
return summaryCsvLines.join('\n') + '\n';
}
"startTime": "12s"
},
"legacy_batch_produce_scenario": {
- "executor": "shared-iterations",
+ "executor": "constant-arrival-rate",
"exec": "legacyBatchProduceScenario",
- "vus": 2,
- "iterations": 100
+ "rate": 1,
+ "preAllocatedVUs": 1,
+ "timeUnit": "1s",
+ "duration": "15m"
},
"legacy_batch_consume_scenario": {
"executor": "per-vu-iterations",
"exec": "legacyBatchConsumeScenario",
"vus": 1,
- "iterations": 1
+ "iterations": 1,
+ "maxDuration": "16m"
},
- "produceKafkaMessagesStorm": {
+ "produceCmAvcBackGroundLoadAtPeakRate": {
"executor": "constant-arrival-rate",
- "rate": 26,
- "timeUnit": "1s",
- "duration": "6m",
- "preAllocatedVUs": 26,
- "maxVUs": 30,
"exec": "produceAvcEventsScenario",
- "gracefulStop": "10s"
- },
- "produceKafkaMessagesNormal": {
- "executor": "constant-arrival-rate",
- "rate": 6,
+ "rate": 11,
"timeUnit": "1s",
- "duration": "8m",
- "preAllocatedVUs": 6,
- "maxVUs": 8,
- "exec": "produceAvcEventsScenario",
- "gracefulStop": "10s",
- "startTime": "7m"
+ "duration": "15m",
+ "preAllocatedVUs": 11,
+ "maxVUs": 12,
+ "gracefulStop": "10s"
}
},
"thresholds": {
import {
TOTAL_CM_HANDLES, READ_DATA_FOR_CM_HANDLE_DELAY_MS, WRITE_DATA_FOR_CM_HANDLE_DELAY_MS,
makeCustomSummaryReport, makeBatchOfCmHandleIds, makeRandomBatchOfAlternateIds,
- LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE, REGISTRATION_BATCH_SIZE, LEGACY_BATCH_THROUGHPUT_TEST_NUMBER_OF_REQUESTS,
+ LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE, REGISTRATION_BATCH_SIZE,
KAFKA_BOOTSTRAP_SERVERS, LEGACY_BATCH_TOPIC_NAME, CONTAINER_UP_TIME_IN_SECONDS, testConfig
} from './common/utils.js';
import { createCmHandles, deleteCmHandles, waitForAllCmHandlesToBeReady } from './common/cmhandle-crud.js';
}
export function legacyBatchConsumeScenario() {
- const TOTAL_MESSAGES_TO_CONSUME = LEGACY_BATCH_THROUGHPUT_TEST_NUMBER_OF_REQUESTS * LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE;
+ // calculate total messages 15 minutes times 60 seconds times
+ const TOTAL_MESSAGES_TO_CONSUME = 15 * 60 * LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE;
try {
let messagesConsumed = 0;
let startTime = Date.now();