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

Improvements on standalone node execution (BFT-399) #55

Merged
merged 11 commits into from
Jan 10, 2024

Conversation

IAvecilla
Copy link
Contributor

What ❔

Documented a guide on setting up and running a local consensus node, along with a new Makefile containing commands for easy execution. Also modifies the database directory path for each node.

Why ❔

The README and the Makefile would streamline generating the configuration for all nodes with a single command and simplify running the desired node. About the modification for the database directory path, it seems beneficial for running multiple nodes on a single machine, especially for local testing. However, in the broader architecture of the Test Framework, each node is expected to operate within a distinct Docker container or a similar setup. In that context, this change might not be useful.

let database_path = if let Some((consensus_config, _)) = &configs.consensus {
Path::new("database").join(consensus_config.public_addr.to_string())
} else {
Path::new("database").join(configs.executor.server_addr.to_string())
Copy link
Collaborator

Choose a reason for hiding this comment

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

fyi, "database" is a flag now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've already merged the main branch with the latest changes, so it should be up-to-date now. I also noticed a modification in the logger initialization, it's currently logging only the ERROR events. I added the necessary environment variable for logging INFO events in the makefile within this commit 9a0d514 and updated the code comment about the logger in this one c1a4653. Let me know if this change was intentional, or if you'd like me to revert it back to logging for the info level by default.

Copy link
Collaborator

Choose a reason for hiding this comment

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

that was intentional, thx for updating the comment

@IAvecilla IAvecilla marked this pull request as ready for review January 9, 2024 15:30
@IAvecilla IAvecilla requested a review from pompon0 January 9, 2024 15:30
node/tools/Makefile Outdated Show resolved Hide resolved
node/tools/README.md Outdated Show resolved Hide resolved
@pompon0 pompon0 merged commit dbdc531 into main Jan 10, 2024
4 checks passed
@pompon0 pompon0 deleted the improve_node_standalone_setup branch January 10, 2024 10:41
@brunoffranca brunoffranca changed the title Improvements on standalone node execution Improvements on standalone node execution (BFT-399) Feb 7, 2024
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.

2 participants