Comments (7)
我是公网IP配的members,然后打印出来是内网ip
from comqtt.
把配置文件members中localhost:1886去掉试试
from comqtt.
跨集群我再试试哈,感谢。最近测试还遇到一个问题,在单机集群中,刚开始部署上去时,在:1883端口监听topic,:1884端口发送信息,这刚开始是能接受到消息的。但又不知道出了什么情况,:1883就不能收到信息了。但我在mac电脑中部署集群是ok,放上linux服务器就不行,重新编译和替换程序和配置都没效果,我看是发送消息到:1884端口过去了,:1883端口就是没有收到信息
from comqtt.
就是放到linux上执行部署集群就会报panic,而且集群中节点同步数据就不行,:1883监听topic,没有接到数据,但确实给1884端口发送消息了。
from comqtt.
2022/10/13 11:03:38 worker exits from a panic: runtime error: invalid memory address or nil pointer dereference
2022/10/13 11:03:38 worker exits from panic: goroutine 42 [running]:
github.com/panjf2000/ants/v2.(*goWorker).run.func1.1()
/usr/local/bin/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:58 +0x10c
这个panic主要是这里报的错,用了nil执行方法,需要调BootstrapRaft()之后才能执行以下代码
for i := 0; i < gps; i++ {
c.inPool.Submit(c.processInboundMsg)
}
from comqtt.
你拉最新代码,我昨天加了集群参数bind-addr,这个参数可以设定为内网ip,不能用localhost,members中也用内网ip。集群节点间内网ip通信。我在云上用三台Linux centos机器跑测正常。参考配置:
from comqtt.
谢谢大佬,我还没测出跨集群效果,单集群效果ok的,请教一个问题,你连接redis有没有出现Error: Connection reset by peer?因为跨集群只用一个redis服务,我从节点连主redis服务一直报 Connection reset by peer这个错误。。。搞了好久。感觉就差这一步了。
from comqtt.
Related Issues (20)
- Goleak failing
- Running the cluster without doing changes causes unclean shutdown HOT 3
- Use of Init to launch http server. HOT 3
- 跨节点数据同步消息同步丢数据,并且大概率会导致服务阻塞后续的pub无法同步到其他节点 HOT 3
- Use custom logger HOT 1
- Config file single.yml doesn't allow for auth config
- Disconnecting while Kafka bridge turned on causes a panic HOT 1
- Enable "hacktoberfest" contributions? HOT 4
- Dropping messages in OnPublish HOT 1
- mqtt.options配置加载不正确
- 问题咨询 HOT 1
- Authenticating against a MongoDB collection with Bcrypt-hashed passwords
- Missing OnPublishedWithSharedFilters in debug hook
- MySQL auth: bad configuration causes panic HOT 5
- comqtt:cl gateways are missing HOT 4
- 请问可以不redis使用吗? HOT 1
- queue/retry messages to Kafka HOT 3
- 如何获取连接的客户端列表呢 HOT 1
- Redis: Usage of old go-redis package, before go-redis received official support by Redis HOT 3
- Cannot receive/send any message when acl is configured
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 comqtt.