Hi Zoran,

on the worker nodes you can configure

hostname=""
port=0

since they just need to find the master.

Regards,

Roland

12 feb 2014 kl. 03:17 skrev Zoran Jeremic <[email protected]>:

> Hi,
> 
> I've implemented Akka cluster where I have one master node that initialize 
> cluster in the following way:
> 
> 
> AdaptiveLoadBalancingPool pool = new AdaptiveLoadBalancingPool(
>                 MixMetricsSelector.getInstance(), 0);
>         ClusterRouterPoolSettings settings = new ClusterRouterPoolSettings(
>                 totalInstances, maxInstancesPerNode, allowLocalRoutees, 
> useRole);
>         crawlerManager = getContext().actorOf(
>                 new ClusterRouterPool(pool, settings).props(Props.create(
>                         CrawlerManagerActor.class, getSelf())),
>                 "crawlerManager");
> 
> It's configure like as:
> 
> akka {
>     actor {
>         provider = "akka.cluster.ClusterActorRefProvider"
>     }
>     remote {
>         log-remote-lifecycle-events = off
>         netty.tcp {
>                 hostname = "100.71.88.118"
>                 port=2551
>         }
>     }
>     cluster {
>     seed-nodes = [
>                 "akka.tcp://[email protected]:2551"
>     ]  
> 
> And I have a worker node which is configured as:
> 
> 
> akka {
>      actor {
>         provider = "akka.cluster.ClusterActorRefProvider"
>     }
>     remote {
>         log-remote-lifecycle-events = off
>         netty.tcp {
>                 hostname = "100.71.96.54"
>                 port=2552
>         }
>     }
>     cluster {
>     seed-nodes = [
>                 "akka.tcp://[email protected]:2551"
>     ]
> 
> Each node is on different instance in Microsoft Azure cloud,but what I want 
> is to create an image from worker and based on that image to create new 
> instances of workers when system load is increased, so hostname and port 
> should be created dynamically. However, from Akka documentation and previous 
> discussion I couldn't find any description that will help me how to make this 
> work. Could you give me some reference or description what have to be done 
> and how to configure my nodes once it's loaded.
> 
> Thanks,
> Zoran
> 
> -- 
> >>>>>>>>>> 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.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


-- 
>>>>>>>>>>      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