Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(external-node): external node distributed operation mode (#1457)
## What ❔ Adds a way to run External Node in a "distributed setup": that if there is a need to launch different components of the EN on different machines for performance reasons. The currently supported component split is * `core` * `tree` * `tree_api` (depends on `tree`) * `api` (may be split into two components: `http_api` and `ws_api`) Example setup: ``` zk external-node -- --components=core ``` ``` env EN_HEALTHCHECK_PORT=3082 EN_PROMETHEUS_PORT=3323 zk external-node -- --components="tree,tree_api" ``` ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `zk spellcheck`. - [ ] Linkcheck has been run via `zk linkcheck`.
- Loading branch information