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

adds metrics to repair QUIC endpoint #33818

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

behzadnouri
Copy link
Contributor

Problem

monitor repair QUIC endpoint

Summary of Changes

added metrics.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Merging #33818 (580f0a6) into master (6470544) will increase coverage by 0.0%.
The diff coverage is 72.1%.

@@           Coverage Diff            @@
##           master   #33818    +/-   ##
========================================
  Coverage    81.8%    81.9%            
========================================
  Files         809      809            
  Lines      217712   217828   +116     
========================================
+ Hits       178295   178437   +142     
+ Misses      39417    39391    -26     

if let Err(err) = send_request(endpoint, connection, request).await {
error!("send_request: {err:?}")
debug!("send_request: {err:?}");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we output the destination address? That will be useful when examining the logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.


async fn report_metrics_task(name: &'static str, stats: Arc<RepairQuicStats>) {
loop {
tokio::time::sleep(Duration::from_secs(2)).await;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we define the "2" as a constant on the top?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

@lijunwangs lijunwangs left a comment

Choose a reason for hiding this comment

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

lgtm

@behzadnouri behzadnouri merged commit e555a61 into solana-labs:master Oct 25, 2023
17 checks passed
@behzadnouri behzadnouri deleted the repair-quic-metrics branch October 25, 2023 18:59
@behzadnouri behzadnouri added the v1.17 PRs that should be backported to v1.17 label Oct 25, 2023
mergify bot pushed a commit that referenced this pull request Oct 25, 2023
mergify bot added a commit that referenced this pull request Oct 25, 2023
)

adds metrics to repair QUIC endpoint (#33818)

(cherry picked from commit e555a61)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
anwayde pushed a commit to firedancer-io/solana that referenced this pull request Nov 16, 2023
…33818) (solana-labs#33868)

adds metrics to repair QUIC endpoint (solana-labs#33818)

(cherry picked from commit e555a61)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
anwayde pushed a commit to firedancer-io/solana that referenced this pull request Nov 16, 2023
…33818) (solana-labs#33868)

adds metrics to repair QUIC endpoint (solana-labs#33818)

(cherry picked from commit e555a61)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.17 PRs that should be backported to v1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants