Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the pagesize when listing artifact before replication job #20430

Open
stonezdj opened this issue May 15, 2024 · 0 comments
Open

Specify the pagesize when listing artifact before replication job #20430

stonezdj opened this issue May 15, 2024 · 0 comments

Comments

@stonezdj
Copy link
Contributor

When replication start, Harbor lists the artifact in the repository.

artifacts, err := a.client.listArtifacts(repository)

It sends the list artifact request to the Harbor registry and pageSize is not specified.
Because the pagesize is not specified, it use the default page size (10) and cause the list artifact process very slow, need if the pageSize is 100, it speed up API call.

If there are 20000 tags, the pageSize is 10, there are 2000 API calls,
When page size is 100, there are 200 API calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants