akka-zk-cluster-seed extension

338 views
Skip to first unread message

Scott Clasen

unread,
Jun 2, 2014, 10:08:24 PM6/2/14
to akka...@googlegroups.com
Hey all

  Just whipped this up today for those who have easy access to zookeeper, it lets you bootstrap your cluster without configuring seed nodes.


  instead of `Cluster(system).join(address) or joinSeedNodes(seeds)`  just `ZookeeperClusterSeed(system).join()`

Cheers
SC
  


Paweł Kopiczko

unread,
Jun 4, 2014, 3:37:54 AM6/4/14
to akka...@googlegroups.com
Hey,
Does it really make a difference if you provide nodes to ZooKeeper nodes rather than to cluster seed nodes in you config?
For me it's one more component to maintain.
btw I think that if you use ZooKeeper then you may not need cluster extension at all.

Konrad Malawski

unread,
Jun 4, 2014, 6:02:28 AM6/4/14
to Akka User List
Thanks for the contribution Scott!
Would be awesome to add this to community contributions on http://akka.io/community you can do this via pull requesting here: https://github.com/akka/akka.github.com

I think that when starting new projects with akka only it's quite east to manage seed nodes in an akka-only way, via cheffing/puppeting etc,
but if you're in an existing environment where some other applications and/or infrastructure tooling is already hooked into zoo-keeper it this may be a pretty interesting option.


--
>>>>>>>>>> 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
hAkker - Typesafe, Inc


Night Wolf

unread,
Jun 4, 2014, 10:31:15 AM6/4/14
to akka...@googlegroups.com
This is fantastic! We've been looking at exactly this problem. Something like this will help us a lot. 

Scott Clasen

unread,
Jun 4, 2014, 12:17:42 PM6/4/14
to akka...@googlegroups.com
Hey Pawel-

  This is really only if you have an existing zk cluster in your environment, and you are say in AWS where (unless you use elastic IP) ip addresses and machines come and go.
If you dont meet this description I would not recommend using this extension.

SC

Eric Pederson

unread,
Jun 4, 2014, 3:11:42 PM6/4/14
to akka...@googlegroups.com
Hey Scott -

This is fantastic - thanks so much for making it available!

-- Eric

Paweł Kopiczko

unread,
Jun 5, 2014, 2:54:48 AM6/5/14
to akka...@googlegroups.com
Scott,
Thank you for explanation. I wanted to know use case for that
extension, sorry if it sounded offensive to you.
However, your extension is very nice and simple example how to write
integration and multijvm tests for Akka cluster.
Thank you.
> --
>>>>>>>>>>> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/FCZpCKkT0gs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Scott Clasen

unread,
Jun 5, 2014, 12:51:19 PM6/5/14
to akka...@googlegroups.com
Pawel No offense taken at all! Cheers!

Roland Kuhn

unread,
Jun 6, 2014, 2:08:57 PM6/6/14
to akka-user
Very nice, Scott, thanks for sharing!

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



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


Reply all
Reply to author
Forward
0 new messages