Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5355

In ContainerStateMachine, share the executor threads between the containers

    XMLWordPrintableJSON

Details

    Description

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

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: