You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@impala.apache.org by Philipp Krause <ph...@googlemail.com> on 2018/08/10 10:53:56 UTC
How to measure network traffic for a query?
Hi!
I would like to measure the network traffic for a query (total bytes
streamed across the cluster). I came across the
impala_query_bytes_streamed_rate metric but unfortunately it says "no
data" after query execution.
Query: select impala_query_bytes_streamed_rate
What am I doing wrong? Do I have other possibilities?
Best regards
Philipp Krause
Re: How to measure network traffic for a query?
Posted by Philipp Krause <ph...@googlemail.com>.
Hi,
right now I'm trying to do this manually by analyzing the query profile.
But maybe you can help me with the following exchange snippet:
EXCHANGE_NODE (id=8):(Total: 824.038ms, non-child: 824.038ms, %
non-child: 100.00%)
- ConvertRowBatchTime: 4.000ms
- PeakMemoryUsage: 13.04 MB (13672086)
- RowsReturned: 170.86K (170858)
- RowsReturnedRate: 207.34 K/sec
Buffer pool:
- AllocTime: 12.000ms
- CumulativeAllocationBytes: 26.27 MB (27541504)
- CumulativeAllocations: 338 (338)
- PeakReservation: 12.64 MB (13254656)
- PeakUnpinnedBytes: 0
- PeakUsedReservation: 12.64 MB (13254656)
- ReadIoBytes: 0
- ReadIoOps: 0 (0)
- ReadIoWaitTime: 0.000ns
- WriteIoBytes: 0
- WriteIoOps: 0 (0)
- WriteIoWaitTime: 0.000ns
Dequeue:
- FirstBatchWaitTime: 820.037ms
- TotalBytesDequeued: 21.18 MB (22211540)
- TotalGetBatchTime: 820.037ms
- DataWaitTime: 820.037ms
Enqueue:
- DeserializeRowBatchTime: 72.003ms
- TotalBatchesEnqueued: 169 (169)
- TotalBatchesReceived: 169 (169)
- TotalBytesReceived: 14.39 MB (15092893)
- TotalEarlySenders: 0 (0)
- TotalEosReceived: 6 (6)
- TotalHasDeferredRPCsTime: 17s405ms
- TotalRPCsDeferred: 89 (89)
TotalBytesReceived: 14.39 MB were received from the DatastreamSenders.
Is FirstBatchWaitTime the time the exchange received the first batch and
can start working with it without waiting for the complete amount of
batches? So FirstBatchWaitTime is the network time from the first
(compressed) batch sent to the first batch received? Does it already
include the DeserializeRowBatchTime? DataWaitTime is the complete
network time for all batches? Please correct me if I'm mistaken. I would
like to get the time for the exchange data sent over network.
I hope you can help me with that. Thank you very much!
Best regards
Philipp Krause
Am 16.08.2018 um 23:00 schrieb Tim Armstrong:
> Hey,
> It looks like this got neglected. Maybe Lars or Michael knows the answer?
>
> - Tim
>
> On Fri, Aug 10, 2018 at 3:53 AM, Philipp Krause
> <philippkrause.mail@googlemail.com
> <ma...@googlemail.com>> wrote:
>
> Hi!
>
> I would like to measure the network traffic for a query (total
> bytes streamed across the cluster). I came across the
> impala_query_bytes_streamed_rate metric but unfortunately it says
> "no data" after query execution.
>
> Query: select impala_query_bytes_streamed_rate
>
> What am I doing wrong? Do I have other possibilities?
>
> Best regards
> Philipp Krause
>
>
Re: How to measure network traffic for a query?
Posted by Tim Armstrong <ta...@cloudera.com>.
Hey,
It looks like this got neglected. Maybe Lars or Michael knows the answer?
- Tim
On Fri, Aug 10, 2018 at 3:53 AM, Philipp Krause <
philippkrause.mail@googlemail.com> wrote:
> Hi!
>
> I would like to measure the network traffic for a query (total bytes
> streamed across the cluster). I came across the
> impala_query_bytes_streamed_rate metric but unfortunately it says "no
> data" after query execution.
>
> Query: select impala_query_bytes_streamed_rate
>
> What am I doing wrong? Do I have other possibilities?
>
> Best regards
> Philipp Krause
>
>