Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting multiple swarm hosts (backend) #44

Open
edvinbesic opened this issue Jan 23, 2015 · 5 comments
Open

Connecting multiple swarm hosts (backend) #44

edvinbesic opened this issue Jan 23, 2015 · 5 comments

Comments

@edvinbesic
Copy link

Hi!

I'm trying to set up a swarm cluster on the backend but am having a couple of issues. Reading the code, in Pipe.js it says that a pipe is a channel to a remote swarm host. This works great when the connection is from client -> server, but not so much when doing server -> server. I am able to connect servers to each other but there does not appear to be any replication going on between different instances.

My issue is that we need more then one machine on the back end and since users that share models could be connected to different physical hosts we need a way to ensure that each server stays up to date and that data is replicated correctly.

Is there a way to accomplish this today?

@gritzko
Copy link
Owner

gritzko commented Jan 23, 2015

Hi! That part of the code is lagging behind and I don't expect it to work as of now. Ironically, a consistent hashing server cluster was our first demo back in 2013.
The most of the code is still in place, e.g. https://github.com/gritzko/swarm/blob/master/lib/Syncable.js#L797
Consistent hashing logic is the same on client and server, as the client may connect to several servers at once or choose what server to connect to.
I am elbow-deep in v0.4 at the moment, may be @abalandin will find some time to revitalize that code.

@edvinbesic
Copy link
Author

Thanks for your response, I will try digging further to see if I can solve this.
If not, is this something that is planned for v0.4 otherwise?

@gritzko
Copy link
Owner

gritzko commented Jan 26, 2015

Yep, 0.4 puts an accent on server-side stuff.

@samkrew
Copy link

samkrew commented Aug 27, 2015

Is that feature done for 0.4 ?

@gritzko
Copy link
Owner

gritzko commented Oct 16, 2015

Consistent hashing server rings, ETA is early-December.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants