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

Separate tpu vote port #20007

Closed
wants to merge 12 commits into from
Closed

Separate tpu vote port #20007

wants to merge 12 commits into from

Conversation

sakridge
Copy link
Member

Problem

Votes can get effectively de-prioritized in the regular transaction queue.

Summary of Changes

Add a special vote-only TPU port.

Fixes #

@mvines
Copy link
Member

mvines commented Sep 19, 2021

I'd add tpu_vote into here as well:

fn verify_reachable_ports(

@sakridge
Copy link
Member Author

I'd add tpu_vote into here as well:

fn verify_reachable_ports(

added, thanks

@codecov
Copy link

codecov bot commented Sep 19, 2021

Codecov Report

Merging #20007 (e80264d) into v1.6 (572c0af) will decrease coverage by 0.0%.
The diff coverage is 93.8%.

@@            Coverage Diff            @@
##             v1.6   #20007     +/-   ##
=========================================
- Coverage    82.4%    82.4%   -0.1%     
=========================================
  Files         426      426             
  Lines      119288   119433    +145     
=========================================
+ Hits        98338    98432     +94     
- Misses      20950    21001     +51     

core/src/tpu.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
core/src/cluster_info_vote_listener.rs Show resolved Hide resolved
core/src/banking_stage.rs Outdated Show resolved Hide resolved
runtime/src/bank.rs Outdated Show resolved Hide resolved
core/src/banking_stage.rs Outdated Show resolved Hide resolved
Copy link
Member

@jstarry jstarry left a comment

Choose a reason for hiding this comment

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

Can you also expose the tpu votes port in the dockerfile?

core/src/banking_stage.rs Outdated Show resolved Hide resolved
} else {
// Disable forwarding of vote transactions, as votes are gossiped
(verified_vote_receiver.clone(), false)
let (verified_receiver, enable_forwarding) = match i.cmp(&(num_threads - 2)) {
Copy link
Member

Choose a reason for hiding this comment

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

The compare match is pretty convoluted, how about 0 is the gossip vote receiver, 1 is the tpu vote receiver and the rest of the indices are for normal banking threads?

Copy link
Member

Choose a reason for hiding this comment

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

@taozhu-chicago ping on this

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed this: d3f16f3

core/src/banking_stage.rs Outdated Show resolved Hide resolved
core/src/tpu.rs Outdated Show resolved Hide resolved
core/src/tpu.rs Outdated Show resolved Hide resolved
sdk/src/feature_set.rs Outdated Show resolved Hide resolved
core/src/banking_stage.rs Outdated Show resolved Hide resolved
core/src/banking_stage.rs Outdated Show resolved Hide resolved
core/src/cluster_info.rs Show resolved Hide resolved
core/src/contact_info.rs Show resolved Hide resolved
@tao-stones
Copy link
Contributor

Can you also expose the tpu votes port in the dockerfile?

added 8009/udp to sdk/docker-solana/Dockerfile

@sakridge
Copy link
Member Author

Merged in v1.7

@sakridge sakridge closed this Oct 13, 2021
@sakridge sakridge deleted the tpu-vote branch October 13, 2021 07:58
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