Search code examples
dockerk6

K6 InfluxDB + Grafana Docker : How many virtual users can I run from one container?


I am using K6 for Load Testing.

I have cloned the K6, Grafana, InfluxDB docker-compose set up from here:

https://github.com/loadimpact/k6

Is there a maximum limit to the number of virtual users you can ramp up to from one Docker Container?

i.e. will I need to run lots of containers to reach the required number of virtual users or can it all be done from just one container?


Solution

  • It all depends on the size of the test file , the resources (memory/CPU) of the machine and the resource allocated from the machine to the docker.

    From what i understand, with enough system resources, one k6 container started using the below command is enough.

    docker-compose run k6 run