Helix Mirror Maker Controller
================
This is the New Helix based Mirror Maker controller.
Helix is an open sourced cluster management framework for partitioned and
replicated distributed resources. Applying to our use case, this could help
manage topic and partition to instance mapping, which will get rid of the
rebalancing issue from the old mirror maker.
Mirror maker worker will only focus on single machine to take a list of
topic-partition to simple consumers to consume data from kafka broker.
Quickstart
----------
1. Start Local zookeeper with port 2181
2. Start ControllerStarter.java with default.
3. Start multiple FakeInstances with given instanceId
4. Now trying to play around with Helix mirror maker controller.
# Adding a topic into mirror maker
$ curl -X POST -d '{"topic":"testTopic", "numPartitions":"8"}' http://localhost:9000/topics
Successfully add new topic: {topic: testTopic, numPartitions: 8}
# Expanding an existed topic into mirror maker
$ curl -X PUT -d '{"topic":"testTopic", "numPartitions":"16"}' http://localhost:9000/topics
Successfully expand topic: {topic: testTopic, numPartitions: 16}
# Get a external view of topic from mirror maker
$ curl -X GET http://localhost:9000/topics/testTopic
{"partitionToServerMapping":
{"0":["testHelixMirrorMaker01"],"1":["testHelixMirrorMaker02"],"10":["testHelixMirrorMaker04"],
"11":["testHelixMirrorMaker01"],"12":["testHelixMirrorMaker02"],"13":["testHelixMirrorMaker03"],
"14":["testHelixMirrorMaker04"],"15":["testHelixMirrorMaker01"],"2":["testHelixMirrorMaker03"],
"3":["testHelixMirrorMaker04"],"4":["testHelixMirrorMaker01"],"5":["testHelixMirrorMaker02"],
"6":["testHelixMirrorMaker03"],"7":["testHelixMirrorMaker04"],"8":["testHelixMirrorMaker02"],
"9":["testHelixMirrorMaker03"]},
"serverToNumPartitionsMapping":
{"testHelixMirrorMaker01":4,"testHelixMirrorMaker02":4,
"testHelixMirrorMaker03":4,"testHelixMirrorMaker04":4},
"serverToPartitionMapping":{
"testHelixMirrorMaker01":["0","11","15","4"],
"testHelixMirrorMaker02":["1","12","5","8"],
"testHelixMirrorMaker03":["13","2","6","9"],
"testHelixMirrorMaker04":["10","14","3","7"]},
"topic":"testTopic"}
# Delete a topic from mirror maker
$ curl -X DELETE http://localhost:9000/topics/testTopic
Successfully finished delete topic: testTopic
License
-------
The project is licensed under the Apache 2 license.
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
weixin_38743737
- 粉丝: 378
- 资源: 2万+
最新资源
- 风光储超级电容混合储能系统三相LC并网仿真研究:构成、优化与并网策略探讨,风光储超级电容混合储能系统三相LC并网仿真研究:混合储能系统优化与并网逆变技术探讨,风光储超级电容混合储能HESS三相LC并网
- Matlab Simulink环境下的DAB SRC闭环仿真模型:单PWM移相控制实现输出电压调节,Matlab Simulink环境下的DAB SRC闭环仿真模型:单PWM移相控制实现输出电压调节
- 基于LabVIEW 2018的六通道测振仪源代码:IEPE振动信号的采集、分析与导出系统,基于LabVIEW 2018的多通道高精度测振仪源代码:支持IEPE振动加速度传感器信号采集与分析,具备6路自
- 三机九节点风电渗透率仿真模型探究电力系统仿真与设计返回性能体验之旅,三机九节点风电渗透率仿真模型探索与研究:基于Matlab Simulink的动态性能探究,三机九节点电力系统Simulink仿真模
- 基于双孔隙介质理论的comsol顺层钻孔瓦斯抽采与瓦斯吸附解吸数值模拟模型研究,双孔隙介质模型中顺层钻孔瓦斯抽采的数值模拟-考虑瓦斯吸附解吸作用影响的研究,comsol顺层钻孔瓦斯抽采,考虑瓦斯吸附
- 一个用 c 语言编写的迷宫求解程序源码
- Video-2024-11-19晚上-三阶段总结课.wmv
- Matlab仿真研究:多个光纤束按特定排列方式的拉锥合束及空间复用功能,Matlab模拟:多个光纤的精确拉锥排列及空间复用合束技术,Matlab光纤束拉锥模拟 多个光纤按照特定排列方式进行拉锥,实现合
- Matlab Simulink下的光伏、燃料电池与蓄电池单相并网控制策略:MPPT控制光伏,DC-DC变换与过充过放保护机制研究,光伏+燃料电池结合蓄电池单相并网仿真:MPPT控制及智能充电管理,ma
- qt开发,五子棋游戏,实现人机对战和本地游戏
- 无人机系统用于立体货架盘点的技术解析与应用要点
- 33烦烦烦纷纷而无法分为氛围
- Matlab求解非线性传输方程:获取光谱图及时域光场分布与电离模式下的解析,Matlab求解非线性传输方程:获取光谱图及时域光场分布的电离模式求解方法,Matlab 非线性传输方程求解 获取光谱图
- 基于matlab2018b的PMSM永磁同步电机参数辨识仿真:高效算法实践,基于matlab2018b的PMSM永磁同步电机参数辨识仿真:定子电阻、DQ电感与转子磁链高精度辨识,PMSM永磁同步电机参
- 原研控SSD2505方案全套资源公开:原理图、PCB设计图和源代码集成共享,原研控SSD2505方案全套资源包:原理图、PCB设计图和源代码全解析,原研控SSD2505方案,提供原理图+PCB+源代码
- Matlab模拟计算光纤传输特性:V参数分析、模式数量与分布图绘制、模式能量占比及有效折射率与色散系数计算,Matlab模拟计算光纤传输特性:V参数分析、模式数量与分布图绘制、模式能量占比及有效折射率
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)