Current time: 08-09-2020, 01:19 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Docker wptagent cpu throttle ?
06-04-2020, 04:15 PM
Post: #1
Docker wptagent cpu throttle ?
First time docker wpt user and I have managed to get wpt server and wptagent installed and running but 3g emulated moto gen4 isn't throtling the cpu ? I don't think ?

Is this the correct way to enable cpu throttling for wptagent ?

Code:
docker run -d -p 4001:80 \
    --network="host" \
    --name wptagent \
    -e "SERVER_URL=http://localhost:4000/work/" \
    -e "LOCATION=Test" \
    -e "EXTRA_ARGS='--throttle'" \
    --cap-add="NET_ADMIN" \
    --shm-size=1g \
    webpagetest/agent
Find all posts by this user
Quote this message in a reply
06-06-2020, 02:31 AM
Post: #2
RE: Docker wptagent cpu throttle ?
I encountered exactly the same problem as you recently while trying to set up my private instance. I managed to solve it and my private instance has been running now for a few weeks with CPU throttling, so I've just created an issue in the repo to see if we can fix it for everyone: https://github.com/WPO-Foundation/wptagent/issues/354

You can see the whole details in the issue, but to summarise:
  • The docker image is missing the cgroup-tools package, this will need to be added to the image
  • The cgroup filesystem inside /sys is read-only but the cgroup tools expect it to be writeable in order to create and manage the cgroups.

I don't know if the fix is safe to use (from a security point of view) as I'm not familiar with Docker, but you may want to try it fix and see if it helps you.
Find all posts by this user
Quote this message in a reply
06-09-2020, 06:59 PM
Post: #3
RE: Docker wptagent cpu throttle ?
cheers thanks for sharing the workaround Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)