You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Harbor installation with internal PostgreSQL Database and 3 harbor core replicas running.
When we try to delete multiple (>10) images via Harbor UI with this configuration, the page just hangs and keeps reloading.
If I check the long running queries on Postgres side, it seems like the queries from different core-replicas just blocking each other and it is impossible to unblock trying to terminate backends (https://www.shanelynn.ie/postgresql-find-slow-long-running-and-blocked-queries/)
I am not very handy in PostgreSQL operation, thus so far we have to restart database in such cases by restarting database pod.
Down-scaling harbor-core deployment to 1 replica solves the problem. With one replica running multiple images can be deleted from UI without any issues.
I am wondering if somebody is experiencing same issue with external Postgres database as well.
The text was updated successfully, but these errors were encountered:
I am trying to understand the problem, and I've some questions:
What version of harbor are you using?
are those to be deleted images belong to one project?
what long query did you see in the data base end? And we can try to enable the ORM_DEBUG in the harbor core pod to capture the sql at the time of deleting.
hi @wy65701436 ,
thank you for caring about the issue.
I am using Harbor 2.10.2.
Yes, the images are from the same registry but with different tags.
The blocked queries are selects from blob/artifact tables. Sometimes its blob, sometimes artifacts.
Unfortunately I can only reproduce this issue in Production Instance, so I can not just easily enable debugging there.
Will try to gather more details and update the ticket.
@wy65701436@reasonerjt, btw, this happens also on single pod harbor core instances.
Easy to reproduce, set DB max connections to <10, eg. 5 and try to delete in the UI 100 Images
We are using Harbor installation with internal PostgreSQL Database and 3 harbor core replicas running.
When we try to delete multiple (>10) images via Harbor UI with this configuration, the page just hangs and keeps reloading.
If I check the long running queries on Postgres side, it seems like the queries from different core-replicas just blocking each other and it is impossible to unblock trying to terminate backends (https://www.shanelynn.ie/postgresql-find-slow-long-running-and-blocked-queries/)
I am not very handy in PostgreSQL operation, thus so far we have to restart database in such cases by restarting database pod.
Down-scaling harbor-core deployment to 1 replica solves the problem. With one replica running multiple images can be deleted from UI without any issues.
I am wondering if somebody is experiencing same issue with external Postgres database as well.
The text was updated successfully, but these errors were encountered: