GithubHelp home page GithubHelp logo

关于跨机器建立集群问题,两台外网机器,进行跨机器建立集群,已经joined,就提示没有Suspect co-001 has failed, no acks received about comqtt HOT 7 CLOSED

wind-c avatar wind-c commented on September 24, 2024
关于跨机器建立集群问题,两台外网机器,进行跨机器建立集群,已经joined,就提示没有Suspect co-001 has failed, no acks received

from comqtt.

Comments (7)

skygp avatar skygp commented on September 24, 2024

我是公网IP配的members,然后打印出来是内网ip

from comqtt.

wind-c avatar wind-c commented on September 24, 2024

把配置文件members中localhost:1886去掉试试

from comqtt.

skygp avatar skygp commented on September 24, 2024

跨集群我再试试哈,感谢。最近测试还遇到一个问题,在单机集群中,刚开始部署上去时,在:1883端口监听topic,:1884端口发送信息,这刚开始是能接受到消息的。但又不知道出了什么情况,:1883就不能收到信息了。但我在mac电脑中部署集群是ok,放上linux服务器就不行,重新编译和替换程序和配置都没效果,我看是发送消息到:1884端口过去了,:1883端口就是没有收到信息

from comqtt.

skygp avatar skygp commented on September 24, 2024

就是放到linux上执行部署集群就会报panic,而且集群中节点同步数据就不行,:1883监听topic,没有接到数据,但确实给1884端口发送消息了。

from comqtt.

skygp avatar skygp commented on September 24, 2024

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.

wind-c avatar wind-c commented on September 24, 2024

你拉最新代码,我昨天加了集群参数bind-addr,这个参数可以设定为内网ip,不能用localhost,members中也用内网ip。集群节点间内网ip通信。我在云上用三台Linux centos机器跑测正常。参考配置:1.jpg2.jpg3.jpg

from comqtt.

skygp avatar skygp commented on September 24, 2024

谢谢大佬,我还没测出跨集群效果,单集群效果ok的,请教一个问题,你连接redis有没有出现Error: Connection reset by peer?因为跨集群只用一个redis服务,我从节点连主redis服务一直报 Connection reset by peer这个错误。。。搞了好久。感觉就差这一步了。

from comqtt.

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.