Hi again,

Akka 2.3-M2 has been released and the cluster samples are packaged in this
zip file (later to become real activator templates):
http://downloads.typesafe.com/akka/akka-sample-cluster-scala-2.3-M2.zip

Unzip that and follow the instructions in 'tutorial/index.html'. The
factorial sample is at the end, "Adaptive Load Balancing".
<path to activator dir>/activator can be replaced by sbt

Cheers,
Patrik


On Tue, Dec 10, 2013 at 3:09 PM, Patrik Nordwall
<[email protected]>wrote:

> Thanks, it looks like they join perfectly fine. I have verified the sample
> again and it runs fine for me. I don't know what it can be. We will release
> 2.3-M3 next week and then this sample will be in a self contained zip file.
> I hope you can wait until then, otherwise you can dig further by turning on
> debug logging, and also add your own println to the code to to debug it.
>
> /Patrik
>
>
> On Tue, Dec 10, 2013 at 5:45 AM, Binita <[email protected]> wrote:
>
>>  Here's the console output attached.
>>
>> Thanks
>>
>>
>> On Monday, December 9, 2013 6:35:49 PM UTC+5:30, Patrik Nordwall wrote:
>>
>>> I need to see the log output to be able to help.
>>> /Patrik
>>>
>>>
>>> On Mon, Dec 9, 2013 at 1:01 PM, Binita <[email protected]> wrote:
>>>
>>>> Hi Patrik,
>>>>
>>>> I tried pointing all my akka libs to version "2.3-20131122-230959". No
>>>> luck still..
>>>>
>>>> The FactorialBackend actor's onRecieve is never invoked.I have started
>>>> one instance of FactorialFrontEnd and 5 instances of FactorialBackEnd.
>>>> Appropriate config :
>>>>
>>>> akka.actor.deployment {
>>>>>   /factorialFrontend/factorialBackendRouter = {
>>>>>     router = adaptive-group
>>>>>     metrics-selector = mix
>>>>>     nr-of-instances = 2
>>>>>
>>>>>     routees.paths = ["/user/factorialBackend"]
>>>>>     cluster {
>>>>>       enabled = on
>>>>>       use-role = backend
>>>>>       allow-local-routees = off
>>>>>     }
>>>>>   }
>>>>> }
>>>>>
>>>>
>>>> Any idea why ?
>>>>
>>>> Thanks
>>>>
>>>> On Friday, December 6, 2013 9:28:34 AM UTC+5:30, Binita wrote:
>>>>>
>>>>> Hi Patrik,
>>>>>
>>>>> I am using Akka 2.3-M1. I had started 2 FactorialBackEndNodes and 1
>>>>> FactorialFrontEndNode in the cluster.
>>>>> Below is my Maven dependency:
>>>>>
>>>>> =========================
>>>>>
>>>>>>  <dependency>
>>>>>> <groupId>com.typesafe.akka</groupId>
>>>>>>  <artifactId>akka-actor_2.10</artifactId>
>>>>>> <version>2.3-M1</version>
>>>>>> </dependency>
>>>>>
>>>>>
>>>>>
>>>>>> <dependency>
>>>>>> <groupId>com.typesafe.akka</groupId>
>>>>>>  <artifactId>akka-cluster_2.10</artifactId>
>>>>>> <version>2.3-M1</version>
>>>>>> </dependency>
>>>>>
>>>>>
>>>>>
>>>>>> <dependency>
>>>>>> <groupId>com.typesafe.akka</groupId>
>>>>>>  <artifactId>akka-contrib_2.10</artifactId>
>>>>>> <version>2.3-M1</version>
>>>>>> </dependency>
>>>>>
>>>>> ================================================
>>>>>
>>>>> I will try out the updated code linked by you @
>>>>> https://github.com/akka/akka/tree/496fe8befcc96f1c5096d9733c5477
>>>>> 68e619be12/akka-samples/akka-sample-cluster-java
>>>>>
>>>>> Thanks
>>>>> Binita
>>>>>
>>>>> On Thursday, December 5, 2013 1:04:54 PM UTC+5:30, Patrik Nordwall
>>>>> wrote:
>>>>>>
>>>>>> Hi Binita,
>>>>>>
>>>>>> What version of akka are you using? You are pointing to code in
>>>>>> master.
>>>>>> Try a released version, such as
>>>>>> http://doc.akka.io/docs/akka/2.2.3/java/cluster-usage.html#A
>>>>>> daptive_Load_Balancing
>>>>>> or
>>>>>> http://doc.akka.io/docs/akka/2.3-M1/java/cluster-usage.html#
>>>>>> Adaptive_Load_Balancing
>>>>>>
>>>>>> Note that you must start several nodes, before it starts.
>>>>>>
>>>>>> I did some updates to this sample the other day and verified that it
>>>>>> worked. I think I added some timeout. You can see that code here:
>>>>>> https://github.com/akka/akka/tree/496fe8befcc96f1c5096d9733c5477
>>>>>> 68e619be12/akka-samples/akka-sample-cluster-java<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fakka%2Fakka%2Ftree%2F496fe8befcc96f1c5096d9733c547768e619be12%2Fakka-samples%2Fakka-sample-cluster-java&sa=D&sntz=1&usg=AFQjCNHODOEhY5xyZzgNnD6fhEG4_JpaFA>
>>>>>> and that is used with version "2.3-20131122-230959"
>>>>>>
>>>>>> /Patrik
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Dec 4, 2013 at 8:33 PM, Binita <[email protected]> wrote:
>>>>>>
>>>>>>> I was trying out the factorial example given under :
>>>>>>> https://github.com/akka/akka/tree/master/akka-samples/akka-s
>>>>>>> ample-cluster/src/main/java/sample/cluster/factorial/japi
>>>>>>>
>>>>>>> This is defined in the application.conf :
>>>>>>> ======================================
>>>>>>>     akka.actor.deployment {
>>>>>>>
>>>>>>>       /factorialFrontend/factorialBackendRouter = {
>>>>>>>
>>>>>>>         router = adaptive-group
>>>>>>>         metrics-selector = mix
>>>>>>>         nr-of-instances = 5
>>>>>>>         routees.paths = ["/user/factorialBackend"]
>>>>>>>          cluster {
>>>>>>>           enabled = on
>>>>>>>           use-role = backend
>>>>>>>           allow-local-routees = off
>>>>>>>
>>>>>>>         }
>>>>>>>       }
>>>>>>>     }
>>>>>>>
>>>>>>> =======================================
>>>>>>>
>>>>>>> Relevant code which uses the above config :
>>>>>>> =======================================
>>>>>>>
>>>>>>>         ActorRef backend = getContext().actorOf(FromConfi
>>>>>>> g.getInstance().props(),"factorialBackendRouter");
>>>>>>>         backend.tell(n, getSelf());
>>>>>>>
>>>>>>> ========================================
>>>>>>>
>>>>>>> The FactorialBackend actor's onReceive method is never invoked.
>>>>>>> Seems like router is not able to really find the routees ?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Binita
>>>>>>>
>>>>>>>  --
>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>>>>>> p/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 http://groups.google.com/group/akka-user.
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Patrik Nordwall
>>>>>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>>>>>> Twitter: @patriknw
>>>>>>
>>>>>>   --
>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Patrik Nordwall
>>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>>> Twitter: @patriknw
>>>
>>>   --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
>


-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to