storm.yaml中的netty.worker和netty.client的值是什么意思

祖冠群 2016-06-21 10:04:26
storm.yaml中的netty.worker和netty.client的值是什么意思?
与一个节点上能够起多少个worker有关系吗?
比如值是1和值是10 对节点有明显的影响吗
...全文
741 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
chyanch 2016-06-24
  • 打赏
  • 举报
回复
Storm 似乎没有文档描述所有配置文件,请查找源代码的配置文件 例如: apache-storm-1.0.1/storm-core/src/jvm/org/apache/storm/Config.java /** * Netty based messaging: The # of worker threads for the server. */ @isInteger @isPositiveNumber(includeZero = true) public static final String STORM_MESSAGING_NETTY_SERVER_WORKER_THREADS = "storm.messaging.netty.server_worker_threads"; /** * Netty based messaging: The # of worker threads for the client. */ @isInteger public static final String STORM_MESSAGING_NETTY_CLIENT_WORKER_THREADS = "storm.messaging.netty.client_worker_threads"; 分别指netty server端和client端的工作线程数 继续看代码说明: /** * The jvm opts provided to workers launched by this supervisor. * All "%ID%", "%WORKER-ID%", "%TOPOLOGY-ID%", * "%WORKER-PORT%" and "%HEAP-MEM%" substrings are replaced with: * %ID% -> port (for backward compatibility), * %WORKER-ID% -> worker-id, * %TOPOLOGY-ID% -> topology-id, * %WORKER-PORT% -> port. * %HEAP-MEM% -> mem-onheap. */ @isStringOrStringList public static final String WORKER_CHILDOPTS = "worker.childopts"; /** * The default heap memory size in MB per worker, used in the jvm -Xmx opts for launching the worker */ @isInteger @isPositiveNumber public static final String WORKER_HEAP_MEMORY_MB = "worker.heap.memory.mb"; worker 可以配置不同的内存使用量。 所以worker是配置并发度的一个参数,需要合理配置来使用系统资源,总量不能超过物理内存,也不能太少影响性能。

742

社区成员

发帖
与我相关
我的任务
社区描述
该论坛主要探讨Linux系统在IBM Power平台的安装、部署、应用开发等话题,并为网友们提供自由交流的平台。
社区管理员
  • Power Linux社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧