[2.0.x] changing dispatcher thread pool / akka thread pool settings

371 views
Skip to first unread message

mrak

unread,
Oct 25, 2012, 12:59:27 PM10/25/12
to play-fr...@googlegroups.com
How can I do that?
Is there any reference of properties I can override in application.conf? 
There is this: http://www.playframework.org/documentation/2.0/AkkaCore, but I'm not sure how can I possibly override this values as they seem buried in reference.conf which is HOCON and not plain key-value. 

I'm generally not sure how I can use hocon format instead of key-value for application.conf so I'd appreciate any help with this.

Would play-1.* properties (like play.pool/jobs.pool) work?

cheers,
mrak

Nick Fisher

unread,
Oct 25, 2012, 1:30:34 PM10/25/12
to play-fr...@googlegroups.com
All of the settings in the link you provided can be overridden, they exist in reference.conf as defaults.  The Typesafe config library will merge your keys with the defaults, giving your's precedence.  Contrived example:

If you want to override the default actions dispatcher to have a higher parallelism factor, you would add this to your application.conf:

play {
  akka {
    actor {
      actions-dispatcher {
        parallelism-factor = 5.0
      }
    }
  }
}

All other Akka settings would stay the same, it just replaces the specific key that you overrode.

mrak

unread,
Oct 25, 2012, 4:18:32 PM10/25/12
to play-fr...@googlegroups.com
oh, it's that simple...
works well, thanks a bunch!
Reply all
Reply to author
Forward
0 new messages