Giter VIP home page Giter VIP logo

Comments (2)

goriunov avatar goriunov commented on May 22, 2024 2

Sorry for late response got a lot of work lately.

Unfortunately u have misunderstood how it works, slave servers are like separate servers completely, you have to use load balancer like nginx to make auto selection between servers. Basically the reason for this horizontal scaling was to be able to run servers in different location and communicate between them through channels.

For example if u live in New Zealand u can set up one server in Auckland another one in Wellington and connect them together. People from wellington can connect to wellington server and be able to communicator to people form Auckland (who are connected to Auckland server) through the channels so everyone will get good service (of cause u need to have very good internet connection between your servers).

That was basic example how u can use them.

What u can also do is to create a lot of droplets on Digital Ocean connect all the slave servers from each droplet between each other through master server, set up nginx on one single server which will decide to which droplet server send new connection. And this will allow to handle lot of connection and all of servers will be able to communicate between each other through channels.

In your case as u explains f u will connect only to the server which u request so if u got to Master on: 80, PID: 16409 u will be connected to the master server and if u go to Master on: 8003, PID: 9486 u will connect to slave server. There is no reason to create slaves and masters or use Horizontal scaling on single machines as u can just use cluster (workers) which do it much better and allow to use all cores and memory plus share the same port. Horizontal scaling is useful only if u have more then one machine so u can run master server on one machine and slave server on anotherone.

Master saver is naming for the server which responsible for re sending messages which it gets from the slaves to all other connected slave servers (and itself of cause too).

from clusterws.

muriloinflue avatar muriloinflue commented on May 22, 2024

Ok, thanks :)

from clusterws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.