application-prod.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. jedis:
  2. pool:
  3. config:
  4. maxTotal: 100
  5. maxIdle: 20
  6. maxWaitMillis: 20000
  7. host: 135.192.86.200
  8. port: 6379
  9. eureka:
  10. instance:
  11. leaseRenewalIntervalInSeconds: 10
  12. leaseExpirationDurationInSeconds: 30
  13. client:
  14. serviceUrl:
  15. defaultZone: http://135.192.86.200:8761/eureka/
  16. #defaultZone: http://localhost:8761/eureka/
  17. server:
  18. port: 8008
  19. tomcat:
  20. uri-encoding: UTF-8
  21. spring:
  22. http:
  23. encoding:
  24. charset: UTF-8
  25. enabled: true
  26. force: true
  27. application:
  28. name: comment-service
  29. redis:
  30. database: 0
  31. host: 135.192.86.200
  32. port: 6379
  33. pool:
  34. max-active: 300
  35. max-wait: 10000
  36. max-idle: 100
  37. min-idle: 0
  38. timeout: 0
  39. datasource:
  40. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  41. minIdle: 5
  42. validationQuery: SELECT 1 FROM DUAL
  43. initialSize: 5
  44. maxWait: 60000
  45. filters: stat,wall,log4j
  46. poolPreparedStatements: true
  47. type: com.alibaba.druid.pool.DruidDataSource
  48. url: jdbc:mysql://135.192.86.200:3306/TT?useUnicode=true&characterEncoding=utf-8
  49. maxPoolPreparedStatementPerConnectionSize: 20
  50. password: TT@12345678
  51. testOnBorrow: false
  52. testWhileIdle: true
  53. minEvictableIdleTimeMillis: 300000
  54. timeBetweenEvictionRunsMillis: 60000
  55. testOnReturn: false
  56. driverClassName: com.mysql.jdbc.Driver
  57. maxActive: 20
  58. username: TT
  59. #============== kafka ===================
  60. kafka:
  61. consumer:
  62. zookeeper:
  63. connect: 135.192.86.200:2181
  64. servers: 135.192.86.200:9092
  65. enable:
  66. auto:
  67. commit: true
  68. session:
  69. timeout: 6000
  70. auto:
  71. commit:
  72. interval: 100
  73. offset:
  74. reset: latest
  75. topic: test
  76. group:
  77. id: commentBusinessStatus
  78. concurrency: 10
  79. producer:
  80. zookeeper:
  81. connect: 135.192.86.200:2181
  82. servers: 135.192.86.200:9092
  83. retries: 0
  84. batch:
  85. size: 4096
  86. linger: 1
  87. buffer:
  88. memory: 40960