application.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. eureka:
  2. instance:
  3. prefer-ip-address: true #是否优先使用IP地址作为主机名的标识,默认false
  4. instance-id: ${spring.application.name}:${POD_NAME}:${server.port} #注册到eureka上的唯一实例ID
  5. lease-renewal-interval-in-seconds: 10 #表示eureka client发送心跳给server端的频率,默认30
  6. lease-expiration-duration-in-seconds: 30 #表示eureka server至上一次收到client的心跳之后,等待下一次心跳的超时时间,在这个时间内若没收到下一次心跳,则将移除该instance,默认90
  7. client:
  8. registry-fetch-interval-seconds: 5 #定时从Eureka Server拉取服务注册信息的间隔时间
  9. serviceUrl:
  10. defaultZone: http://deveureka-internal.piaoquantv.com/eureka/
  11. spring:
  12. datasource:
  13. driver-class-name: com.mysql.jdbc.Driver
  14. type: com.zaxxer.hikari.HikariDataSource
  15. hikari:
  16. minimum-idle: 10
  17. maximum-pool-size: 60
  18. connection-test-query: SELECT 1
  19. cloud:
  20. sentinel:
  21. eager: true
  22. transport:
  23. port: 8719
  24. log:
  25. dir: ${datalog}/sentinel
  26. datasource:
  27. ds1:
  28. apollo:
  29. namespace-name: application
  30. flow-rules-key: sentinel.flowRules
  31. default-flow-rule-value: [ ]
  32. rule-type: flow
  33. lifecycle:
  34. timeout-per-shutdown-phase: 30s
  35. profiles:
  36. active: dev
  37. application:
  38. name: ad-engine
  39. jackson:
  40. default-property-inclusion: non_null
  41. servlet:
  42. multipart:
  43. max-file-size: 500MB
  44. max-request-size: 500MB
  45. project:
  46. name: ad-engine
  47. server:
  48. tomcat:
  49. threads:
  50. max: 1000
  51. uri-encoding: UTF-8
  52. accept-count: 1000
  53. connection-timeout: 30000
  54. servlet:
  55. context-path: /ad-engine
  56. session:
  57. timeout: 60
  58. shutdown: graceful
  59. pagehelper:
  60. helper-dialect: mysql
  61. #apollo config
  62. app:
  63. id: ad-engine
  64. apollo:
  65. bootstrap:
  66. enabled: true
  67. namespaces: application,RD.Experiment
  68. eagerLoad:
  69. enabled: true
  70. cacheDir: ${datalog}/apollo-cache-dir
  71. mybatis:
  72. type-aliases-package: com.tzld.piaoquan.ad.engine.commons.model
  73. mapper-locations: classpath:mapper/*.xml, classpath:mapper/ext/*.xml
  74. configuration:
  75. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  76. datalog: /datalog
  77. #datalog: /Users/zhao/Desktop/Code/Java/ad-engine
  78. logging:
  79. file:
  80. path: ${datalog}/weblog/${project.name}
  81. aliyun:
  82. log:
  83. endpoint: cn-hangzhou-intranet.log.aliyuncs.com
  84. accessKeyId: LTAIP6x1l3DXfSxm
  85. accessKeySecret: KbTaM9ars4OX3PMS6Xm7rtxGr1FLon
  86. logstore:
  87. request: request-log
  88. info: info-log
  89. error: error-log
  90. statistics: statistics-log
  91. crowdChooseStatistics: crowd-choose-statistics-log
  92. landingTypeFilter: landingpagetype-filter-error-log
  93. adPackageData: ad-package-data
  94. topic:
  95. threadpool:
  96. corePoolSize: 100
  97. maxPoolSize: 100
  98. keepAliveSeconds: 200
  99. queueCapacity: 100000
  100. feishu:
  101. message:
  102. # 飞书群组预警机器人 ID,不指定发送到 默认消息预警群组
  103. bot-id: a73cd47d-70b8-4b73-a207-a133021af176
  104. # 要提醒用户的手机号(多个值用 “,” 隔开)
  105. at-mobiles: 18612832316
  106. # 飞书预警服务器地址
  107. server-url: http://alert-feishu.piaoquantv.com/feishu/sendText
  108. xxl:
  109. job:
  110. accessToken:
  111. executor:
  112. address:
  113. appname: ms-${spring.application.name}
  114. ip:
  115. logpath: ${datalog}/xxl-job/
  116. logretentiondays: 30
  117. port: 9999
  118. grpc:
  119. client:
  120. recommend-feature:
  121. negotiationType: PLAINTEXT
  122. # KeepAlive 配置(防止空闲连接被网关关闭)
  123. enable-keep-alive: true
  124. keep-alive-time: 20s
  125. keep-alive-timeout: 5s
  126. keep-alive-without-calls: true
  127. max-inbound-message-size: 20MB
  128. negotiation-type: plaintext
  129. recommend-server:
  130. max-inbound-message-size: 20MB
  131. negotiationType: PLAINTEXT
  132. GLOBAL:
  133. max-inbound-message-size: 20MB
  134. model:
  135. xgboost:
  136. path: xgboost
  137. path351: xgboost351