xichen01 opened a new pull request, #6655:
URL: https://github.com/apache/ozone/pull/6655

   ## What changes were proposed in this pull request?
   - The current `DatanodeDetails.Port` of Ozone has a lot of ports, which will 
cause greater serialization and deserialization pressure (Port#Name is of 
String type) and may cause high memory consumption.
   - When reading/writing an object, most ports are not required,
   - This PR will allow the client to declare the required ports when 
**writing** a request, so that SCM does not need to return all ports to the 
client.
   
   
   RpcClient.java
   ```java
     private static final List<PortName> IO_PORTS =
         ImmutableList.of(PortName.PORTNAME_STANDALONE, 
PortName.PORTNAME_RATIS);
   ```
   Can enable this feature by this configuration (default value is `false`)
   ```xml
   ozone.client.limit.port.enable
   ```
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-10804
   
   ## How was this patch tested?
   Unit test. Existing test


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