dataservice-pro.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. server:
  2. port: 10013
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /data
  8. compression:
  9. enabled: true #开启数据压缩
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: INFO
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. "[com.alibaba.nacos]": ERROR
  22. #"[org.mongodb.driver.protocol.command]": DEBUG
  23. tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
  24. spring:
  25. application:
  26. name: dataservice
  27. cloud:
  28. gateway:
  29. discovery:
  30. locator:
  31. lower-case-service-id: true
  32. enabled: true
  33. nacos:
  34. discovery:
  35. server-addr: 10.16.0.49:8848
  36. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  37. redis:
  38. host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com #Redis服务器地址
  39. database: 10 # Redis数据库索引(默认为0)
  40. port: 6379 # Redis服务器连接端口
  41. password: yn8Vh85rxvtUPnqB # Redis服务器连接密码(默认为空)
  42. jedis:
  43. pool:
  44. max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
  45. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  46. max-idle: 20 # 连接池中的最大空闲连接
  47. min-idle: 10 # 连接池中的最小空闲连接
  48. data:
  49. mongodb:
  50. uri: mongodb://root:U5Z0Y0fneQnjH3Xj4lENpW0D@dds-wz92ac81710b54241.mongodb.rds.aliyuncs.com:3717,dds-wz92ac81710b54242.mongodb.rds.aliyuncs.com:3717/fujica_data_center?replicaSet=mgset-77298810&authSource=admin&connectTimeoutMS=10000&serverSelectionTimeoutMS=10000&socketTimeoutMS=20000
  51. rocketmq:
  52. name-server: 10.16.0.48:9876
  53. producer:
  54. group: fujica-producer
  55. consumer:
  56. topic:
  57. topicDcEventAdd: topic_dc_event_add_pro
  58. topicDcEventBatchAdd: topic_dc_event_batch_add_pro
  59. topicDcServiceAdd: topic_dc_service_add_pro
  60. topicDcServiceBatchAdd: topic_dc_service_batch_add_pro
  61. topicDcServiceBatchDel: topic_dc_service_batch_del_pro
  62. topicDcServiceBatchUpdate: topic_dc_service_batch_update_pro
  63. topicDcServiceDel: topic_dc_service_del_pro
  64. topicDcServiceUpdate: topic_dc_service_update_pro
  65. group:
  66. topicDcEventAdd: topic_dc_event_add_pro
  67. topicDcEventBatchAdd: topic_dc_event_batch_add_pro
  68. topicDcServiceAdd: topic_dc_service_add_pro
  69. topicDcServiceBatchAdd: topic_dc_service_batch_add_pro
  70. topicDcServiceBatchDel: topic_dc_service_batch_del_pro
  71. topicDcServiceBatchUpdate: topic_dc_service_batch_update_pro
  72. topicDcServiceDel: topic_dc_service_del_pro
  73. topicDcServiceUpdate: topic_dc_service_update_pro
  74. xxl:
  75. job:
  76. admin:
  77. addresses: http://10.16.0.49:8088/xxl-job-admin
  78. executor:
  79. appname: dataservice
  80. address:
  81. port: 9999
  82. logretentiondays: 30
  83. accessToken: default_token
  84. feign:
  85. httpclient:
  86. enabled: true #开启feign连接池
  87. max-connections: 100
  88. max-connections-per-route: 50
  89. client:
  90. config:
  91. default:
  92. connect-timeout: 2000 #默认连接超时时间
  93. read-timeout: 8000 #默认请求超时时间
  94. payCenterProxy:
  95. connect-timeout: 2000 #代理服务连接超时时间
  96. read-timeout: 25000 #代理服务请求超时时
  97. async:
  98. corePoolSize: 2
  99. maxPoolSize: 8
  100. queueCapacity: 1000
  101. namePrefix: async-service-