Open npitsillos opened 1 year ago
After looking further into this I found that traces for pulling images from docker appear when the registry is set as follows in /etc/containerd/certs.d/docker.io
server = "https://docker.io"
[host."http://127.0.0.1:65001"]
capabilities = ["pull", "resolve"]
[host."http://127.0.0.1:65001".header]
X-Dragonfly-Registry = ["https://registry-1.docker.io"]
[host."https://registry-1.docker.io"]
capabilities = ["pull", "resolve"]
Having set this in every node running the dfdaemon
daemonset
I still don't see any speed up on pulling images. How can I read the traces to understand if I have correctly configured the mirror
mode?
I have setup Prometheus to keep track of the metrics. If an image is pulled via Dragonfly you should see an increasing number of requests. However, I could not get Dragonfly to work as well. While dfget
works perfectly fine inside the dfdaemon
pod images seem to be pulled normally without any P2P acceleration 😢
It seems to be the case for me as well @PKizzle. I checked the logs in the seed-peer
seems like images are pulled from a single source within the P2P network which could explain the lack of speed up.
Bug report:
I deployed dragonfly on AWS EKS and set 3 registries. Refer to the `values.yml' file below.
For each registry I have run
gen-host.sh <host>
and setup/etc/containerd/config.toml
as shown here wherecerts.d
contains a dir for each host with thehosts.toml
file.When pulling images from docker no traces appear in
jaeger
and no logs show when runningkubectl -n dragonfly-system exec -it pod-name -- grep "peer task done" /var/log/dragonfly/daemon/core.log
. I am assuming the pod here should be the one that runs in the same node as the one where the image is pulled.Here are the logs from
dfdaemon
podupdate-containerd
containerExpected behavior:
Docker images should be pulled through
dragonfly
How to reproduce it:
Deploy dragonfly with docker registry in mirror mode.
Environment:
dfdaemon:v2.1.0
linux
uname -a
):5.10.186-179.751.amzn2.x86_64
containerd://1.6.19
v1.27.4