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

nuxt build halts the machine #308

Open
mattwang44 opened this issue Aug 2, 2022 · 2 comments
Open

nuxt build halts the machine #308

mattwang44 opened this issue Aug 2, 2022 · 2 comments

Comments

@mattwang44
Copy link
Member

mattwang44 commented Aug 2, 2022

The app is currently running on a GCE g1-small (0.5vCPU & 1.7GB memory). docker-compose up -d --build is used for deploying, but it started to occasionally halt the entire machine in the past month. Cannot be reproduced in the staging environment.

  • We might need to make sure we did not create any change that leads to memory leakage first.
  • Should also check if it's an issue regarding docker settings.
  • One of the possible reasons is the building process takes up a significant amount of memory but g1-small only has 1.7 Gb. Due to the limited budget, limiting the memory usage of the building process would be a better option than upgrading the machine type.
@mattwang44
Copy link
Member Author

Some findings: Just upgrade the machine type from g1-small to n1-standard (1vCPU & 3.7GB memory) and the building process runs much smoother.

@josix
Copy link
Collaborator

josix commented Jan 8, 2023

Current workaround: I just stop the running container through docker-compose stop, then continue to run docker-compose up -d --build to avoid the overhead happening.

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

Successfully merging a pull request may close this issue.

2 participants