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

Wait extra time if the cache is large #827

Merged
merged 1 commit into from
Feb 27, 2021
Merged

Wait extra time if the cache is large #827

merged 1 commit into from
Feb 27, 2021

Conversation

vladaionescu
Copy link
Member

This hopefully addresses issues with buildkit restart timeouts.

It automatically detects whether the earthly cache is large (>30GB) and waits extra for buildkit to start up in that case.

Here it is in action:

Screenshot from 2021-02-26 17-38-07

fmt.Printf("Warning: Could not detect buildkit cache size: %v\n", cacheSizeErr)
return err
}
cacheGigs := cacheSize / 1000 / 1000 / 1000
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: 1024

Copy link
Member Author

Choose a reason for hiding this comment

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

It's printed as GB, not GiB :-)

Copy link
Collaborator

Choose a reason for hiding this comment

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

lol... sounds good :)

@vladaionescu vladaionescu enabled auto-merge (squash) February 27, 2021 01:47
@vladaionescu vladaionescu merged commit a046536 into main Feb 27, 2021
@vladaionescu vladaionescu deleted the vlad/extra-wait branch February 27, 2021 01:55
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.

None yet

2 participants