vrajat opened a new pull request, #15018:
URL: https://github.com/apache/pinot/pull/15018

   Fix for #15017 
   
   The o/p of the api is not easily machine readable. An example o/p is:
   
   
(Server=NumInFlightRequests,NumInFlightRequestsEMA,LatencyEMA,Score);Server_100.81.71.117_7050=0,6.349956168651998E-148,2.5324251579231667E-148,0.0;Server_100.81.71.117_7051=0,6.150450664351991E-147,5.482000636051586E-147,0.0;Server_100.81.71.117_7052=0,6.861196743124505E-148,2.526062961096265E-148,0.0;Server_100.81.71.117_7053=0,3.343930442767001E-147,5.466877618135145E-145,0.0
   Instead return a json since its more easily analyzed using scripts. For 
example, the following json o/p of the same data:
   
   {
     "Server_100.81.71.117_7050": {
       "latencyEMA": 2.6305286728948865,
       "numInFlightRequests": 10,
       "inFlightRequestsEMA": 10.83252545140485,
       "hybridScore": 23783.118690453754
     },
     "Server_100.81.71.117_7051": {
       "latencyEMA": 2.546575260838141,
       "numInFlightRequests": 10,
       "inFlightRequestsEMA": 10.832524167798587,
       "hybridScore": 23024.07539269138
     },
     "Server_100.81.71.117_7052": {
       "latencyEMA": 2.8777880660250883,
       "numInFlightRequests": 10,
       "inFlightRequestsEMA": 10.83252545140485,
       "hybridScore": 26018.638703878878
     },
     "Server_100.81.71.117_7053": {
       "latencyEMA": 1603.1813971374418,
       "numInFlightRequests": 0,
       "inFlightRequestsEMA": 18.5040581516264,
       "hybridScore": 10157424.86651867
     }
   }
       "numInFlightRequests": 19,
       "inFlightRequestsEMA": 18.5040581516264,
       "hybridScore": 105090.32926319409
     }
   }
   Can be processed by shell scripts to create csv files and plot them.
   
   This change is backward-incompatible. However this is a debug API.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to