You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/06/20 08:54:38 UTC

[GitHub] [ozone] szetszwo opened a new pull request #2350: HDDS-5355. In ContainerStateMachine, share the executor threads between the containers.

szetszwo opened a new pull request #2350:
URL: https://github.com/apache/ozone/pull/2350


   ## What changes were proposed in this pull request?
   
   ```
   //ContainerStateMachine
     private ExecutorService getCommandExecutor(
         ContainerCommandRequestProto requestProto) {
       int executorId = (int)(requestProto.getContainerID() % executors.length);
       return executors[executorId];
     }
   
   ```
   In the code above, different containers having the same remainder (mod executors.length ) will use the same executor even if some other executors are idle.  Ideally, different containers should use a different executor if there are executors available.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5355
   
   ## How was this patch tested?
   
   Existing unit tests.


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

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


[GitHub] [ozone] szetszwo commented on pull request #2350: HDDS-5355. In ContainerStateMachine, share the executor threads between the containers.

Posted by GitBox <gi...@apache.org>.
szetszwo commented on pull request #2350:
URL: https://github.com/apache/ozone/pull/2350#issuecomment-866650410


   Thanks @bshashikant for reviewing this and @adoroszlai for merging 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.

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


[GitHub] [ozone] adoroszlai merged pull request #2350: HDDS-5355. In ContainerStateMachine, share the executor threads between the containers.

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #2350:
URL: https://github.com/apache/ozone/pull/2350


   


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

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