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
Registry use aliyun OSS as storage backend. There are 12000+ repositories in registry.
harbor/ui log:
Nov 10 11:56:50 192.168.16.1 ui[727]: 2016-11-10T03:56:50Z [DEBUG] [utils.go:246]: Start syncing repositories from registry to DB...
Nov 10 11:56:50 192.168.16.1 ui[727]: 2016-11-10T03:56:50Z [DEBUG] [authutils.go:67]: scopes: [registry:catalog:*]
Nov 10 11:56:50 192.168.16.1 ui[727]: 2016-11-10T03:56:50Z [INFO] current access, type: registry, name:catalog, actions:[*]
Nov 10 12:18:29 192.168.16.1 ui[727]: 2016-11-10T04:18:29Z [DEBUG] [transport.go:51]: 200 | GET http://registry:5000/v2/_catalog?n=200000
Nov 10 12:18:29 192.168.16.1 ui[727]: 2016-11-10T04:18:29Z [DEBUG] [utils.go:249]: reposInRegistry count:12008
Nov 10 12:18:29 192.168.16.1 ui[727]: 2016-11-10T04:18:29Z [DEBUG] [utils.go:266]: reposInDB count:0
Nov 10 12:18:35 192.168.16.1 ui[727]: 2016-11-10T04:18:35Z [DEBUG] [utils.go:271]: reposToAdd count:0
Nov 10 12:18:35 192.168.16.1 ui[727]: 2016-11-10T04:18:35Z [DEBUG] [utils.go:272]: reposToDel count:0
Nov 10 12:18:35 192.168.16.1 ui[727]: 2016-11-10T04:18:35Z [DEBUG] [utils.go:311]: Sync repositories from registry to DB is done.
It takes about 20 minutes to sync repositories from registry to DB.
The text was updated successfully, but these errors were encountered:
kdada
changed the title
Harbor launchs slowly when registry has too many repositories
Harbor launches slowly when registry has too many repositories
Nov 10, 2016
I see the time was spent here:
Nov 10 11:56:50 192.168.16.1 ui[727]: 2016-11-10T03:56:50Z [INFO] current access, type: registry, name:catalog, actions:[*]
Nov 10 12:18:29 192.168.16.1 ui[727]: 2016-11-10T04:18:29Z [DEBUG] [transport.go:51]: 200 | GET http://registry:5000/v2/_catalog?n=200000
The intention is to avoid inconsistency between DB and registry data.
We can add a flag to skip the sync so it won't try to call the API v2/_catalog to sync image to DB. However due to internal release schedule the change can't be made shortly.
To workaround, you can comment the line 83~85 in src/ui/main.go to skip this step.
Version:
Registry use aliyun OSS as storage backend. There are 12000+ repositories in registry.
harbor/ui log:
It takes about 20 minutes to sync repositories from registry to DB.
The text was updated successfully, but these errors were encountered: