You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "xBis7 (via GitHub)" <gi...@apache.org> on 2023/02/20 12:21:50 UTC

[GitHub] [ozone] xBis7 commented on a diff in pull request #4044: HDDS-7517. Register OM-S3G gRPC performance metrics

xBis7 commented on code in PR #4044:
URL: https://github.com/apache/ozone/pull/4044#discussion_r1111876394


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/GrpcOzoneManagerServer.java:
##########
@@ -91,9 +97,15 @@ public void init(OzoneManagerProtocolServerSideTranslatorPB omTranslator,
                    CertificateClient caClient) {
     NettyServerBuilder nettyServerBuilder = NettyServerBuilder.forPort(port)
         .maxInboundMessageSize(maxSize)
-        .addService(new OzoneManagerServiceGrpc(omTranslator,
-            delegationTokenMgr,
-            omServerConfig));
+        .maxConnectionIdle(CLIENT_TIMEOUT_SECS, TimeUnit.SECONDS)

Review Comment:
   @neils-dev I get that there is great advantage to keeping the client connections open, instead of opening and closing them per request as hRPC does, but IMHO there should be a long timeout. We can't keep resources occupied forever if there isn't traffic for over 30 minutes.
   
   If we were using `ManagedChannel`, every trasport connection would be closed after 30 mins of inactivity as a default. With the `NettyServer` there is no timeout and we are holding resources forever. I think we should also have a 30 min timeout per transport. If a client is idle for such time, we shouldn't keep the connection open.



-- 
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: issues-unsubscribe@ozone.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org