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

Extract container initialization to bin/init #1

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Conversation

bryanenders
Copy link
Contributor

@bryanenders bryanenders commented Sep 13, 2022

Why

Memory issues can occur when services retrieve dependencies in parallel. Checking dependencies on every start needlessly slows the operation. The NPM lock files are updated on start, which is undesirable.

What

  • Make dependency retrieval serial
  • Extract dependency retrieval to bin/init
  • Keep bin/init idempotent
  • Replace bin/clean with bin/reset
  • Remove unneeded depends_on definitions
  • Give Hubs Client enough time to build before reporting unhealthy
  • Allow scripts to be triggered from other directories
  • Allow bin/observe to be launched in an existing tmux session

Copy link

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

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

Good call. LGTM.

Copy link

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

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

Just a minor comment. LGTM.

bin/clean Outdated Show resolved Hide resolved
Why
---
Memory issues can occur when services retrieve dependencies in parallel.
Checking dependencies on every start needlessly slows the operation.
The NPM lock files are updated on start, which is undesirable.

What
----
* Make dependency retrieval serial
* Extract dependency retrieval to `bin/init`
* Keep `bin/init` idempotent
* Replace `bin/clean` with `bin/reset`
* Remove unneeded `depends_on` definitions
* Give Hubs Client enough time to build before reporting unhealthy
* Allow scripts to be triggered from other directories
* Allow `bin/observe` to be launched in an existing tmux session
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