GithubHelp home page GithubHelp logo

Comments (12)

shen3335600 avatar shen3335600 commented on August 24, 2024

有没有分布式启动配置详解呢

from mqant-chat.

liangdas avatar liangdas commented on August 24, 2024

分布式跟单机部署一样,多个进程之间有服务发现注册中心建立联系,只需要管理好不同进程中的启动模块即可

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

如果是部署在不同物理机的话呢

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

是不是各个物理机下都注册到相同的nats地址即可?

from mqant-chat.

liangdas avatar liangdas commented on August 24, 2024

nats只是一个RPC通道,每一个节点(一个进程可以有多个节点)都会注册到consul中,并且每一个节点都会分配一个nats topic地址

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

mqant如果多物理机分布式部署,需要修改哪些配置呢
是不是像pomelo一样修改server.json各个进程运行的IP即可呢

from mqant-chat.

liangdas avatar liangdas commented on August 24, 2024

不需要,mqant有服务注册中心,通过nats做RPC通道,就不需要管具体每一个服务进度的IP了,配置不需要改动

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

我看分享的帖子里,之前的分布式走的redis,在配置文件里每个module配置redis就可以,现在换成nats是不是在main.go里配置同一个nats通道地址就可以实现分布式部署

from mqant-chat.

liangdas avatar liangdas commented on August 24, 2024

是的nats只需要在main.go配置一个就行,所有模块都用相同的nats服务通信,他们会创建各种的通道

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

好的,这样的话是否理论上可以实现不停服扩充服务?

from mqant-chat.

liangdas avatar liangdas commented on August 24, 2024

理论上是可以的,不过你需要自己定制RPC路由选择策略

from mqant-chat.

shen3335600 avatar shen3335600 commented on August 24, 2024

明白了,非常感谢

from mqant-chat.

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.