goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.16k stars 4.76k forks source link

Failed to push artifacts during load #20039

Closed kesslerdev closed 5 months ago

kesslerdev commented 8 months ago

Expected behavior and actual behavior:

When a load occurs (triggered by several push pipelines from GitLab) on Harbor, several pushes are successful in a decent amount of time (<10s), while others can hang for 10 to 30 minutes and fail. However, all pulls work.

We have scaled the core and registry from 3 to 6, with no significant improvements. Additionally, we don't have a very high load (maximum 40 operations per second for all API calls) with an average of 5 operations per second.

When the problem occurs, we can have 10 calls of PATCH /v2/project/image/blobs/uploads terminated with errors in over 600 seconds.

Versions: Please specify the versions of following systems.

Additional context:

Graphes from grafana: From Harbor: Capture d’écran 2024-02-26 142837 For v2_blob_upload PATCH & v2_blob_upload PUT

Capture d’écran 2024-02-26 143108 Also v2_blob_upload PATCH & v2_blob_upload PUT but for all core nodes

From istio:

Capture d’écran 2024-02-26 143157

Namespace pods:

NAME                                  READY   STATUS    RESTARTS       AGE
harbor-chartmuseum-7b479dd6d6-56m5g   1/1     Running   0              6d22h
harbor-core-6f7b48c949-btmw6          1/1     Running   1 (5d6h ago)   5d6h
harbor-core-6f7b48c949-k8zh8          1/1     Running   1 (5d6h ago)   5d6h
harbor-core-6f7b48c949-kx2gp          1/1     Running   1 (5d6h ago)   5d6h
harbor-core-6f7b48c949-lhtqc          1/1     Running   1 (5d6h ago)   5d6h
harbor-core-6f7b48c949-sww2m          1/1     Running   1 (5d6h ago)   5d6h
harbor-core-6f7b48c949-wzjc8          1/1     Running   1 (5d6h ago)   5d6h
harbor-exporter-5fc8975d8b-fhmjx      1/1     Running   0              21d
harbor-jobservice-544996775-cjnp9     1/1     Running   0              5d5h
harbor-nginx-df7bf48bc-xgw4n          1/1     Running   0              2d23h
harbor-nginx-df7bf48bc-zl9zs          1/1     Running   0              2d23h
harbor-portal-77786765fc-gvgt2        1/1     Running   0              6d22h
harbor-portal-77786765fc-j6kh2        1/1     Running   0              6d22h
harbor-portal-77786765fc-t7b97        1/1     Running   0              6d22h
harbor-redis-0                        1/1     Running   0              5d6h
harbor-registry-86579b6bcd-5jkbw      2/2     Running   0              5d6h
harbor-registry-86579b6bcd-b25pz      2/2     Running   0              5d6h
harbor-registry-86579b6bcd-f6wcg      2/2     Running   0              5d6h
harbor-registry-86579b6bcd-gbrbj      2/2     Running   0              5d6h
harbor-registry-86579b6bcd-kg2zt      2/2     Running   0              5d6h
harbor-registry-86579b6bcd-mh7wq      2/2     Running   0              5d6h
harbor-trivy-0                        1/1     Running   0              4d6h
chlins commented 8 months ago

Could you please attach the harbor core and registry logs as well?

kesslerdev commented 8 months ago

Sure i've added the logs of core & registry pods in the issue

github-actions[bot] commented 6 months ago

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.