question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is "Throttle" supported in the docker container?

See original GitHub issue

Hi! 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
soulgalorecommented, Apr 16, 2018

@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.

1reaction
soulgalorecommented, Apr 16, 2018

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 then docker 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found