You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by GitBox <gi...@apache.org> on 2023/01/13 13:08:17 UTC

[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1163: [CELEBORN-223] The default rpc thread num of pushServer/replicateServer/fetchServer should be the number of total of Flusher's thread

waitinfuture commented on code in PR #1163:
URL: https://github.com/apache/incubator-celeborn/pull/1163#discussion_r1069424961


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -133,15 +137,19 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
       logInfo("Celeborn will ignore cluster settings" +
         " about fs.hdfs.impl.disable.cache and set it to false")
       StorageManager.hadoopFs = FileSystem.get(hdfsConfiguration)
-      Some(new HdfsFlusher(
-        workerSource,
-        conf.hdfsFlusherThreads,
-        conf.avgFlushTimeSlidingWindowSize,
-        conf.avgFlushTimeSlidingWindowMinCount))
+      (
+        Some(new HdfsFlusher(
+          workerSource,
+          conf.hdfsFlusherThreads,
+          conf.avgFlushTimeSlidingWindowSize,
+          conf.avgFlushTimeSlidingWindowMinCount)),
+        conf.hdfsFlusherThreads)
     } else {
-      None
+      (None, 0)
     }
 
+  def totalFlusherThread: Int = _totalHdfsFlusherThread + _totalHdfsFlusherThread

Review Comment:
   _totalLocalFlusherThread



-- 
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@celeborn.apache.org

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