application.properties 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. # base spring data source configuration
  18. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  19. # postgre
  20. spring.datasource.driver-class-name=org.postgresql.Driver
  21. spring.datasource.url=jdbc:postgresql://localhost:5432/dolphinscheduler
  22. # mysql
  23. #spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  24. #spring.datasource.url=jdbc:mysql://192.168.xx.xx:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8
  25. # h2
  26. #spring.datasource.driver-class-name=org.h2.Driver
  27. #spring.datasource.url=jdbc:h2:file:../sql/h2;AUTO_SERVER=TRUE
  28. spring.datasource.username=test
  29. spring.datasource.password=test
  30. # connection configuration
  31. spring.datasource.initialSize=5
  32. # min connection number
  33. spring.datasource.minIdle=5
  34. # max connection number
  35. spring.datasource.maxActive=50
  36. # max wait time for get a connection in milliseconds. if configuring maxWait, fair locks are enabled by default and concurrency efficiency decreases.
  37. # If necessary, unfair locks can be used by configuring the useUnfairLock attribute to true.
  38. spring.datasource.maxWait=60000
  39. # milliseconds for check to close free connections
  40. spring.datasource.timeBetweenEvictionRunsMillis=60000
  41. # the Destroy thread detects the connection interval and closes the physical connection in milliseconds if the connection idle time is greater than or equal to minEvictableIdleTimeMillis.
  42. spring.datasource.timeBetweenConnectErrorMillis=60000
  43. # the longest time a connection remains idle without being evicted, in milliseconds
  44. spring.datasource.minEvictableIdleTimeMillis=300000
  45. #the SQL used to check whether the connection is valid requires a query statement. If validation Query is null, testOnBorrow, testOnReturn, and testWhileIdle will not work.
  46. spring.datasource.validationQuery=SELECT 1
  47. #check whether the connection is valid for timeout, in seconds
  48. spring.datasource.validationQueryTimeout=3
  49. # when applying for a connection, if it is detected that the connection is idle longer than time Between Eviction Runs Millis,
  50. # validation Query is performed to check whether the connection is valid
  51. spring.datasource.testWhileIdle=true
  52. #execute validation to check if the connection is valid when applying for a connection
  53. spring.datasource.testOnBorrow=true
  54. #execute validation to check if the connection is valid when the connection is returned
  55. spring.datasource.testOnReturn=false
  56. spring.datasource.defaultAutoCommit=true
  57. spring.datasource.keepAlive=true
  58. # open PSCache, specify count PSCache for every connection
  59. spring.datasource.poolPreparedStatements=true
  60. spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
  61. spring.datasource.spring.datasource.filters=stat,wall,log4j
  62. spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  63. #mybatis
  64. mybatis-plus.mapper-locations=classpath*:/org.apache.dolphinscheduler.dao.mapper/*.xml
  65. mybatis-plus.typeEnumsPackage=org.apache.dolphinscheduler.*.enums
  66. #Entity scan, where multiple packages are separated by a comma or semicolon
  67. mybatis-plus.typeAliasesPackage=org.apache.dolphinscheduler.dao.entity
  68. #Primary key type AUTO:" database ID AUTO ", INPUT:" user INPUT ID", ID_WORKER:" global unique ID (numeric type unique ID)", UUID:" global unique ID UUID";
  69. mybatis-plus.global-config.db-config.id-type=AUTO
  70. #Field policy IGNORED:" ignore judgment ",NOT_NULL:" not NULL judgment "),NOT_EMPTY:" not NULL judgment"
  71. mybatis-plus.global-config.db-config.field-strategy=NOT_NULL
  72. #The hump underline is converted
  73. mybatis-plus.global-config.db-config.column-underline=true
  74. mybatis-plus.global-config.db-config.logic-delete-value=-1
  75. mybatis-plus.global-config.db-config.logic-not-delete-value=0
  76. mybatis-plus.global-config.db-config.banner=false
  77. #The original configuration
  78. mybatis-plus.configuration.map-underscore-to-camel-case=true
  79. mybatis-plus.configuration.cache-enabled=false
  80. mybatis-plus.configuration.call-setters-on-nulls=true
  81. mybatis-plus.configuration.jdbc-type-for-null=null
  82. # master settings
  83. # master execute thread num
  84. master.exec.threads=100
  85. # master execute task number in parallel
  86. master.exec.task.num=20
  87. # master heartbeat interval
  88. master.heartbeat.interval=10
  89. # master commit task retry times
  90. master.task.commit.retryTimes=5
  91. # master commit task interval
  92. master.task.commit.interval=1000
  93. # only less than cpu avg load, master server can work. default value : the number of cpu cores * 2
  94. master.max.cpuload.avg=100
  95. # only larger than reserved memory, master server can work. default value : physical memory * 1/10, unit is G.
  96. master.reserved.memory=0.1
  97. # worker settings
  98. # worker execute thread num
  99. worker.exec.threads=100
  100. # worker heartbeat interval
  101. worker.heartbeat.interval=10
  102. # submit the number of tasks at a time
  103. worker.fetch.task.num = 3
  104. # only less than cpu avg load, worker server can work. default value : the number of cpu cores * 2
  105. worker.max.cpuload.avg=100
  106. # only larger than reserved memory, worker server can work. default value : physical memory * 1/6, unit is G.
  107. worker.reserved.memory=0.1
  108. # data quality analysis is not currently in use. please ignore the following configuration
  109. # task record
  110. task.record.flag=false
  111. task.record.datasource.url=jdbc:mysql://192.168.xx.xx:3306/etl?characterEncoding=UTF-8
  112. task.record.datasource.username=xx
  113. task.record.datasource.password=xx
  114. # Logger Config
  115. #logging.level.org.apache.dolphinscheduler.dao=debug