application.yaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. spring:
  18. application:
  19. name: standalone-server
  20. jackson:
  21. time-zone: UTC
  22. date-format: "yyyy-MM-dd HH:mm:ss"
  23. banner:
  24. charset: UTF-8
  25. cache:
  26. # default enable cache, you can disable by `type: none`
  27. type: none
  28. cache-names:
  29. - tenant
  30. - user
  31. - processDefinition
  32. - processTaskRelation
  33. - taskDefinition
  34. caffeine:
  35. spec: maximumSize=100,expireAfterWrite=300s,recordStats
  36. sql:
  37. init:
  38. schema-locations: classpath:sql/dolphinscheduler_h2.sql
  39. datasource:
  40. driver-class-name: org.h2.Driver
  41. url: jdbc:h2:mem:dolphinscheduler;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true
  42. username: sa
  43. password: ""
  44. quartz:
  45. job-store-type: jdbc
  46. jdbc:
  47. initialize-schema: never
  48. properties:
  49. org.quartz.threadPool:threadPriority: 5
  50. org.quartz.jobStore.isClustered: true
  51. org.quartz.jobStore.class: org.quartz.impl.jdbcjobstore.JobStoreTX
  52. org.quartz.scheduler.instanceId: AUTO
  53. org.quartz.jobStore.tablePrefix: QRTZ_
  54. org.quartz.jobStore.acquireTriggersWithinLock: true
  55. org.quartz.scheduler.instanceName: DolphinScheduler
  56. org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
  57. org.quartz.jobStore.useProperties: false
  58. org.quartz.threadPool.makeThreadsDaemons: true
  59. org.quartz.threadPool.threadCount: 25
  60. org.quartz.jobStore.misfireThreshold: 60000
  61. org.quartz.scheduler.makeSchedulerThreadDaemon: true
  62. org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  63. org.quartz.jobStore.clusterCheckinInterval: 5000
  64. servlet:
  65. multipart:
  66. max-file-size: 1024MB
  67. max-request-size: 1024MB
  68. messages:
  69. basename: i18n/messages
  70. jpa:
  71. hibernate:
  72. ddl-auto: none
  73. registry:
  74. type: zookeeper
  75. zookeeper:
  76. namespace: dolphinscheduler
  77. connect-string: localhost:2181
  78. retry-policy:
  79. base-sleep-time: 60ms
  80. max-sleep: 300ms
  81. max-retries: 5
  82. session-timeout: 30s
  83. connection-timeout: 9s
  84. block-until-connected: 600ms
  85. digest: ~
  86. security:
  87. authentication:
  88. # Authentication types (supported types: PASSWORD,LDAP)
  89. type: PASSWORD
  90. # IF you set type `LDAP`, below config will be effective
  91. ldap:
  92. # admin userId
  93. user.admin: read-only-admin
  94. # ldap server config
  95. urls: ldap://ldap.forumsys.com:389/
  96. base.dn: dc=example,dc=com
  97. username: cn=read-only-admin,dc=example,dc=com
  98. password: password
  99. user.identity.attribute: uid
  100. user.email.attribute: mail
  101. master:
  102. listen-port: 5678
  103. # master fetch command num
  104. fetch-command-num: 10
  105. # master prepare execute thread number to limit handle commands in parallel
  106. pre-exec-threads: 10
  107. # master execute thread number to limit process instances in parallel
  108. exec-threads: 100
  109. # master dispatch task number per batch
  110. dispatch-task-number: 3
  111. # master host selector to select a suitable worker, default value: LowerWeight. Optional values include random, round_robin, lower_weight
  112. host-selector: lower_weight
  113. # master heartbeat interval, the unit is second
  114. heartbeat-interval: 10
  115. # master commit task retry times
  116. task-commit-retry-times: 5
  117. # master commit task interval, the unit is millisecond
  118. task-commit-interval: 1000
  119. state-wheel-interval: 5
  120. # master max cpuload avg, only higher than the system cpu load average, master server can schedule. default value -1: the number of cpu cores * 2
  121. max-cpu-load-avg: -1
  122. # master reserved memory, only lower than system available memory, master server can schedule. default value 0.3, the unit is G
  123. reserved-memory: 0.3
  124. # failover interval, the unit is minute
  125. failover-interval: 10
  126. # kill yarn jon when failover taskInstance, default true
  127. kill-yarn-job-when-task-failover: true
  128. worker:
  129. # worker listener port
  130. listen-port: 1234
  131. # worker execute thread number to limit task instances in parallel
  132. exec-threads: 100
  133. # worker heartbeat interval, the unit is second
  134. heartbeat-interval: 10
  135. # worker host weight to dispatch tasks, default value 100
  136. host-weight: 100
  137. # tenant corresponds to the user of the system, which is used by the worker to submit the job. If system does not have this user, it will be automatically created after the parameter worker.tenant.auto.create is true.
  138. tenant-auto-create: true
  139. #Scenes to be used for distributed users.For example,users created by FreeIpa are stored in LDAP.This parameter only applies to Linux, When this parameter is true, worker.tenant.auto.create has no effect and will not automatically create tenants.
  140. tenant-distributed-user: false
  141. # worker max cpuload avg, only higher than the system cpu load average, worker server can be dispatched tasks. default value -1: the number of cpu cores * 2
  142. max-cpu-load-avg: -1
  143. # worker reserved memory, only lower than system available memory, worker server can be dispatched tasks. default value 0.3, the unit is G
  144. reserved-memory: 0.3
  145. # default worker groups separated by comma, like 'worker.groups=default,test'
  146. groups:
  147. - default
  148. # alert server listen host
  149. alert-listen-host: localhost
  150. alert-listen-port: 50052
  151. alert:
  152. port: 50052
  153. python-gateway:
  154. # Weather enable python gateway server or not. The default value is true.
  155. enabled: true
  156. # The address of Python gateway server start. Set its value to `0.0.0.0` if your Python API run in different
  157. # between Python gateway server. It could be be specific to other address like `127.0.0.1` or `localhost`
  158. gateway-server-address: 0.0.0.0
  159. # The port of Python gateway server start. Define which port you could connect to Python gateway server from
  160. # Python API side.
  161. gateway-server-port: 25333
  162. # The address of Python callback client.
  163. python-address: 127.0.0.1
  164. # The port of Python callback client.
  165. python-port: 25334
  166. # Close connection of socket server if no other request accept after x milliseconds. Define value is (0 = infinite),
  167. # and socket server would never close even though no requests accept
  168. connect-timeout: 0
  169. # Close each active connection of socket server if python program not active after x milliseconds. Define value is
  170. # (0 = infinite), and socket server would never close even though no requests accept
  171. read-timeout: 0
  172. server:
  173. port: 12345
  174. servlet:
  175. session:
  176. timeout: 120m
  177. context-path: /dolphinscheduler/
  178. compression:
  179. enabled: true
  180. mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml
  181. jetty:
  182. max-http-form-post-size: 5000000
  183. management:
  184. endpoints:
  185. web:
  186. exposure:
  187. include: '*'
  188. metrics:
  189. tags:
  190. application: ${spring.application.name}
  191. audit:
  192. enabled: true
  193. metrics:
  194. enabled: true
  195. # Override by profile
  196. ---
  197. spring:
  198. config:
  199. activate:
  200. on-profile: postgresql
  201. quartz:
  202. properties:
  203. org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
  204. datasource:
  205. driver-class-name: org.postgresql.Driver
  206. url: jdbc:postgresql://127.0.0.1:5432/dolphinscheduler
  207. username: root
  208. password: root
  209. ---
  210. spring:
  211. config:
  212. activate:
  213. on-profile: mysql
  214. sql:
  215. init:
  216. schema-locations: classpath:sql/dolphinscheduler_mysql.sql
  217. datasource:
  218. driver-class-name: com.mysql.cj.jdbc.Driver
  219. url: jdbc:mysql://127.0.0.1:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8
  220. username: root
  221. password: root