application.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. banner:
  19. charset: UTF-8
  20. jackson:
  21. time-zone: UTC
  22. date-format: "yyyy-MM-dd HH:mm:ss"
  23. cache:
  24. # default enable cache, you can disable by `type: none`
  25. type: none
  26. cache-names:
  27. - tenant
  28. - user
  29. - processDefinition
  30. - processTaskRelation
  31. - taskDefinition
  32. caffeine:
  33. spec: maximumSize=100,expireAfterWrite=300s,recordStats
  34. datasource:
  35. driver-class-name: org.postgresql.Driver
  36. url: jdbc:postgresql://127.0.0.1:5432/dolphinscheduler
  37. username: root
  38. password: root
  39. hikari:
  40. connection-test-query: select 1
  41. minimum-idle: 5
  42. auto-commit: true
  43. validation-timeout: 3000
  44. pool-name: DolphinScheduler
  45. maximum-pool-size: 50
  46. connection-timeout: 30000
  47. idle-timeout: 600000
  48. leak-detection-threshold: 0
  49. initialization-fail-timeout: 1
  50. quartz:
  51. job-store-type: jdbc
  52. jdbc:
  53. initialize-schema: never
  54. properties:
  55. org.quartz.threadPool.threadPriority: 5
  56. org.quartz.jobStore.isClustered: true
  57. org.quartz.jobStore.class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  58. org.quartz.scheduler.instanceId: AUTO
  59. org.quartz.jobStore.tablePrefix: QRTZ_
  60. org.quartz.jobStore.acquireTriggersWithinLock: true
  61. org.quartz.scheduler.instanceName: DolphinScheduler
  62. org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
  63. org.quartz.jobStore.useProperties: false
  64. org.quartz.threadPool.makeThreadsDaemons: true
  65. org.quartz.threadPool.threadCount: 25
  66. org.quartz.jobStore.misfireThreshold: 60000
  67. org.quartz.scheduler.batchTriggerAcquisitionMaxCount: 1
  68. org.quartz.scheduler.makeSchedulerThreadDaemon: true
  69. org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
  70. org.quartz.jobStore.clusterCheckinInterval: 5000
  71. registry:
  72. type: zookeeper
  73. zookeeper:
  74. namespace: dolphinscheduler
  75. connect-string: localhost:2181
  76. retry-policy:
  77. base-sleep-time: 60ms
  78. max-sleep: 300ms
  79. max-retries: 5
  80. session-timeout: 30s
  81. connection-timeout: 9s
  82. block-until-connected: 600ms
  83. digest: ~
  84. master:
  85. listen-port: 5678
  86. # master fetch command num
  87. fetch-command-num: 10
  88. # master prepare execute thread number to limit handle commands in parallel
  89. pre-exec-threads: 10
  90. # master execute thread number to limit process instances in parallel
  91. exec-threads: 100
  92. # master dispatch task number per batch, if all the tasks dispatch failed in a batch, will sleep 1s.
  93. dispatch-task-number: 3
  94. # master host selector to select a suitable worker, default value: LowerWeight. Optional values include random, round_robin, lower_weight
  95. host-selector: lower_weight
  96. # master heartbeat interval
  97. heartbeat-interval: 10s
  98. # master commit task retry times
  99. task-commit-retry-times: 5
  100. # master commit task interval
  101. task-commit-interval: 1s
  102. state-wheel-interval: 5s
  103. # 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
  104. max-cpu-load-avg: -1
  105. # master reserved memory, only lower than system available memory, master server can schedule. default value 0.3, the unit is G
  106. reserved-memory: 0.3
  107. # failover interval, the unit is minute
  108. failover-interval: 10m
  109. # kill yarn jon when failover taskInstance, default true
  110. kill-yarn-job-when-task-failover: true
  111. registry-disconnect-strategy:
  112. # The disconnect strategy: stop, waiting
  113. strategy: waiting
  114. # The max waiting time to reconnect to registry if you set the strategy to waiting
  115. max-waiting-time: 100s
  116. worker-group-refresh-interval: 10s
  117. server:
  118. port: 5679
  119. management:
  120. endpoints:
  121. web:
  122. exposure:
  123. include: health,metrics,prometheus
  124. endpoint:
  125. health:
  126. enabled: true
  127. show-details: always
  128. health:
  129. db:
  130. enabled: true
  131. defaults:
  132. enabled: false
  133. metrics:
  134. tags:
  135. application: ${spring.application.name}
  136. metrics:
  137. enabled: true
  138. # Override by profile
  139. ---
  140. spring:
  141. config:
  142. activate:
  143. on-profile: mysql
  144. datasource:
  145. driver-class-name: com.mysql.cj.jdbc.Driver
  146. url: jdbc:mysql://127.0.0.1:3306/dolphinscheduler
  147. username: root
  148. password: root
  149. quartz:
  150. properties:
  151. org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate