Giter Site home page Giter Site logo

backend-cockfighting-q1-2024-poc's Introduction

Backend Cockfighting Q1 2024 POC

Note1: ⚠️ This README does not cover the Windows and Mac process ⚠️

Note2: If you are a Docker Rootless user, i suggest you to use sudo because Docker Rootless runs slirp4netns with the --disable-host-loopback option, so the Gatling cannot access localhost.

How to build the image

docker build -t gatling-on-docker -f Dockerfile .

How to run the container

  1. Run the container using the following command:
docker run -it -d --network=host --name gatling gatling-on-docker

Note: ensure to only remove --network=host if you know how to configure the host.docker.internal, or if you will call your machine's local ip, or if you are just not using Linux.

  1. Execute the following command to start running the default simulation or rinha de backend simulation:
  • The default simulation
docker exec gatling /opt/gatling/bin/gatling.sh -rm local -sf /opt/gatling/user-files/simulations -s computerdatabase.ComputerDatabaseSimulation -rf /opt/gatling/results
  • The rinha's simulation
docker exec gatling /opt/gatling/bin/gatling.sh -rm local -sf /opt/gatling/user-files/simulations -s RinhaBackendCrebitosSimulation -rf /opt/gatling/results

How to stop and remove the gatling container from your machine

docker stop gatling && docker rm gatling

How to run the container using a simulation from another Rinha (maybe Q2 or 2025?)

  1. Start the container
docker run -it -d -v /path/to/custom/config:/opt/gatling/conf \   
  -v /path/to/custom/user-files:/opt/gatling/user-files \   
  -v /path/to/results:/opt/gatling/results \   
  --network=host --name galing gatling-on-docker
  1. Execute your simulation
docker exec gatling /opt/gatling/bin/gatling.sh -rm local -sf /opt/gatling/user-files/simulations -s <name_of_your_simulation> -rf /opt/gatling/results

backend-cockfighting-q1-2024-poc's People

Contributors

lucaswilliameufrasio avatar

Watchers

 avatar

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.