|
|
|
@ -15,53 +15,64 @@
|
|
|
|
|
~ limitations under the License. |
|
|
|
|
--> |
|
|
|
|
<configuration> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.exec.threads</name> |
|
|
|
|
<value>100</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker execute thread num</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.heartbeat.interval</name> |
|
|
|
|
<value>10</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker heartbeat interval</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.max.cpuload.avg</name> |
|
|
|
|
<value>100</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>only less than cpu avg load, worker server can work. default value : the number of cpu cores * 2</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.reserved.memory</name> |
|
|
|
|
<value>0.3</value> |
|
|
|
|
<description>only larger than reserved memory, worker server can work. default value : physical memory * 1/10, unit is G.</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
|
|
|
|
|
<property> |
|
|
|
|
<name>worker.listen.port</name> |
|
|
|
|
<value>1234</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker listen port</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.groups</name> |
|
|
|
|
<value>default</value> |
|
|
|
|
<description>default worker group</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.exec.threads</name> |
|
|
|
|
<value>100</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker execute thread num</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.heartbeat.interval</name> |
|
|
|
|
<value>10</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker heartbeat interval</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.max.cpuload.avg</name> |
|
|
|
|
<value>100</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>only less than cpu avg load, worker server can work. default value : the number of cpu cores * 2 |
|
|
|
|
</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.reserved.memory</name> |
|
|
|
|
<value>0.3</value> |
|
|
|
|
<description>only larger than reserved memory, worker server can work. default value : physical memory * 1/10, |
|
|
|
|
unit is G. |
|
|
|
|
</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.listen.port</name> |
|
|
|
|
<value>1234</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker listen port</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.groups</name> |
|
|
|
|
<value>default</value> |
|
|
|
|
<description>default worker group</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
<property> |
|
|
|
|
<name>worker.weigth</name> |
|
|
|
|
<value>100</value> |
|
|
|
|
<value-attributes> |
|
|
|
|
<type>int</type> |
|
|
|
|
</value-attributes> |
|
|
|
|
<description>worker weight</description> |
|
|
|
|
<on-ambari-upgrade add="true"/> |
|
|
|
|
</property> |
|
|
|
|
</configuration> |