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

PH: Disable p2p trx execution on validation and api nodes #1709

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 3, 2023

The performance harness is evaluating performance of BP nodes or API nodes according to what they can individually handle. There is no need for the validation node or the API node to speculatively execute trxs. This removes load from the overall test rig allowing for better results. Also it better represents real-world API configuration.

@heifner heifner added the OCI Work exclusive to OCI team label Oct 3, 2023
@@ -124,6 +124,7 @@ def __post_init__(self):

def configureValidationNodes():
validationNodeSpecificNodeosStr = ""
validationNodeSpecificNodeosStr += '--p2p-accept-transactions false '
Copy link
Member

@linh2931 linh2931 Oct 4, 2023

Choose a reason for hiding this comment

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

Why not remove the statement above and do validationNodeSpecificNodeosStr = '--p2p-accept-transactions false ' directly?

Same comment for below.

Copy link
Member

Choose a reason for hiding this comment

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

You don't have to make the changes. I am approving it now so that it can make to 5.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

That would be a fine change. Previously all additions to validationNodeSpecificNodeosStr were conditional so it was needed to initialize the variable. Looks like down below apiNodeSpecificNodeosStr could've been initialized directly with the first option instead of to a blank string first.

@heifner heifner merged commit 672c212 into main Oct 4, 2023
@heifner heifner deleted the ph-no-p2p-trx branch October 4, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants