mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
33 lines
862 B
TypeScript
33 lines
862 B
TypeScript
import { test } from '../../../../fixtures/base';
|
|
import { kafkaDriver } from '../../../../utils/benchmark';
|
|
import { runLoadTest } from '../harness/load-harness';
|
|
|
|
test.use({ capability: { env: { TEST_ISOLATION: 'kafka-load-30n-10kb-steady-300' } } });
|
|
|
|
test.describe(
|
|
'Kafka Load: steady 30n/10KB/300msg',
|
|
{
|
|
annotation: [{ type: 'owner', description: 'Catalysts' }],
|
|
},
|
|
() => {
|
|
test('30 nodes, 10KB payload, steady 300 msg/s', async ({ api, services }, testInfo) => {
|
|
const handle = await kafkaDriver.setup({
|
|
api,
|
|
services,
|
|
scenario: { nodeCount: 30, payloadSize: '10KB' },
|
|
});
|
|
await runLoadTest({
|
|
handle,
|
|
api,
|
|
services,
|
|
testInfo,
|
|
load: { type: 'steady', ratePerSecond: 300, durationSeconds: 30 },
|
|
trigger: 'kafka',
|
|
nodeCount: 30,
|
|
nodeOutputSize: '10KB',
|
|
timeoutMs: 300_000,
|
|
});
|
|
});
|
|
},
|
|
);
|