Re: [akka-user] Can't configure min thread number

2017-04-03 Thread Patrik Nordwall
Fork Join Pool will not pre-allocate threads. It will also stop threads when they are not used. That configuration is correct, it will allocate up to 50 threads (possibly more if you use some special Scala constructs). If the reason for 50 threads is that you are doing blocking I strongly advice t

Re: [akka-user] Cluster Singleton Migration

2017-04-03 Thread Patrik Nordwall
This is correct. Is this a suggestion for documentation improvement? PR is welcome. /Patrik mån 3 apr. 2017 kl. 18:59 skrev Justin du coeur : > Hmm. Could be. I suspect they'd welcome a PR to that effect... > > On Mon, Apr 3, 2017 at 11:56 AM, Mushtaq Ahmed > wrote: > > Thanks, that makes sens

Re: [akka-user] [Akka/Java] Scala exception when updating maven dependencies

2017-04-03 Thread Patrik Nordwall
You must use the same version for all Akka artifacts, e.g. 2.12_2.4.17 for everything. Cluster-metrics exists for that version. Akka 2.4.x is released for Scala 2.11 and 2.12 but you have to pick one and don't mix. /Patrik mån 3 apr. 2017 kl. 20:33 skrev Mark McShane : > I'm working on a project

[akka-user] Seed node shutdown/restart and Cluster rejoin

2017-04-03 Thread Unmesh Joshi
Hi, As of now, if seed node is shutdown by SIGINT (or doing Crtl-C), it leaves the cluster gracefully. This means it is removed from the membership list on all the other nodes in the cluster. If such a seed node is restarted, there is not way for it to re-join the cluster, unless there is anoth

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread kraythe
Roland, I am doing that with the low level API right now and it mostly works. Its just unfortunate I dont have access to the tools in the DSL inside the actor because my paths to validation of the logic are quite a bit more rich than a simple determination of whether the attribute is present i

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread Roland Kuhn
Hi Robert, since a Route is just a function from request to future of response you can easily achieve all that you describe, delegating as much or as little as you wish to actors via the ask pattern (delegating via a parent actor whose ref is known to the route). Commonly extracted metadata are

[akka-user] [Akka/Java] Scala exception when updating maven dependencies

2017-04-03 Thread Mark McShane
I'm working on a project making use of various Akka modules in Java (akka-actor, akka-remote etc.). These modules were loaded in as dependencies through maven, each version being around Akka 2.10:3.9. I left the dependencies at these versions as I figured "If it ain't broke then don't fix it",

[akka-user] Re: question on Akka concurrency and ForkJoinPool

2017-04-03 Thread kraythe
In akka, the dispatcher manages the threads for you. Most akka systems ignore the existence of the thread pool entirely except when a third party library requires an execution context or something and even then the best practice is to just reference the dispatcher. That aside, since the dispat

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread kraythe
Yes I know routes can be concatenated from several sources. I addressed that in my original post. It doesn't take away from the core thrust. Even the determination of whether an endpoint ends up in a bad request or an ok or a forbidden could take a significant amount of logic to determine in the

[akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread kraythe
About tone, I am very matter of fact and blunt. Its not intended to offend, just be more efficient. Sorry if you took it badly. Ok I reviewed the artilce, In fact I thought i had linked that one. It still leaves a lot of information in the route itself and is still rather simplistic. For examp

[akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread kraythe
There was no intention in the tone, sorry if it came across that way. It just feels like there is an issue. I will check out the article, thanks. On Monday, April 3, 2017 at 10:52:05 AM UTC-5, Ryan Tanner wrote: > > Leaving aside the tone of this post... > > Have you looked at the longer example

Re: [akka-user] Cluster Singleton Migration

2017-04-03 Thread Justin du coeur
Hmm. Could be. I suspect they'd welcome a PR to that effect... On Mon, Apr 3, 2017 at 11:56 AM, Mushtaq Ahmed wrote: > Thanks, that makes sense. But maybe the documentation of cluster-singleton > is a bit misleading and should be reworded. > > > On Monday, April 3, 2017 at 9:04:30 PM UTC+5:30,

Re: [akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread Robert Wills
If you have lots of endpoints and you want to split them up into multiple files you can do that using the dsl. http://stackoverflow.com/questions/34514372/akka-http-with-multiple-route-configurations/34516168#34516168 I don't think your proposal is a good idea. On Mon, Apr 3, 2017 at 4:52 PM, 'R

Re: [akka-user] Cluster Singleton Migration

2017-04-03 Thread Mushtaq Ahmed
Thanks, that makes sense. But maybe the documentation of cluster-singleton is a bit misleading and should be reworded. On Monday, April 3, 2017 at 9:04:30 PM UTC+5:30, Arno Haase wrote: > > When you kill a JVM running a cluster node, it becomes 'unreachable'. > The other nodes in the cluster hav

[akka-user] Re: Has akka-http has abandoned per request actors in favor an anti-pattern DSL?

2017-04-03 Thread 'Ryan Tanner' via Akka User List
Leaving aside the tone of this post... Have you looked at the longer example of the DSL? http://doc.akka.io/docs/akka-http/current/scala/http/routing-dsl/index.html#longer-example It has examples of how to delegate an endpoint's business logic off to actors or futures. On Sunday, April 2, 2017

Re: [akka-user] Cluster Singleton Migration

2017-04-03 Thread Arno Haase
When you kill a JVM running a cluster node, it becomes 'unreachable'. The other nodes in the cluster have no way of knowing whether this is permanent or temporary (e.g. network congestion). In order for a singleton to be started on another node, the node it was running on must be moved to state "d

[akka-user] Cluster Singleton Migration

2017-04-03 Thread Mushtaq Ahmed
Hello! Doc on cluster singleton mention that even in case of JVM crash, singletons will be successfully started on other nodes: "The cluster failure detector will notice when oldest node becomes unreachable due to things li

[akka-user] question on Akka concurrency and ForkJoinPool

2017-04-03 Thread kant kodali
Hi All, I came across this paper and I quoting the paragraph below where I have the question. The author seems to suggest JVM threads are different from the threads used by Akka kernel ? I am not sure what is the diffe

[akka-user] Detect Content-Type with a Source[ByteString]

2017-04-03 Thread Victor
Hi, I've created the following service: Encrypted file + | Uploaded to | +-v-+ | | | Amazon S3 | | | +---^---+---+ Receive resp and return | | HttpResponse(enti