moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.08k stars 1.14k forks source link

Docker buildkit still stuck with high CPU and unresponsive #5101

Closed jogo-openai closed 2 months ago

jogo-openai commented 3 months ago

Thank you for the fix for https://github.com/moby/buildkit/issues/4942 unfortunately we are still seeing the same issue with the latest release

https://github.com/docker/buildx/releases/tag/v0.15.1 should have buildkit 0.14.1 and buildkit 0.14 has this fix https://github.com/moby/buildkit/releases/tag/v0.14.0

ii  docker-ce                     5:26.0.2-1~ubuntu.22.04~jammy           amd64        Docker: the open-source application container engine
ii  docker-ce-cli                 5:26.0.2-1~ubuntu.22.04~jammy           amd64        Docker CLI: the open-source application container engine
ii  docker-compose-plugin         2.28.1-1~ubuntu.22.04~jammy             amd64        Docker Compose (V2) plugin for the Docker CLI.

Attached is the the debug output curl --unix-socket /var/run/docker.sock http://localhost/debug/pprof/goroutine?debug=2

log.txt

Originally posted by @jogo-openai in https://github.com/moby/buildkit/issues/4942#issuecomment-2195618478

tonistiigi commented 3 months ago

I don't think the stacktrace you posted is possible with v0.14.1 . Check docker buildx inspect to see the buildkit version for your current active instance.

jogo-openai commented 2 months ago

@tonistiigi you are right, fixed on my end and confirmed I now get v0.14.1. Closing this ticket, thank you.


Name:   default
Driver: docker

Nodes:
Name:             default
Endpoint:         default
Status:           running
BuildKit version: v0.13.1
Platforms:        linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/amd64/v4, linux/386
Labels:
 org.mobyproject.buildkit.worker.moby.host-gateway-ip: 172.17.0.1```