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

   First this PR refactor our current server init logic a bit. 
`ServerBuilder.forPort(port)` will load the first implementation in the 
classpath which is almost always to be NettyServerBuilder but it is good to 
make it more deterministic. Also we don't really enforce 
`maxInboundMessageSize` when using ServerBuilder so fix this small bug along 
the way.
   
   Adding metrics for grpc server similar as we did for query server 
([ref](https://sourcegraph.com/github.com/apache/pinot/-/blob/pinot-core/src/main/java/org/apache/pinot/core/transport/QueryServer.java?L125-132)),
 right now we pass in default pooled allocator but can later use a different 
implementation.
   
   I am also using a dedicate set of metrics for grpc netty, but can also reuse 
the same set of metrics from query server.
   
   ## testing
   send a query that shall return large grpc response. Can see the newly added 
direct memory goes up
   ![Screenshot 2025-04-23 at 11 58 40 
AM](https://github.com/user-attachments/assets/d3a241c4-3f25-4246-a37a-8dd8d305997e)
   
   meanwhile old direct memory metrics for query server is still flat.
   ![Screenshot 2025-04-23 at 11 58 46 
AM](https://github.com/user-attachments/assets/855b0c34-d3d3-45fe-8bf0-69a8ebf4b619)
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to