Giter Club home page Giter Club logo

Comments (8)

walkor avatar walkor commented on May 20, 2024 1

Don't put all 100 million connections in the same cluster.
You can scatter connections in multiple clusters.
There is no business communication between clusters is better.

from gatewayworker.

walkor avatar walkor commented on May 20, 2024

Generally speaking , For each machine
gateway->count = the_count_of_cpu_for_current_machine;
and
business->count = the_count_of_cpu_for_current_machine*2;
is the recommended value.

from gatewayworker.

sm2017 avatar sm2017 commented on May 20, 2024

No I ask about connection limits . As you know each gateway is connected to business workers and vise versa . So if we increase gateways each business worker must handle more connections

My question is about distributed system

from gatewayworker.

walkor avatar walkor commented on May 20, 2024

In theory, the number of gateway processes can't exceed 1000, and business can't exceed 60000 In the whole distributed system.
In fact, I think the best number of gateway processes is less than 200, and business is around 200-600 In the whole distributed system.
I don't have so many servers, so the above data is my guess value.

from gatewayworker.

sm2017 avatar sm2017 commented on May 20, 2024

Can you explain why??

In theory, the number of gateway processes can't exceed 1000, and business can't exceed 60000

How you calculate 1000? And 60000?
If we use select we have a 1024 limitation but for event and libevent the limit is 100k (if I'm wrong correct me)

Please explain in details .Please check your Gitter , I want to chat you

from gatewayworker.

walkor avatar walkor commented on May 20, 2024

src/Lib/Gateway.php called stream_select in getBufferFromAllGateway method which limit gateway process count can not exceed 1000. Of course, this can be changed to use event to process.

About business count , 60000 is not inaccurate. It is limited by open files of linux kernel configuration maybe 65535 or other values.

from gatewayworker.

sm2017 avatar sm2017 commented on May 20, 2024

To handling 100 million concurrent connection , is there any recommendation?

from gatewayworker.

sm2017 avatar sm2017 commented on May 20, 2024

@walkor please reply

from gatewayworker.

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.