dolphin-worker.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  3. ~ contributor license agreements. See the NOTICE file distributed with
  4. ~ this work for additional information regarding copyright ownership.
  5. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  6. ~ (the "License"); you may not use this file except in compliance with
  7. ~ the License. You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <configuration>
  18. <property>
  19. <name>worker.exec.threads</name>
  20. <value>100</value>
  21. <value-attributes>
  22. <type>int</type>
  23. </value-attributes>
  24. <description>worker execute thread num</description>
  25. <on-ambari-upgrade add="true"/>
  26. </property>
  27. <property>
  28. <name>worker.heartbeat.interval</name>
  29. <value>10</value>
  30. <value-attributes>
  31. <type>int</type>
  32. </value-attributes>
  33. <description>worker heartbeat interval</description>
  34. <on-ambari-upgrade add="true"/>
  35. </property>
  36. <property>
  37. <name>worker.max.cpuload.avg</name>
  38. <value>100</value>
  39. <value-attributes>
  40. <type>int</type>
  41. </value-attributes>
  42. <description>only less than cpu avg load, worker server can work. default value : the number of cpu cores * 2
  43. </description>
  44. <on-ambari-upgrade add="true"/>
  45. </property>
  46. <property>
  47. <name>worker.reserved.memory</name>
  48. <value>0.3</value>
  49. <description>only larger than reserved memory, worker server can work. default value : physical memory * 1/10,
  50. unit is G.
  51. </description>
  52. <on-ambari-upgrade add="true"/>
  53. </property>
  54. <property>
  55. <name>worker.listen.port</name>
  56. <value>1234</value>
  57. <value-attributes>
  58. <type>int</type>
  59. </value-attributes>
  60. <description>worker listen port</description>
  61. <on-ambari-upgrade add="true"/>
  62. </property>
  63. <property>
  64. <name>worker.groups</name>
  65. <value>default</value>
  66. <description>default worker group</description>
  67. <on-ambari-upgrade add="true"/>
  68. </property>
  69. <property>
  70. <name>worker.weigth</name>
  71. <value>100</value>
  72. <value-attributes>
  73. <type>int</type>
  74. </value-attributes>
  75. <description>worker weight</description>
  76. <on-ambari-upgrade add="true"/>
  77. </property>
  78. </configuration>