Luis Fernandez
11/09/2021, 6:08 PM2021-11-09 12:53:00
Slow query: request handler processing time: 441, send response latency: 1, total time to handle request: 442
2021-11-09 12:53:00
Processed requestId=1975257,table=etsyads_metrics_REALTIME,segments(queried/processed/matched/consuming)=46/46/46/1,schedulerWaitMs=0,reqDeserMs=0,totalExecMs=441,resSerMs=0,totalTimeMs=441,minConsumingFreshnessMs=1636480380211,broker=Broker_pinot-broker-1.pinot-broker-headless.pinot.svc.cluster.local_8099,numDocsScanned=20584,scanInFilter=0,scanPostFilter=123504,sched=fcfs,threadCpuTimeNs=0
i was able to then find the request id in the broker and got some more info:
requestId=1976569,table=ads_metrics_REALTIME,timeMs=234,docs=17731/290711208,entries=0/106386,segments(queried/processed/matched/consuming/unavailable):46/46/46/1/0,consumingFreshnessTimeMs=1636480906334,servers=1/1,groupLimitReached=false,brokerReduceTimeMs=0,exceptions=0,serverStats=(Server=SubmitDelayMs,ResponseDelayMs,ResponseSize,DeserializationTimeMs,RequestSentDelayMs);pinot-server-1_R=0,233,7479,0,-1,offlineThreadCpuTimeNs=0,realtimeThreadCpuTimeNs=0,query=SELECT product_id, SUM(click_count), SUM(impression_count), SUM(cost), SUM(order_count), SUM(revenue) FROM ads_metrics WHERE user_id = 13133627 AND serve_time BETWEEN 1633924800 AND 1636520399 GROUP BY product_id LIMIT 6000
is there any way i could tell from these logs why this is being slow (?) only thing I can see is the scanPostFilter=123504 which may happen because of the group by i believe we currently do not have any indexes into that product_id column, would adding one speed up things in any way?Richard Startin
11/09/2021, 6:17 PMjcmd <pid> JFR.start duration=60s filename=server.jfr then copy the jfr file off the box? or if you have async-profiler installed already that would be betterLuis Fernandez
11/09/2021, 6:19 PMRichard Startin
11/09/2021, 6:25 PMRichard Startin
11/09/2021, 6:25 PMRichard Startin
11/09/2021, 6:25 PMRichard Startin
11/09/2021, 6:26 PMLuis Fernandez
11/09/2021, 6:48 PMLuis Fernandez
11/09/2021, 6:48 PMLuis Fernandez
11/09/2021, 6:48 PMpidof java can i do that lolLuis Fernandez
11/09/2021, 6:48 PMps aux in this machineLuis Fernandez
11/09/2021, 6:48 PMRichard Startin
11/09/2021, 6:54 PMLuis Fernandez
11/09/2021, 6:55 PMLuis Fernandez
11/09/2021, 6:55 PMRichard Startin
11/09/2021, 7:22 PMRichard Startin
11/09/2021, 7:23 PMLuis Fernandez
11/09/2021, 9:54 PMLuis Fernandez
11/09/2021, 9:54 PMRichard Startin
11/09/2021, 10:14 PMRichard Startin
11/09/2021, 10:15 PMRichard Startin
11/09/2021, 10:15 PMLuis Fernandez
11/10/2021, 2:37 PMRichard Startin
11/10/2021, 4:03 PM