DOCS / CSHARPLOAD / DISTRIBUTED EXECUTION

Distributed execution

Install CSharpLoad.Distributed for the coordinator and CSharpLoad.Distributed.AspNetCore for agent hosting.

var result = await DistributedLoadTest.Create("checkout-load", "checkout-v1")
    .AddAgent(agent1)
    .AddAgent(agent2)
    .WithLoad(Load.ConstantRate(500, TimeSpan.FromMinutes(2)))
    .WithMaxConcurrencyPerAgent(256)
    .RequireAllAgents()
    .ReportMergedJson("artifacts/load.json")
    .ReportDistributedJson("artifacts/distributed.json")
    .ReportGitHubActions()
    .RunAsync();

The coordinator probes agents, partitions the load, schedules a synchronized start and merges successful node results. The merged standard JSON report is the artifact to ingest into Studio; the distributed report keeps optional node-level detail.