Hi Karthik,

The three numbers will boil down to a single number when the fork join
dispatcher is created and does not change over it's lifetime. That number
is based on number-of-cores * factor, the resulting number is then bounded
using the min and max values. So with your example it would be 4.0 * 8
cores = 32, which is not lower than 4 and not higher than 64 so the end
number would be 32 threads.

--
Johan Andrén
Akka Team, Lightbend Inc.



On Wed, Mar 2, 2016 at 4:34 PM, karthik annamalai <[email protected]>
wrote:

> I am a newbie to akka, so please excuse me if this sounds like a dumb
> question.
> I am trying to understand akka's default dispatcher configuration with
> fork-join-pool executor.
>
> I have 8 core cpu and this is my dispatcher configuration,
>
> akka.actor.default-dispatcher {
>
>     fork-join-executor {
>
>         parallelism-factor = 4.0
>
>         parallelism-min = 4
>
>         parallelism-max = 64
>
>     }
>
> }
>
>
> My understanding is the with the above configuration is,
>
>
> base-no of threads that will be created = (8 * 4.0) ~ 32 threads
>
> min-no of threads to keep alive = 4 threads
>
> max-no of threads that can ever be created = 64 threads
>
>
> Is this correct ?
>
>
> I am finding contradicting informations the net like the max-no of threads
> that can be created will be (parallelism-max * factor) ~  (64 * 4.0) = 256
> threads.
>
> Could someone please explain what does parallelism-max and parallelism-min
> numbers mean ?
>
>
> Also on the startup, will the base-no of threads or min-no of threads be
> created ?
>
>
> Thanks in advance.
>
>
>
>
>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to