Blob `Get meta timeout`, which blocks other image pulls
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
- Área
- backend, distributed-systems
Línea de trabajo
Comienza siguiendo las rutas registradas en src/switch_file.cpp y src/image_file.cpp, y compáralas después con el flujo de solicitudes de overlaybd-snapshotter descrito en la línea de tiempo. Determina dónde una solicitud Get Meta agotada impide que otra solicitud de imagen progrese y dónde está definido el tiempo de espera de 30 segundos. Se considera terminado cuando las descargas independientes de imágenes no están bloqueadas por ese tiempo de espera y este puede configurarse.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened in your environment?
Sometime we saw long image pull latency, even with lazy pull enabled. Looking into containerd/overlaybd logs, we found overlaybd has the Get meta timedout error on an image blob, which blocks later image pull requests during this timeout period.
Below is a rough timeline from containerd/overlaybd logs. Sorry I probably couldn't share all the logs, but let me know if you need any more details.
It seems the snapshotter (or overlaybd) cannot process requests in parallel, even for requests for different images.
# (containerd) - notice the long latency for img2, both are overlaybd images
"2024-12-03T01:24:32.973066470Z" PullImage img1
"2024-12-03T01:24:33.300435436Z" PullImage img1 returns image reference
"2024-12-03T01:24:36.923843733Z" PullImage img2
"2024-12-03T01:25:06.203165092Z" PullImage img2 returns image reference
# (overlaybd-snapshotter)
# snapshotted starts to have img2 related logs only AFTER the previous img1 blob timed out.
"2024-12-03T01:24:33Z" "{repoBlobUrl: img1/blobs/... }"
"2024-12-03T01:25:06Z" "failed to enable target for ... failed:failed to open remote file ... Get meta timedout"
...
"2024-12-03T01:25:06Z" "{repoBlobUrl: img2/blobs/...}"
# (overlaybd)
"2024/12/03 01:24:36" /src/src/switch_file.cpp:50|try_open_zfile:open file as zfile format, path: img1/blobs/...
"2024/12/03 01:25:06" /src/src/image_file.cpp:165|__open_ro_remote:failed to open remote file img1/blobs/... Get meta timedout errno=110(Connection timed out)
"2024/12/03 01:25:08" /src/src/image_file.cpp:145|__open_ro_remote:open file from remotefs mg2/blobs/...
What did you expect to happen?
- A
Get Metatimeout in one image shouldn't block requests for other images. - Make
Get Metatimeout configurable, so we can reduce the wait time. (I believe the payload forGet Metashould be small, so 30s seems too long).
How can we reproduce it?
Not sure, this only happens in one region. We can only capture some live nodes having the issue, but couldn't repro it yet.
What is the version of your Overlaybd?
overlaybd: 0.6.17
overlaybd-snapshotter: 0.6.7
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?
- Yes, I am willing to fix it.
- Lenguaje dominante
- C++
- Estrellas
- 447
- Forks
- 102
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de containerd/overlaybd
-
Corrupted overlaybd.commit contains duplicated blocks and stalls TCMU / Pod sandbox creationAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
containerd/overlaybd#471 ·
Los mantenedores suelen responder en 1 día
-
EROFS testfile not foundAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
containerd/overlaybd#382 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
containerd/overlaybd#380 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
containerd/overlaybd#361 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
P2P not working with harborAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
containerd/overlaybd#326 · 8 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de containerd/overlaybd
Issues similares
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Nixtla/statsforecast#1371 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPosiblemente ocupada @fedonman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
task
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
SparseLinearAlgebra/spla#316 · 1 comentario ·
Los mantenedores suelen responder en 1 día