Giter Club home page Giter Club logo

Comments (6)

liuruiyiyang avatar liuruiyiyang commented on June 15, 2024 1

Because the brokers need to know the IP addresses of the node where the namesrv(NameServer) services are deployed on, so that the brokers could communicate with the namesrv services clusters.

However, this configuration step is for the first time when initialize the broker cluster. When up-scale the namesrv cluster, the new IP list of the namesrv cluster is automatically maintained and told to the broker cluster.

from rocketmq-operator.

Kaijun avatar Kaijun commented on June 15, 2024

Because the brokers need to know the IP addresses of the node where the namesrv(NameServer) services are deployed on, so that the brokers could communicate with the namesrv services clusters.

However, this configuration step is for the first time when initialize the broker cluster. When up-scale the namesrv cluster, the new IP list of the namesrv cluster is automatically maintained and told to the broker cluster.

why not using kubernetes service dns instead of static IP?

from rocketmq-operator.

Kaijun avatar Kaijun commented on June 15, 2024

I have to create nameserver in the first place, and extract the ip which nameserver is using, then finally i could fill it into broker cr.

the order of deploying makes it not possible to deploy a complete rocketmq service the way by using a simple stack. it's also kind of against the philosophy of kubernetes which emphasizes state oriented.

@liuruiyiyang @vongosling

from rocketmq-operator.

duhenglucky avatar duhenglucky commented on June 15, 2024

@Kaijun use the DNS will be a better choice, so would you like to submit a PR to polish it?

from rocketmq-operator.

hzliangbin avatar hzliangbin commented on June 15, 2024

@duhenglucky According to the blog of AliMiddleware, the nameserver cluster is decentralization. And each broker will connect to all nameservers to refresh broker's info. It's OK when NameServer' size is 1. kubernetes service will always lead to one backend pod.

But when there are 2 or more nameservers, the kubernetes service will forward to only one of the backend pods based on some loadbanlance strategy.

A not that perfect solution :
Use headless service. The brokers use Podname.Servicename.Namespacename instead IP to register to namerservers. However the impact on performance should be considered.

from rocketmq-operator.

vongosling avatar vongosling commented on June 15, 2024

This issue has been closed because it has not had activity in the last 30 days. If this issue is still valid, please ping a committer and ask them to label it as "help wanted". Thank you for your contributions.

from rocketmq-operator.

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.