dolphin-application.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  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>spring.datasource.initialSize</name>
  20. <value>5</value>
  21. <description>
  22. Init connection number
  23. </description>
  24. <value-attributes>
  25. <type>int</type>
  26. </value-attributes>
  27. <on-ambari-upgrade add="true"/>
  28. </property>
  29. <property>
  30. <name>spring.datasource.minIdle</name>
  31. <value>5</value>
  32. <description>
  33. Min connection number
  34. </description>
  35. <value-attributes>
  36. <type>int</type>
  37. </value-attributes>
  38. <on-ambari-upgrade add="true"/>
  39. </property>
  40. <property>
  41. <name>spring.datasource.maxActive</name>
  42. <value>50</value>
  43. <description>
  44. Max connection number
  45. </description>
  46. <value-attributes>
  47. <type>int</type>
  48. </value-attributes>
  49. <on-ambari-upgrade add="true"/>
  50. </property>
  51. <property>
  52. <name>spring.datasource.maxWait</name>
  53. <value>60000</value>
  54. <description>
  55. Max wait time for get a connection in milliseconds.
  56. If configuring maxWait, fair locks are enabled by default and concurrency efficiency decreases.
  57. If necessary, unfair locks can be used by configuring the useUnfairLock attribute to true.
  58. </description>
  59. <value-attributes>
  60. <type>int</type>
  61. </value-attributes>
  62. <on-ambari-upgrade add="true"/>
  63. </property>
  64. <property>
  65. <name>spring.datasource.timeBetweenEvictionRunsMillis</name>
  66. <value>60000</value>
  67. <description>
  68. Milliseconds for check to close free connections
  69. </description>
  70. <value-attributes>
  71. <type>int</type>
  72. </value-attributes>
  73. <on-ambari-upgrade add="true"/>
  74. </property>
  75. <property>
  76. <name>spring.datasource.timeBetweenConnectErrorMillis</name>
  77. <value>60000</value>
  78. <description>
  79. The Destroy thread detects the connection interval and closes the physical connection in milliseconds
  80. if the connection idle time is greater than or equal to minEvictableIdleTimeMillis.
  81. </description>
  82. <value-attributes>
  83. <type>int</type>
  84. </value-attributes>
  85. <on-ambari-upgrade add="true"/>
  86. </property>
  87. <property>
  88. <name>spring.datasource.minEvictableIdleTimeMillis</name>
  89. <value>300000</value>
  90. <description>
  91. The longest time a connection remains idle without being evicted, in milliseconds
  92. </description>
  93. <value-attributes>
  94. <type>int</type>
  95. </value-attributes>
  96. <on-ambari-upgrade add="true"/>
  97. </property>
  98. <property>
  99. <name>spring.datasource.validationQuery</name>
  100. <value>SELECT 1</value>
  101. <description>
  102. The SQL used to check whether the connection is valid requires a query statement.
  103. If validation Query is null, testOnBorrow, testOnReturn, and testWhileIdle will not work.
  104. </description>
  105. <on-ambari-upgrade add="true"/>
  106. </property>
  107. <property>
  108. <name>spring.datasource.validationQueryTimeout</name>
  109. <value>3</value>
  110. <value-attributes>
  111. <type>int</type>
  112. </value-attributes>
  113. <description>
  114. Check whether the connection is valid for timeout, in seconds
  115. </description>
  116. <on-ambari-upgrade add="true"/>
  117. </property>
  118. <property>
  119. <name>spring.datasource.testWhileIdle</name>
  120. <value>true</value>
  121. <value-attributes>
  122. <type>boolean</type>
  123. </value-attributes>
  124. <description>
  125. When applying for a connection,
  126. if it is detected that the connection is idle longer than time Between Eviction Runs Millis,
  127. validation Query is performed to check whether the connection is valid
  128. </description>
  129. <on-ambari-upgrade add="true"/>
  130. </property>
  131. <property>
  132. <name>spring.datasource.testOnBorrow</name>
  133. <value>true</value>
  134. <value-attributes>
  135. <type>boolean</type>
  136. </value-attributes>
  137. <description>
  138. Execute validation to check if the connection is valid when applying for a connection
  139. </description>
  140. <on-ambari-upgrade add="true"/>
  141. </property>
  142. <property>
  143. <name>spring.datasource.testOnReturn</name>
  144. <value>false</value>
  145. <value-attributes>
  146. <type>boolean</type>
  147. </value-attributes>
  148. <description>
  149. Execute validation to check if the connection is valid when the connection is returned
  150. </description>
  151. <on-ambari-upgrade add="true"/>
  152. </property>
  153. <property>
  154. <name>spring.datasource.defaultAutoCommit</name>
  155. <value>true</value>
  156. <value-attributes>
  157. <type>boolean</type>
  158. </value-attributes>
  159. <description>
  160. </description>
  161. <on-ambari-upgrade add="true"/>
  162. </property>
  163. <property>
  164. <name>spring.datasource.keepAlive</name>
  165. <value>false</value>
  166. <value-attributes>
  167. <type>boolean</type>
  168. </value-attributes>
  169. <description>
  170. </description>
  171. <on-ambari-upgrade add="true"/>
  172. </property>
  173. <property>
  174. <name>spring.datasource.poolPreparedStatements</name>
  175. <value>true</value>
  176. <value-attributes>
  177. <type>boolean</type>
  178. </value-attributes>
  179. <description>
  180. Open PSCache, specify count PSCache for every connection
  181. </description>
  182. <on-ambari-upgrade add="true"/>
  183. </property>
  184. <property>
  185. <name>spring.datasource.maxPoolPreparedStatementPerConnectionSize</name>
  186. <value>20</value>
  187. <value-attributes>
  188. <type>int</type>
  189. </value-attributes>
  190. <description></description>
  191. <on-ambari-upgrade add="true"/>
  192. </property>
  193. <property>
  194. <name>spring.datasource.spring.datasource.filters</name>
  195. <value>stat,wall,log4j</value>
  196. <description></description>
  197. <on-ambari-upgrade add="true"/>
  198. </property>
  199. <property>
  200. <name>spring.datasource.connectionProperties</name>
  201. <value>druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000</value>
  202. <description></description>
  203. <on-ambari-upgrade add="true"/>
  204. </property>
  205. <property>
  206. <name>mybatis-plus.mapper-locations</name>
  207. <value>classpath*:/org.apache.dolphinscheduler.dao.mapper/*.xml</value>
  208. <description></description>
  209. <on-ambari-upgrade add="true"/>
  210. </property>
  211. <property>
  212. <name>mybatis-plus.typeEnumsPackage</name>
  213. <value>org.apache.dolphinscheduler.*.enums</value>
  214. <description></description>
  215. <on-ambari-upgrade add="true"/>
  216. </property>
  217. <property>
  218. <name>mybatis-plus.typeAliasesPackage</name>
  219. <value>org.apache.dolphinscheduler.dao.entity</value>
  220. <description>
  221. Entity scan, where multiple packages are separated by a comma or semicolon
  222. </description>
  223. <on-ambari-upgrade add="true"/>
  224. </property>
  225. <property>
  226. <name>mybatis-plus.global-config.db-config.id-type</name>
  227. <value>AUTO</value>
  228. <value-attributes>
  229. <type>value-list</type>
  230. <entries>
  231. <entry>
  232. <value>AUTO</value>
  233. <label>AUTO</label>
  234. </entry>
  235. <entry>
  236. <value>INPUT</value>
  237. <label>INPUT</label>
  238. </entry>
  239. <entry>
  240. <value>ID_WORKER</value>
  241. <label>ID_WORKER</label>
  242. </entry>
  243. <entry>
  244. <value>UUID</value>
  245. <label>UUID</label>
  246. </entry>
  247. </entries>
  248. <selection-cardinality>1</selection-cardinality>
  249. </value-attributes>
  250. <description>
  251. Primary key type AUTO:" database ID AUTO ",
  252. INPUT:" user INPUT ID",
  253. ID_WORKER:" global unique ID (numeric type unique ID)",
  254. UUID:" global unique ID UUID";
  255. </description>
  256. <on-ambari-upgrade add="true"/>
  257. </property>
  258. <property>
  259. <name>mybatis-plus.global-config.db-config.field-strategy</name>
  260. <value>NOT_NULL</value>
  261. <value-attributes>
  262. <type>value-list</type>
  263. <entries>
  264. <entry>
  265. <value>IGNORED</value>
  266. <label>IGNORED</label>
  267. </entry>
  268. <entry>
  269. <value>NOT_NULL</value>
  270. <label>NOT_NULL</label>
  271. </entry>
  272. <entry>
  273. <value>NOT_EMPTY</value>
  274. <label>NOT_EMPTY</label>
  275. </entry>
  276. </entries>
  277. <selection-cardinality>1</selection-cardinality>
  278. </value-attributes>
  279. <description>
  280. Field policy IGNORED:" ignore judgment ",
  281. NOT_NULL:" not NULL judgment "),
  282. NOT_EMPTY:" not NULL judgment"
  283. </description>
  284. <on-ambari-upgrade add="true"/>
  285. </property>
  286. <property>
  287. <name>mybatis-plus.global-config.db-config.column-underline</name>
  288. <value>true</value>
  289. <value-attributes>
  290. <type>boolean</type>
  291. </value-attributes>
  292. <description></description>
  293. <on-ambari-upgrade add="true"/>
  294. </property>
  295. <property>
  296. <name>mybatis-plus.global-config.db-config.logic-delete-value</name>
  297. <value>1</value>
  298. <value-attributes>
  299. <type>int</type>
  300. </value-attributes>
  301. <description></description>
  302. <on-ambari-upgrade add="true"/>
  303. </property>
  304. <property>
  305. <name>mybatis-plus.global-config.db-config.logic-not-delete-value</name>
  306. <value>0</value>
  307. <value-attributes>
  308. <type>int</type>
  309. </value-attributes>
  310. <description></description>
  311. <on-ambari-upgrade add="true"/>
  312. </property>
  313. <property>
  314. <name>mybatis-plus.global-config.db-config.banner</name>
  315. <value>true</value>
  316. <value-attributes>
  317. <type>boolean</type>
  318. </value-attributes>
  319. <description></description>
  320. <on-ambari-upgrade add="true"/>
  321. </property>
  322. <property>
  323. <name>mybatis-plus.configuration.map-underscore-to-camel-case</name>
  324. <value>true</value>
  325. <value-attributes>
  326. <type>boolean</type>
  327. </value-attributes>
  328. <description></description>
  329. <on-ambari-upgrade add="true"/>
  330. </property>
  331. <property>
  332. <name>mybatis-plus.configuration.cache-enabled</name>
  333. <value>false</value>
  334. <value-attributes>
  335. <type>boolean</type>
  336. </value-attributes>
  337. <description></description>
  338. <on-ambari-upgrade add="true"/>
  339. </property>
  340. <property>
  341. <name>mybatis-plus.configuration.call-setters-on-nulls</name>
  342. <value>true</value>
  343. <value-attributes>
  344. <type>boolean</type>
  345. </value-attributes>
  346. <description></description>
  347. <on-ambari-upgrade add="true"/>
  348. </property>
  349. <property>
  350. <name>mybatis-plus.configuration.jdbc-type-for-null</name>
  351. <value>null</value>
  352. <description></description>
  353. <on-ambari-upgrade add="true"/>
  354. </property>
  355. <property>
  356. <name>master.exec.threads</name>
  357. <value>100</value>
  358. <value-attributes>
  359. <type>int</type>
  360. </value-attributes>
  361. <description></description>
  362. <on-ambari-upgrade add="true"/>
  363. </property>
  364. <property>
  365. <name>master.exec.task.num</name>
  366. <value>20</value>
  367. <value-attributes>
  368. <type>int</type>
  369. </value-attributes>
  370. <description></description>
  371. <on-ambari-upgrade add="true"/>
  372. </property>
  373. <property>
  374. <name>master.heartbeat.interval</name>
  375. <value>10</value>
  376. <value-attributes>
  377. <type>int</type>
  378. </value-attributes>
  379. <description></description>
  380. <on-ambari-upgrade add="true"/>
  381. </property>
  382. <property>
  383. <name>master.task.commit.retryTimes</name>
  384. <value>5</value>
  385. <value-attributes>
  386. <type>int</type>
  387. </value-attributes>
  388. <description></description>
  389. <on-ambari-upgrade add="true"/>
  390. </property>
  391. <property>
  392. <name>master.task.commit.interval</name>
  393. <value>1000</value>
  394. <value-attributes>
  395. <type>int</type>
  396. </value-attributes>
  397. <description></description>
  398. <on-ambari-upgrade add="true"/>
  399. </property>
  400. <property>
  401. <name>master.max.cpuload.avg</name>
  402. <value>100</value>
  403. <value-attributes>
  404. <type>int</type>
  405. </value-attributes>
  406. <description></description>
  407. <on-ambari-upgrade add="true"/>
  408. </property>
  409. <property>
  410. <name>master.reserved.memory</name>
  411. <value>0.1</value>
  412. <value-attributes>
  413. <type>float</type>
  414. </value-attributes>
  415. <description></description>
  416. <on-ambari-upgrade add="true"/>
  417. </property>
  418. <property>
  419. <name>worker.exec.threads</name>
  420. <value>100</value>
  421. <value-attributes>
  422. <type>int</type>
  423. </value-attributes>
  424. <description></description>
  425. <on-ambari-upgrade add="true"/>
  426. </property>
  427. <property>
  428. <name>worker.heartbeat.interval</name>
  429. <value>10</value>
  430. <value-attributes>
  431. <type>int</type>
  432. </value-attributes>
  433. <description></description>
  434. <on-ambari-upgrade add="true"/>
  435. </property>
  436. <property>
  437. <name>worker.fetch.task.num</name>
  438. <value>3</value>
  439. <value-attributes>
  440. <type>int</type>
  441. </value-attributes>
  442. <description></description>
  443. <on-ambari-upgrade add="true"/>
  444. </property>
  445. <property>
  446. <name>worker.max.cpuload.avg</name>
  447. <value>100</value>
  448. <value-attributes>
  449. <type>int</type>
  450. </value-attributes>
  451. <description></description>
  452. <on-ambari-upgrade add="true"/>
  453. </property>
  454. <property>
  455. <name>worker.reserved.memory</name>
  456. <value>0.1</value>
  457. <value-attributes>
  458. <type>float</type>
  459. </value-attributes>
  460. <description></description>
  461. <on-ambari-upgrade add="true"/>
  462. </property>
  463. </configuration>