Comments (12)
有没有分布式启动配置详解呢
from mqant-chat.
分布式跟单机部署一样,多个进程之间有服务发现注册中心建立联系,只需要管理好不同进程中的启动模块即可
from mqant-chat.
如果是部署在不同物理机的话呢
from mqant-chat.
是不是各个物理机下都注册到相同的nats地址即可?
from mqant-chat.
nats只是一个RPC通道,每一个节点(一个进程可以有多个节点)都会注册到consul中,并且每一个节点都会分配一个nats topic地址
from mqant-chat.
mqant如果多物理机分布式部署,需要修改哪些配置呢
是不是像pomelo一样修改server.json各个进程运行的IP即可呢
from mqant-chat.
不需要,mqant有服务注册中心,通过nats做RPC通道,就不需要管具体每一个服务进度的IP了,配置不需要改动
from mqant-chat.
我看分享的帖子里,之前的分布式走的redis,在配置文件里每个module配置redis就可以,现在换成nats是不是在main.go里配置同一个nats通道地址就可以实现分布式部署
from mqant-chat.
是的nats只需要在main.go配置一个就行,所有模块都用相同的nats服务通信,他们会创建各种的通道
from mqant-chat.
好的,这样的话是否理论上可以实现不停服扩充服务?
from mqant-chat.
理论上是可以的,不过你需要自己定制RPC路由选择策略
from mqant-chat.
明白了,非常感谢
from mqant-chat.
Related Issues (20)
- 部署概述 · mqant 的文档库
- 服务发现设置 · mqant 的文档库
- 动态监听handler · mqant 的文档库 HOT 2
- 全局监听handler · mqant 的文档库
- 网关介绍 · mqant 的文档库
- 网关介绍 · mqant 的文档库
- 网关自定义路由 · mqant 的文档库
- 自定义通信协议 · mqant 的文档库
- 网关本地操作 · mqant 的文档库
- 自定义网关路由 · mqant 的文档库
- IM通信协议示例 · mqant 的文档库
- Response数据结构 · mqant 的文档库
- session · mqant 的文档库
- 网络路由协议 · mqant 的文档库
- 编写第一个网关 · mqant 的文档库 HOT 2
- Introduction · mqant 的文档库
- 应用级别配置 · mqant 的文档库
- 模块介绍 · mqant 的文档库
- 模块组成 · mqant 的文档库 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqant-chat.