gortiz commented on code in PR #16939:
URL: https://github.com/apache/pinot/pull/16939#discussion_r2401172295


##########
pinot-broker/src/main/java/org/apache/pinot/broker/grpc/BrokerGrpcServer.java:
##########
@@ -168,6 +169,15 @@ private void registerBufferMetrics(PooledByteBufAllocator 
bufAllocator, BrokerMe
     
brokerMetrics.setOrUpdateGlobalGauge(BrokerGauge.GRPC_NETTY_POOLED_CACHE_SIZE_NORMAL,
 metric::normalCacheSize);
     
brokerMetrics.setOrUpdateGlobalGauge(BrokerGauge.GRPC_NETTY_POOLED_THREADLOCALCACHE,
 metric::numThreadLocalCaches);
     
brokerMetrics.setOrUpdateGlobalGauge(BrokerGauge.GRPC_NETTY_POOLED_CHUNK_SIZE, 
metric::chunkSize);
+    // Notice here we are using 
io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent instead of
+    // io.netty.util.internal.PlatformDependent because gRPC shades Netty to 
avoid version conflicts.
+    // This also means it uses a different pool of direct memory and a 
different setting of max direct memory.
+    //
+    // Also notice these two metrics are also set by GrpcQueryService. Both 
are set to the same value, so it
+    // doesn't matter which one _wins_ in the metrics system.

Review Comment:
   we could, but this way they are only set if the specific service is started. 
Remember that customers can disable different protocols.
   
   and also it doesn't hurt, given they metrics api is prepared for this



-- 
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