Coder Social home page Coder Social logo

gatling-app's Introduction

CircleCI

Gatling

Giant Swarm offers a Gatling Managed App which can be installed in workload clusters. Here we define the Gatling chart with its templates and default configuration.

Required values

In order to run Gatling, it must be provided with a simulation file which defines the test(s) to run. This configuration can be provided either as a ConfigMap or as a URL to a simulation hosted somewhere accessible by the cluster.

If the URL method is used then an init container will download the simulation file before Gatling runs.

These values must be provided via the values.yaml file.

Notes:

  • If you are using the ConfigMap method, then it should be created before the app is deployed.
  • If you provide a value for simulation.url then any ConfigMap is ignored.

ConfigMap method

Below is a sample ConfigMap which is used to test the performance of an Ingress Controller.

Notes:

  • The ConfigMap name must be provided via the simulation.configmap key in values.yaml (gatling-simulations in the example below).
  • The simulation.file key (IngressSimulation.scala in the example below) must be a valid file name for a simulation file.
  • The simulation.class key (ingress.IngressSimulation in the example below) must be a valid class name for a simulation class.
apiVersion: v1
kind: ConfigMap
metadata:
  name: gatling-simulations
data:
  IngressSimulation.scala: |
    package ingress

    import scala.concurrent.duration._

    import io.gatling.core.Predef._
    import io.gatling.http.Predef._

    class IngressSimulation extends Simulation {

      val httpProtocol = http
        .baseUrl("http://hello.cluster.k8s.installation.region.provider.gigantic.io")
        .acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
        .doNotTrackHeader("1")
        .acceptLanguageHeader("en-US,en;q=0.5")
        .acceptEncodingHeader("gzip, deflate")
        .userAgentHeader("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0")

      val scn = scenario("IngressSimulation")
        .exec(http("request_1")
          .get("/"))
        .pause(5)

      setUp(
        scn.inject(atOnceUsers(1))
      ).protocols(httpProtocol)
    }

gatling-app's People

Contributors

architectbot avatar gacko avatar dependabot[bot] avatar github-actions[bot] avatar glitchcrab avatar mleisa avatar ubergesundheit avatar piontec avatar marians avatar mcharriere avatar taylorbot avatar

Watchers

Timo Derstappen avatar Joe Salisbury avatar Oliver Thylmann avatar Dmitry Gusev avatar James Cloos avatar Alex Dabija avatar Quentin Bisson avatar Puru avatar  avatar Mario Nitchev avatar Lorenzo avatar  avatar Snizhana avatar

Forkers

stefan06ro

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.