Comments (6)
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.
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.
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.
from rocketmq-operator.
@Kaijun use the DNS will be a better choice, so would you like to submit a PR to polish it?
from rocketmq-operator.
@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.
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)
- Enhance helm install
- Incorrect file name in README
- How to custom plain_acl.yml content? HOT 6
- Broker status can not reflect current state
- helm deployment operator deployment, uninstall cannot delete the replicaSet container, what is the solution? HOT 5
- rocketmq 5. x 构建镜像,使用operator启动集群时,namesrv无法启动 HOT 1
- operator扩容 生成的sts 的postStart 的cmd过长导致扩容失败 HOT 1
- [Feature Request] Add e2e test HOT 1
- how volumeMounts custiom configmap HOT 2
- Controller pod controllerDLegerPeers wrong address HOT 1
- Typo in README
- Inconsistent serviceAccountNames
- Can not run nameserver on cgroup v2
- `free` is the bad way to compute memory used by broker or nameservers in container. HOT 1
- broker使用hostNetwork: true,但是注册到name-service上的IP还是pod CIDR段的IP HOT 2
- Add addtional action to repository HOT 5
- Unable to set environment variables in NameServer pod.
- How to build a bundle image? I want to add this operator to catalog
- Broker show `alive=false` in controller `getSyncStateSet` command HOT 2
- name-service needs to support headless svc
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 rocketmq-operator.