Explanation of Akka Thread Pool Artist Configuration Parameters

As I understand it, fork-join-executor is the default dispatcher when non is provided when creating the actor system. Can someone explain the following to me:

fork-join-executor {
        # Min number of threads to cap factor-based parallelism number to
        parallelism-min = 8

        # The parallelism factor is used to determine thread pool size using the
        # following formula: ceil(available processors * factor). Resulting size
        # is then bounded by the parallelism-min and parallelism-max values.
        parallelism-factor = 3.0

        # Max number of threads to cap factor-based parallelism number to
        parallelism-max = 64

        # Setting to "FIFO" to use queue like peeking mode which "poll" or "LIFO" to use stack
        # like peeking mode which "pop".
        task-peeking-mode = "FIFO"
      }

Although I understand every word, I do not understand the full semantics of what is explained here.

  • What does ceil mean? in ceil (coefficient of available processors *)
  • What does factor-based parallelism mean?

- -, . , , , akka, threadPoolexecutor, . , 2 , 4 . , . , , . .

, - ( ), .

+4
1

akka Viktor Klang: ForkJoinPool JDK, .

+3

Source: https://habr.com/ru/post/1611196/


All Articles