Is "Throttle" supported in the docker container?
See original GitHub issueHi! Thank U for sitespeed.io, it’s a great tool! My question: is the Throttle engine supported in the docker container?
I tried running:
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io --browsertime.connectivity.engine throttle -c cable https://www.google.com
but I got several errors!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Runtime options with Memory, CPUs, and GPUs
Docker provides ways to control how much memory, or CPU a container can use, setting runtime configuration flags of the docker run command....
Read more >How to throttle memory for a running container when it's ...
I'm looking into dynamic resource throttling solutions using Docker: For CPU, the default cgroups policy is good enough, once a new container is ......
Read more >Docker Container CPU Limits Explained - Thorsten Hans
By default, Docker does not apply any CPU limitations. Containers can all of the hosts given CPU power. Relax, a Docker container will...
Read more >WARNING: No blkio throttle.read_bps_device support. What is ...
This warning is not an error. And for most users, this warning can be ignored. This "blkio" is a Docker subsystem used in...
Read more >Creating a container image for use on Amazon ECS
Stop the Docker container by typing Ctrl + c. Push your image to Amazon Elastic Container Registry. Amazon ECR is a managed AWS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@marty90 correct, that will not work. You can setup different docker networks as in https://www.sitespeed.io/documentation/sitespeed.io/connectivity/#docker-networks but in practice, I haven’t seen anyone showing that running multiple browser instances will not affect each other, so I always run one test/URL at a time.
Hi @marty90 thanks for the kind words. Let me update the docs (https://www.sitespeed.io/documentation/sitespeed.io/connectivity/#throttle) the coming days, it is a little bit unclear.
It works like this: If you run throttle inside your container, the base OS needs to be Linux and you need to set the right
sudo modprobe ifb numifbs=1
and then also give the container the privileges for the network:--cap-add=NET_ADMIN
For example, if you run on Ubuntu, you need to first run
sudo modprobe ifb numifbs=1
and thendocker run --shm-size=1g --cap-add=NET_ADMIN ...
.If you use Docker on Mac it will not work. To be able to set the connectivity, you then need to run throttle outside of the container, see the last example here:
https://www.sitespeed.io/documentation/sitespeed.io/connectivity/#throttle
Best Peter