Giter Club home page Giter Club logo

Comments (10)

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024 1

Read Latency or Transaction Latency?

for my understanding,
the Read Latency means the time diff between we send the envelope to orderer and the block event from peer grpc.
the Transaction Latency means the time diff between we send the envelope to orderer and the block confirmed at all peers configed in #43 ?

Read Latency
Read Latency = Time when response received – submit time
Read latency is the time between when the read request is submitted and when the reply is
received.

Transaction Latency
Transaction Latency = (Confirmation time @ network threshold) – submit time
Transaction Latency is a network-wide view of the amount of time taken for a transaction’s
effect to be usable across the network. The measurement includes the time from the point
that it is submitted to the point that the result is widely available in the network. This includes
the propagation time and any settling time due to the consensus mechanism in place.
To account for both of those factors and give the network-wide view, the delay should be
measured using all nodes in the SUT. Eyal et al provide a helpful definition for the amount of
time for a percentage of the network to commit the transaction1, which we have simplified
somewhat here. The latter part of this definition, the percentage of the network, is most
significant for consensus protocols like PoW. In such systems a threshold like 90% may
be desired, whereas in a non-probabilistic protocol like PBFT 100% is the only meaningful
threshold.
This metric is computed per transaction, but in most cases reports should provide various
statistics over all transactions like the average, high, low, and standard deviations.

from tape.

guoger avatar guoger commented on May 30, 2024

I'd say we'll do Transaction Latency first. Read Latency comes after issue #56

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

update issue title, and btw, how we summarize/display for the latency?
one by one tx?
avg/max?

from tape.

stale avatar stale commented on May 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from tape.

stale avatar stale commented on May 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from tape.

stale avatar stale commented on May 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from tape.

dexhunter avatar dexhunter commented on May 30, 2024

Hi just wonder if the submit time in transaction latency equals the start of broadcasting?

edit: so the latency time should be the same as receivedTime in observer.go?

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

#262, how about we create two matrix and integrated with prometheus to show up latency?
@guoger

from tape.

SamYuan1990 avatar SamYuan1990 commented on May 30, 2024

@guoger , @dexhunter , I just updated Tape with prometheus to report read latency and tx latency for p50, p90 and p99. please let me know if we are able to close this issue by prometheus supported. It looks like:
TapeLatency

from tape.

stale avatar stale commented on May 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from tape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.