Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion changing dispatcher thread pool / akka thread pool settings

Received: by 10.52.27.164 with SMTP id u4mr7056289vdg.8.1351186241550;
        Thu, 25 Oct 2012 10:30:41 -0700 (PDT)
X-BeenThere: play-framework@googlegroups.com
Received: by 10.52.67.52 with SMTP id k20ls3924071vdt.1.gmail; Thu, 25 Oct
 2012 10:30:34 -0700 (PDT)
Received: by 10.52.71.38 with SMTP id r6mr3846063vdu.12.1351186234504;
        Thu, 25 Oct 2012 10:30:34 -0700 (PDT)
Date: Thu, 25 Oct 2012 10:30:34 -0700 (PDT)
From: Nick Fisher <nfisher...@gmail.com>
To: play-framework@googlegroups.com
Message-Id: <14aa9a91-e25d-4153-858e-0bf8588f82df@googlegroups.com>
In-Reply-To: <cfd3b31d-a132-428d-b815-691bd614c344@googlegroups.com>
References: <cfd3b31d-a132-428d-b815-691bd614c344@googlegroups.com>
Subject: Re: [2.0.x] changing dispatcher thread pool / akka thread pool
 settings
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1231_3436230.1351186234030"

------=_Part_1231_3436230.1351186234030
Content-Type: multipart/alternative; 
	boundary="----=_Part_1232_5555658.1351186234030"

------=_Part_1232_5555658.1351186234030
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

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.

On Thursday, October 25, 2012 12:59:27 PM UTC-4, mrak wrote:
>
> 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
>

------=_Part_1232_5555658.1351186234030
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

All of the settings in the link you provided can be overridden, they exist =
in reference.conf as defaults. &nbsp;The Typesafe config library will merge=
 your keys with the defaults, giving your's precedence. &nbsp;Contrived exa=
mple:<div><br></div><div>If you want to override the default actions dispat=
cher to have a higher parallelism factor, you would add this to your applic=
ation.conf:</div><div><br></div><div>play {</div><div>&nbsp; akka {</div><d=
iv>&nbsp; &nbsp; actor {</div><div>&nbsp; &nbsp; &nbsp; actions-dispatcher =
{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; parallelism-factor =3D 5.0</div><di=
v>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div>=
<div>}</div><div><br></div><div>All other Akka settings would stay the same=
, it just replaces the specific key that you overrode.</div><div><div><br>O=
n Thursday, October 25, 2012 12:59:27 PM UTC-4, mrak wrote:<blockquote clas=
s=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #c=
cc solid;padding-left: 1ex;">How can I do that?<div>Is there any reference =
of properties I can override in application.conf?&nbsp;</div><div>There is =
this:&nbsp;<a href=3D"http://www.playframework.org/documentation/2.0/AkkaCo=
re" target=3D"_blank">http://www.<wbr>playframework.org/<wbr>documentation/=
2.0/AkkaCore</a>, but I'm not sure how can I possibly override this values =
as they seem&nbsp;buried&nbsp;in reference.conf which is HOCON and not plai=
n key-value.&nbsp;</div><div><br></div><div>I'm generally not sure how I ca=
n use hocon format instead of key-value for application.conf so I'd appreci=
ate any help with this.</div><div><br></div><div>Would play-1.* properties =
(like play.pool/jobs.pool) work?</div><div><br></div><div>cheers,</div><div=
>mrak</div></blockquote></div></div>
------=_Part_1232_5555658.1351186234030--

------=_Part_1231_3436230.1351186234030--