Giter Site home page Giter Site logo

Comments (3)

AntyaDev avatar AntyaDev commented on August 24, 2024 1

Thanks,
We will try to reproduce it. And I probably will ask more questions :)

from nbomber.

AntyaDev avatar AntyaDev commented on August 24, 2024

Hi @EduardGeorgiev ,
Thank you for this information. Is it easy to reproduce? If yes what steps to be done to achieve the same effect?

from nbomber.

EduardGeorgiev avatar EduardGeorgiev commented on August 24, 2024

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.

from nbomber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.