dolphin-worker.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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</description>
  43. <on-ambari-upgrade add="true"/>
  44. </property>
  45. <property>
  46. <name>worker.reserved.memory</name>
  47. <value>0.3</value>
  48. <description>only larger than reserved memory, worker server can work. default value : physical memory * 1/10, unit is G.</description>
  49. <on-ambari-upgrade add="true"/>
  50. </property>
  51. <property>
  52. <name>worker.listen.port</name>
  53. <value>1234</value>
  54. <value-attributes>
  55. <type>int</type>
  56. </value-attributes>
  57. <description>worker listen port</description>
  58. <on-ambari-upgrade add="true"/>
  59. </property>
  60. <property>
  61. <name>worker.group</name>
  62. <value>default</value>
  63. <description>default worker group</description>
  64. <on-ambari-upgrade add="true"/>
  65. </property>
  66. </configuration>