Storm的调度器

xiaoxiao2021-02-28  122

参考: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
转载请注明原文地址: https://www.6miu.com/read-64549.html

最新回复(0)