Storm的调度器

来源:互联网 发布:ios微信无法连接网络 编辑:程序博客网 时间:2024/06/05 18:35

参考:http://storm.apache.org/releases/1.1.0/Storm-Scheduler.html

Storm现在有4种内建的调度器:DefaultScheduler,IsolationScheduler,MultitenantScheduler,ResourceAwareScheduler

可插拔的调度器

你可以实现自己的调度器来替代默认的调度器去分配executors给workers。在storm.yaml文件里指定storm.scheduler,自定义的调度器要实现IScheduler接口。

隔离调度器

配置storm.yaml,把storm.scheduler指定为org.apache.storm.scheduler.IsolationScheduler,然后配置isolation.scheduler.machines声明每个topology需要多少个执行器,例如

isolation.scheduler.machines:    "my-topology": 8    "tiny-topology": 1    "some-other-topology": 3