Skip to content

Raft write issues - weird 40ms blocking #1170

Answered by sebadob
sebadob asked this question in Q&A
Discussion options

You must be logged in to vote

I am using openraft-0.9.13.

I tested on 2 different machines, both linux:

  • Alma Linux 9.4 with kernel 5.14.0-427.24.1.el9_4.x86_64
  • Fedora 40 with kenrel 6.9.8-200.fc40.x86_64

I added more Instant-checks in a few places for additional debugging. I was using reqwest with connection pooling before which was a huge improvement over single HTTP calls from my very first testing to really understand what openraft is doing and how. In the end, the spikes were actually coming from reqwest, most probably an internal lock for the connection pool, because it did never happen without sending heavy loads.

I ended up with writing a lower level WebSocket impl with the fastwebsockets crate for the Raft i…

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
9 replies
@sebadob
Comment options

@ariesdevil
Comment options

@drmingdrmer
Comment options

@sebadob
Comment options

Answer selected by sebadob
@drmingdrmer
Comment options

Comment options

You must be logged in to vote
2 replies
@drmingdrmer
Comment options

@sebadob
Comment options

Comment options

You must be logged in to vote
2 replies
@drmingdrmer
Comment options

@sebadob
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants