Custom shard allocation strategy can be defined in an optional parameter to
ClusterSharding.start. See the API documentation of ShardAllocationStrategy for
details of how to implement a custom shard allocation strategy.

http://doc.akka.io/docs/akka/2.4.7/scala/cluster-sharding.html#Configuration

The allocation strategy returns a Future, so you can delegate the call to
an Actor, using ask. The actor could be controlled by the operator, e.g.
via HTTP or JMX API.

/Patrik



On Fri, Jun 24, 2016 at 10:07 AM, Siva Kommuri <[email protected]>
wrote:

> Interesting. Could you kindly elaborate?
>
> Best wishes,
> Siva on 6+
>
> On Jun 23, 2016, at 10:25 PM, Martynas Mickevičius <
> [email protected]> wrote:
>
> Hi,
>
> you can provide a custom shard allocation strategy
> <http://doc.akka.io/japi/akka/2.4.7/akka/cluster/sharding/ShardCoordinator.ShardAllocationStrategy.html>
>  that
> during rolling release returns empty set of shards that need to be
> rebalanced.
>
> On Fri, Jun 17, 2016 at 10:21 PM, Michael Kohout <[email protected]>
> wrote:
>
>> Hi All-
>>
>> I'm prototyping a system that will use cluster sharding at a shop where
>> Operations generally does rolling deployments-so it deploys an application
>> one host(of a cluster) at a time.
>>
>> Is there any way to have Akka avoid rebalancing during these events?
>> Something that will give us a 20 minute window to do a single machine
>> deployment?
>>
>> thanks for any suggestions
>>
>> Michael Kohout
>>
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

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

Reply via email to