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: use default node image to build docker #7004

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Aug 5, 2024

Motivation

Description
Two things that may cause the performance issue on docker:

this PR uses the default node image which is supposed to have no different to service deployment. The down side is its image size, now it's ~493MB which is >3x the current image size so we need to consider this fact

Closes #7003

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.49%. Comparing base (42287d4) to head (7922d8a).

Additional details and impacted files
@@             Coverage Diff             @@
##           rc/v1.21.0    #7004   +/-   ##
===========================================
  Coverage       62.48%   62.49%           
===========================================
  Files             576      576           
  Lines           61198    61198           
  Branches         2141     2132    -9     
===========================================
+ Hits            38242    38243    +1     
  Misses          22916    22916           
+ Partials           40       39    -1     

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@wemeetagain
Copy link
Member

Looks like the slim image is 72MB + lodestar

@wemeetagain wemeetagain marked this pull request as ready for review August 5, 2024 20:24
@wemeetagain wemeetagain requested a review from a team as a code owner August 5, 2024 20:24
@nflaig
Copy link
Member

nflaig commented Aug 5, 2024

Looks like the slim image is 72MB + lodestar

do you know the total image size?

@twoeths
Copy link
Contributor Author

twoeths commented Aug 6, 2024

do you know the total image size?

@nflaig it's ~181MB https://hub.docker.com/r/tuyennhv/lodestar/tags while it's ~161MB for the current image https://hub.docker.com/r/chainsafe/lodestar/tags

@philknows philknows merged commit 76a32dd into rc/v1.21.0 Aug 6, 2024
16 of 17 checks passed
@philknows philknows deleted the te/default_node_image branch August 6, 2024 15:08
@twoeths
Copy link
Contributor Author

twoeths commented Aug 6, 2024

Persisting some metrics here

  • tested this branch for 13h (this is 24h view, 1h interval), pre is with base node image, post is with node-slim
Screenshot 2024-08-06 at 22 07 49
  • mesh peers are not as great the default node image, but it's the same to beta
Screenshot 2024-08-06 at 22 08 50 Screenshot 2024-08-06 at 22 10 04
  • gc is the same to the default node image
Screenshot 2024-08-06 at 22 10 50
  • gossip validation time is the same to the default node image
Screenshot 2024-08-06 at 22 09 29

the last 2 metrics are the deciding factors to get it merged, plus this will use glibc similar to service deployment

wemeetagain added a commit that referenced this pull request Aug 6, 2024
* fix: use default node image instead of alpine

* fix: use apt-get

* Apply suggestions from code review

---------

Co-authored-by: Cayman <[email protected]>
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.21.0 🎉

philknows pushed a commit that referenced this pull request Sep 3, 2024
* fix: use default node image instead of alpine

* fix: use apt-get

* Apply suggestions from code review

---------

Co-authored-by: Cayman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants