Cluster sharding on a single node cluster. Does it make sense?

108 views
Skip to first unread message

Amir Karimi

unread,
Aug 27, 2015, 3:15:54 AM8/27/15
to akka...@googlegroups.com
Hi,

With the kind help of the community I came to the conclusion that I can use cluster sharding to manage resources better and the cluster sharding module is already implemented in Akka.

But I just need the sharding feature of the module, not clustering. Actually a single node is enough for now and probably for the foreseeable future.

Is it OK to run a single node cluster and just use its sharding mechanism? If yes, what is the best practices for configuration and tests.

Regards,
Amir
--
Amir Karimi
amirkarimi.github.io

Konrad Malawski

unread,
Aug 27, 2015, 8:20:24 AM8/27/15
to Akka User List
I wouldn't see it as a bad thing to use sharding locally to achieve the "lazily create actors for me" semantics that it implements.
You're right that it's designed for a more powerful context - i.e. it is *cluster* sharding, to shard the load across a number of nodes,
but hey - who says you won't need more nodes eventually, and then you don't really need to change your infra, sharding could just use more nodes then.

Happy hakking!

--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Konrad 'ktoso' Malawski

Justin du coeur

unread,
Sep 1, 2015, 4:34:31 PM9/1/15
to akka...@googlegroups.com
Following this up with an in-practice comment: while I plan to get to proper clustering quite soon, I've been running a single-node "cluster" with heavy use of Cluster Sharding in production for months now.  Works great...

--

Amir Karimi

unread,
Sep 3, 2015, 2:39:02 PM9/3/15
to akka...@googlegroups.com
Thank you everybody,

As I didn't find any help about single node cluster sharding integration tests, I published my test environment code. Please let me know if I did anything wrong.

Regards,
Amir
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/-karyoxaIC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Patrik Nordwall

unread,
Sep 4, 2015, 4:44:02 AM9/4/15
to akka...@googlegroups.com
On Thu, Sep 3, 2015 at 8:38 PM, Amir Karimi <a.kar...@gmail.com> wrote:
Thank you everybody,

As I didn't find any help about single node cluster sharding integration tests, I published my test environment code. Please let me know if I did anything wrong.

Looks good, thanks for sharing.



--

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Reply all
Reply to author
Forward
0 new messages