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

[test] Runtimes separation #197

Closed
wants to merge 25 commits into from

Conversation

davidrotari19
Copy link
Contributor

@davidrotari19 davidrotari19 commented Mar 2, 2024

CLI is a very simple process that parses command line arguments and starts a diem_node. There is no communication between diem_node and CLI moreover CLI has minimal function. So why start diem_node in the runtime of CLI?
Very stupid idea: : The CLI should spawn a process for running diem_node, the process should take over the CLI process, and close the CLI process. As a result, there are no nested runtimes the diem_node process acts like the main process. without any interface from the CLI runtime.
Implementation: Start the node into a tmux session
Future implementation: It should start the node directly in the background(the code will do all the node setups for you and just outputs if the node started) and have an option for log(a log.txt file) with maximum size and automatic cleanup. After this, you can close the server safely.

davidrotari19 and others added 25 commits February 15, 2024 00:51
@davidrotari19 davidrotari19 deleted the runtimes branch March 7, 2024 19:08
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.

4 participants