Coder Social home page Coder Social logo

Comments (5)

chengshiwen avatar chengshiwen commented on July 28, 2024

节点状态和版本信息,是通过 gossip 进行传播,以固定间隔时间,一个节点传播一个节点,10s以内基本就传播完成,达到最终一致,所以刚启动时,如果遇到在不同meta节点上show,Version有的没显示,看看过一段时间是否都能显示?

from influxdb-cluster.

MiracleLemon avatar MiracleLemon commented on July 28, 2024

意思是广播节点信息是在不断重复进行的嘛?
因为在服务器2的meta节点show,Version信息是不断变化的过程:
image
image
image

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

意思是广播节点信息是在不断重复进行的嘛?

是的

每个 meta 和 data 节点都会将自己的状态和版本信息,meta 节点每隔 gossip-frequency = "5s"、data 节点每隔 gossip-frequency = "3s" 传播出去,新的节点收到这个信息后还会携带这个信息加上自己的信息,继续随机传播下去,所以基本上很快就会收敛,每个 meta 节点上 show,都能看到所有节点的状态和版本。这些信息会被保留 announcement-expiration = "30s",如果没有新的传播信息过来的话

另外,在服务器2的 meta 节点 show,会看到 version 都显示的情况吗?

也可以适当调整这 3 个参数,例如把报告间隔改小一些

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

关于 Gossip 协议,可以看下面这篇介绍:Gossip 协议

Gossip 传播示意图:
gossip

from influxdb-cluster.

MiracleLemon avatar MiracleLemon commented on July 28, 2024

另外,在服务器2的 meta 节点 show,会看到 version 都显示的情况吗?

会的,上面的图就是meta节点在服务器2上show的几次结果。

感谢答疑,多谢~~

from influxdb-cluster.

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.