CloudflareBypassForScraping
CloudflareBypassForScraping copied to clipboard
This container has ~10% idle cpu usage
Running this container on an Arch Linus LTS host with an i5-13500T CPU and 32GB RAM. Via docker stats -a this container sits at ~10% CPU usage when doing nothing.
Docker compose:
cloudflarebypassforscraping:
image: ghcr.io/sarperavci/cloudflarebypassforscraping:latest
container_name: cloudflarebypassforscraping
restart: unless-stopped
networks:
- media
Nothing interesting in log from portainer:
INFO: Started server process [8]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [9]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [9]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [9]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [9]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [8]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [9]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started server process [8]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
I connect ghcr.io/calibrain/calibre-web-automated-book-downloader to this container but I took that down a few days ago as it too has a CPU idle issue and a memory leak.
We are using the kasmweb base image, since it has a display environment pre-installed. And it has a VNC service running on it — this might be causing the issue. Before that, we were using a base Ubuntu image with a virtual display, but it was detected by Cloudflare. So kasmweb was an immediate solution. I'll create our own container with proper display support soon. Then your problem will probably be solved.
I'm using:
cloudflarebypassforscraping:
image: ghcr.io/sarperavci/cloudflarebypassforscraping:latest
container_name: cloudflarebypassforscraping
restart: unless-stopped
networks:
- media
This sort of resource usage for a new container doing nothing is pretty nuts (edit: the screengrab I uploaded from portainer seems to keep disappearing for some reason...):
OK I'm no longer needing this container as the calibre-web-automated-book-downloader container that was using it now bundles it within it's own container.
However I did pull a new image and start it up and without any other container using it, it sits at the same resource usage as shown above so something is clearly wrong.