wehriam / deepstream.io-cluster Goto Github PK
View Code? Open in Web Editor NEWCommunity supported clustering for Deepstream.io.
License: GNU Affero General Public License v3.0
Community supported clustering for Deepstream.io.
License: GNU Affero General Public License v3.0
I found the documentation is lacking. Some question I have are: does it support single point of failure?
Hi John,
First off, A big thank you for attempting this clustering plugin. It's obviously not foolproof yet, but should serve as a great starting point for any future work.
I'm currently working on this http://www.st8flo.com. Attempted to use deepstream behind the scenes as a signalling server, and tried using your plugin to cluster 2 nodes, but ran into a bunch of issues that I'd like to try solving.
Would love it if you can give me a primer on the architecture of deepstream & the clustering mechanism that you've used
If I manage to solve anything, will be happy to contribute that code back to your module.
The issues i ran into
1> auto discovery using node-discover seems to be broken.
The error i get is - "Cannot read property clusterNode of undefined".
So instead, I clustered the 2 nodes manually - both set as peers of each other :
2> There's a possible multiplication of state / messaging.
For a distributed indexing / db built on top of st8flo - A query that should've resulted in a 100 items, results in 400,
but only when this clustering plugin is used.
Without clustering it works as expected.
Networking Architecture for cluster test-
2 Deepstream signalling nodes clustered using this plugin (one on Mac, another on linux)
Networking architecture normally -
Single deepstream node that acts as signal / RPC server
3> If accidentally disconnected, a signalling node can't reconnect or re-sync state.
Environment -
Deepstream - 3.1.1
Deepstream cluster - 0.6.2
Nodejs - 9.10.1
OS - Mac El Capitan & Linux Ubuntu 14.04
Unfortunately, I can't reproduce this for you to test, since st8flo isn't published yet.
But I can try to figure it out myself, if you help me understand how it works under the hood.
Any pointers / primers ?
Thanks in advance.
Hello!
I was wondering if you would like to have this under the deepstream umbrella with other connectors so that it can be bundled into the binary.
Thanks again for your work on this!
Hi,
I just discovered this promising library and I have two questions :
Thank you very much!
Heiko
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.