Open EduardGeorgiev opened 1 month ago
Hi @EduardGeorgiev , Thank you for this information. Is it easy to reproduce? If yes what steps to be done to achieve the same effect?
Hello @AntyaDev . I am unsure of exactly what caused it, but here's some info: In the beginning I set:
GCSettings.LatencyMode = GCLatencyMode.SustainedLowLatency;
Load Simulations:
var trafficPerSecond = 150;
Simulation.RampingInject(rate: (int)(trafficPerSecond * 1f), interval: TimeSpan.FromSeconds(1), during: TimeSpan.FromMinutes(1)), // 66% => 100%
Simulation.Inject(rate: (int)(trafficPerSecond * 1f), interval: TimeSpan.FromSeconds(1), during: TimeSpan.FromMinutes(9)), // 100%
Simulation.RampingInject(rate: (int)(trafficPerSecond * 2f), interval: TimeSpan.FromSeconds(1), during: TimeSpan.FromMinutes(1)), // 100% => 200%
Simulation.Inject(rate: (int)(trafficPerSecond * 2f), interval: TimeSpan.FromSeconds(1), during: TimeSpan.FromMinutes(1)) // 200% for extra confidence
The scenario is .WithMaxFailCount(500000), I had more than 30K failures by the end of it.
My internet was slow, I believe it was still bombing even 30minutes after "Waiting on scenarios completion...", which was peculiar to me, as I was hoping NBomber to have some safeguards to alert me in case the requests are going out too slow for the requested bombing speed.
My config:
{
"TestSuite": "Ticket Options Tests",
"TestName": "Ticket Options Load Test",
"GlobalSettings": {
"ReportFormats": [ "Html", "Txt", "Csv", "Md" ]
}
}
Runner:
var fileDate = DateTimeOffset.Now.ToUnixTimeSeconds().ToString();
var runner = NBomberRunner
.RegisterScenarios(scenarioTicketOptionsLoadTest)
.LoadConfig("config.json")
.WithReportFolder(Path.Combine(resultsDir, fileDate))
.WithReportFileName($"report_{fileDate}")
.WithLoggerConfig(() =>
new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.File(
path: Path.Combine(solutionDir, "logs", "log.txt"),
outputTemplate:
"{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] [ThreadId:{ThreadId}] {Message:lj}{NewLine}{Exception}",
rollingInterval: RollingInterval.Day)
)
.WithLicense(Settings.LicenseKey);
That's about it.
Thanks, We will try to reproduce it. And I probably will ask more questions :)
NBomber was stuck for 30 minutes on finalizing scenarios. I checked the logs:
Sadly no reports were output and thus the test results were lost.