Skip to content

Metrics: batch_duration vs process_duration #565

Answered by kemingy
secsilm asked this question in Q&A
Discussion options

You must be logged in to vote
  • batch_duration: gathering tasks for one batch (count start from receiving the 1st task)
  • process_duration: from sending the batch to receiving the results of the batch (including IPC time)

You can check the concept.

Assuming we only have one stage, does batch_duration refer to the time from receiving the first request to returning all requests? Then what time does process_duration include? What is the relationship between them?

requests => batched requests => sending to worker => worker process => receiving from worker => send results to clients

batch_duration + process_duration is roughly (could be less if there are too many requests waiting to be processed) the time spent inside the…

Replies: 1 comment 2 replies

Comment options

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

@kemingy
Comment options

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