rocketmq-operator icon indicating copy to clipboard operation
rocketmq-operator copied to clipboard

是否需要单独部署controller

Open wokwong opened this issue 3 years ago • 4 comments

提问: 在rocketmq-operator README.md 中没有介绍是否需要部署controller ,是否需要单独部署呢?谢谢

wokwong avatar Jan 29 '23 06:01 wokwong

It depends on the way to organizing the broker cluster:

  • By default, broker roles in a cluster are static, and Controller is unnecessary.
  • If broker roles can be switched dynamically (ONLY supported in RocketMQ 5.x), Controller is required.

caigy avatar Jan 31 '23 04:01 caigy

It depends on the way to organizing the broker cluster:

  • By default, broker roles in a cluster are static, and Controller is unnecessary.
  • If broker roles can be switched dynamically (ONLY supported in RocketMQ 5.x), Controller is required.

不好意思 ,忘记指明版本。 版本是:RocketMQ 5.0 使用operator部署到k8s。 如果RocketMQ 5.0集群要实现自动主从切换 需要额外部署controller,需要对controller额外做什么配置么?

wokwong avatar Jan 31 '23 05:01 wokwong

It depends on the way to organizing the broker cluster:

  • By default, broker roles in a cluster are static, and Controller is unnecessary.
  • If broker roles can be switched dynamically (ONLY supported in RocketMQ 5.x), Controller is required.

不好意思 ,忘记指明版本。 版本是:RocketMQ 5.0 使用operator部署到k8s。 如果RocketMQ 5.0集群要实现自动主从切换 需要额外部署controller,需要对controller额外做什么配置么?

  • For Controller, you may find this example for reference. You should specify size (must be odd number), image name, resources and storage configurations.
  • For Broker, set spec. ClusterMode as CONTROLLER enabling dynamical switching.

caigy avatar Feb 02 '23 01:02 caigy

Could you provide the 5.0.0 version rocketmq_v1alpha1_rocketmq_cluster.yaml for us? If I want to enable the broker's controller mode. I don't know whether the image is the latest version or I just added the spec. ClusterMode as CONTROLLER is good enough for the auto failover version5 ?

zjj1002 avatar Aug 18 '23 03:08 zjj1002