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

fix: increase beego max memory and upload size #19578

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

chlins
Copy link
Member

@chlins chlins commented Nov 14, 2023

  1. Increase the default beego max memory and upload size from 32GB to 128GB.
  2. Support customize the two beego configs from env.

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #18888

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.

Signed-off-by: chlins <chenyuzh@vmware.com>
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Merging #19578 (925098e) into main (996e57b) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #19578      +/-   ##
==========================================
- Coverage   67.53%   67.52%   -0.02%     
==========================================
  Files         991      991              
  Lines      109140   109144       +4     
  Branches     2719     2719              
==========================================
- Hits        73708    73698      -10     
- Misses      31458    31474      +16     
+ Partials     3974     3972       -2     
Flag Coverage Δ
unittests 67.52% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/lib/config/systemconfig.go 50.36% <0.00%> (-1.52%) ⬇️

... and 5 files with indirect coverage changes

@gman0
Copy link

gman0 commented Nov 14, 2023

I'm not sure increasing the limit is the solution for this issue; larger images will have the same problem. The registry and client need to agree on max size of the blob, and if the layer exceeds that, it needs to be split into more chunks.

Copy link
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stonezdj
Copy link
Contributor

Because they are beego specific configurations, should we just change them in the beego app.conf?

@wy65701436 wy65701436 merged commit 553c85e into goharbor:main Nov 21, 2023
10 of 12 checks passed
wy65701436 added a commit to wy65701436/harbor that referenced this pull request Nov 22, 2023
1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.

Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
stonezdj pushed a commit to stonezdj/harbor that referenced this pull request Dec 5, 2023
1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.

Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>

(cherry picked from commit 553c85e)
Signed-off-by: stonezdj <daojunz@vmware.com>
wy65701436 added a commit that referenced this pull request Dec 6, 2023
…#19670)

fix: increase beego max memory and upload size (#19578)

1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.




(cherry picked from commit 553c85e)

Signed-off-by: chlins <chenyuzh@vmware.com>
Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: Chlins Zhang <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
altynbaev pushed a commit to altynbaev/harbor that referenced this pull request Jan 29, 2024
1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.

Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
Signed-off-by: Altynbaev Dinislam <altynbayevdr@sberautotech.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

One of the layers is large than 80G, Can't push image to harbor
6 participants