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

Only store transactions on validator nodes #8965

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

akashin
Copy link
Collaborator

@akashin akashin commented Apr 24, 2023

At the moment transactions are indefinitely stored on RPC nodes that are not validators (#8878, #6713).

The intent of this commit is to avoid storing transactions on any node that can't be a chunk/block producer and as far as I understand, such node requires a validator key, so we use it as a condition to store the transaction.

@akashin akashin force-pushed the tp_non_validator branch 2 times, most recently from b5a65b9 to d397408 Compare April 24, 2023 13:39
@akashin akashin requested a review from nikurt April 24, 2023 13:41
At the moment transactions are indefinitely stored on RPC nodes that are
not validators (near#8878,
near#6713).

After this commit, such nodes will not store transactions in the
transaction pool at all.
@akashin akashin marked this pull request as ready for review April 24, 2023 13:43
@akashin akashin requested a review from a team as a code owner April 24, 2023 13:43
Copy link
Contributor

@nikurt nikurt left a comment

Choose a reason for hiding this comment

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

The code looks good.
You're definitely making the situation better for RPC nodes.
I assume you're also eventually going to address the issue for non-validators that have validator keys.

@akashin
Copy link
Collaborator Author

akashin commented Apr 24, 2023

The code looks good. You're definitely making the situation better for RPC nodes. I assume you're also eventually going to address the issue for non-validators that have validator keys.

Yes, I want to address the unbounded accumulation of transactions in the pool for all types of nodes, though I'm still trying to understand the flow of transactions in more detail and especially what will happen during the high load, so it's hard for me to formulate how the final solution will look like just yet.

@akashin akashin added the A-congestion Work aimed at ensuring good system performance under congestion label Apr 24, 2023
@akashin akashin merged commit 2da01b0 into near:master Apr 24, 2023
nikurt pushed a commit that referenced this pull request Apr 25, 2023
At the moment transactions are indefinitely stored on RPC nodes that are not validators (#8878, #6713).

After this commit, nodes without validator keys will not store transactions in the transaction pool at all.
nikurt pushed a commit that referenced this pull request Apr 28, 2023
At the moment transactions are indefinitely stored on RPC nodes that are not validators (#8878, #6713).

After this commit, nodes without validator keys will not store transactions in the transaction pool at all.
@akashin akashin deleted the tp_non_validator branch June 12, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-congestion Work aimed at ensuring good system performance under congestion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants