简体   繁体   English

如何在hazelcast.xml中配置jobTracker以获得最佳性能?

[英]How to configure jobTracker in hazelcast.xml to get optimized performance?

Below is default configuration in hazelcast.xml, 以下是hazelcast.xml中的默认配置,

<jobtracker name="default">
  <max-thread-size>0</max-thread-size>
  <!-- Queue size 0 means number of partitions * 2 -->
  <queue-size>0</queue-size>
  <retry-count>0</retry-count>
  <chunk-size>1000</chunk-size>
  <communicate-stats>true</communicate-stats>
  <topology-changed-strategy>CANCEL_RUNNING_OPERATION</topology-changed-strategy>
</jobtracker>

How to update this configuration to get better performance for map reducing in java application??? 如何更新此配置以获得更好的性能,以减少Java应用程序中的地图?

The values you normally want to optimize are chunk-size and communicate-stats . 您通常要优化的值是chunk-sizecommunicate-stats First property is heavily depending on the way your mr job works and needs some trial and error, best is to keep reducers busy all the time (so depending on the reducing operation either bigger chunk size for heavy ops or smaller chunks for light operations). 第一个属性在很大程度上取决于您的先生的工作方式,并且需要一些试验和错误,最好的办法是使减速器始终保持忙碌状态(因此,取决于减速操作,对于重型操作而言,是较大的块尺寸,对于轻型操作而言是较小的块)。 The communicate-stats deactivates transmission of statistical information which is normally not being used anyways. communicate-stats禁用通常不会使用的统计信息的传输。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM