https://github.com/sazid/node_manager
Automatically manage zeuz node instances and external service reporting.
https://github.com/sazid/node_manager
Last synced: 3 months ago
JSON representation
Automatically manage zeuz node instances and external service reporting.
- Host: GitHub
- URL: https://github.com/sazid/node_manager
- Owner: sazid
- Created: 2021-06-07T07:45:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T06:53:25.000Z (over 3 years ago)
- Last Synced: 2025-01-05T21:34:23.888Z (5 months ago)
- Language: Go
- Homepage:
- Size: 273 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node_manager
[](https://github.com/sazid/node_manager/actions/workflows/go.yml)
[](https://github.com/sazid/node_manager/actions/workflows/codeql-analysis.yml)Automatically manage zeuz node instances and external service reporting.

Decision for node to start/kill:
```
active = inprogress + idle// minimum no of nodes must be started
IF active < min nodes THEN
start (min - active) nodes// all nodes are in progress
ELSE IF active == inprogress AND active+1 <= max allowed nodes THEN
start 1 more node// kill unnecessary nodes
ELSE IF idle > 1 AND active > min nodes THEN
kill (idle - 1) nodes```
Flowchart:
