Node Targeting

Target scenarios per coordinator/agent to model realistic topology.

Scenario Routing

Use coordinator and agent targeting APIs to segment workload responsibilities.

Feature Usage Samples

How to use snippets for Node Targeting.

Switch between C#, Java, Python, TypeScript, and JavaScript to see the native SDK shape for this sample.

Licensing note: every runnable sample requires a valid runner key via WithRunnerKey("...") or config key LoadStrike:RunnerKey.

Target Scenarios Per Node

LoadStrikeRunner
    .RegisterScenarios(httpScenario, kafkaScenario)
    .WithNodeType(LoadStrikeNodeType.Coordinator)
    .WithClusterId("orders-cluster")
    .WithAgentsCount(2)
    .WithCoordinatorTargetScenarios("http-source")
    .WithAgentTargetScenarios("kafka-consumer")
    .WithRunnerKey("rkr_your_remote_runner_key")
    .Run();

Targeting Pattern

CoordinatorTargetScenarios

List the scenarios that should stay on the coordinator process.

AgentTargetScenarios

List the scenarios that should be executed by agents instead of the coordinator.

Explicit names

Use explicit scenario names so each role gets a deterministic slice of the workload.