初始化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.2 KiB

  1. server:
  2. port: 2068
  3. spring:
  4. cloud:
  5. nacos:
  6. discovery:
  7. server-addr: 127.0.0.1:9010
  8. application:
  9. name: 2068-yuexiu-read-application
  10. redis:
  11. host: 139.159.228.191
  12. port: 6377
  13. password: j4kd4ng3s8f3
  14. database: 0
  15. jedis:
  16. pool:
  17. max-active: 1000
  18. max-idle: 100
  19. min-idle: 8
  20. max-wait: 3000ms
  21. timeout: 10000ms
  22. data:
  23. mongodb:
  24. host: 127.0.0.1
  25. database: articledb
  26. port: 27017
  27. # redis:
  28. # host: 192.168.88.200
  29. # port: 5001
  30. # password:
  31. jpa:
  32. hibernate:
  33. use-new-id-generator-mappings: false
  34. swagger:
  35. enable: true
  36. # 可以配置api-url ribbon,对以上的服务进行负载均衡
  37. ribbon:
  38. ReadTimeout: 100000
  39. ConnectTimeout: 100000
  40. okhttp:
  41. enabled: true
  42. #feign
  43. feign:
  44. sentinel:
  45. enabled: true
  46. kafka:
  47. bootstrap-servers: 139.159.224.135:9092 #(kafka生产集群ip+port端口)
  48. listener:
  49. missing-topics-fatal: false
  50. producer:
  51. acks: all
  52. buffer-memory: 40960
  53. retries: 0
  54. batch-size: 4096
  55. properties:
  56. linger.ms: 1
  57. key-serializer: org.apache.kafka.common.serialization.StringSerializer
  58. value-serializer: org.apache.kafka.common.serialization.StringSerializer
  59. consumer:
  60. enable-auto-commit: true #(是否自动提交)
  61. auto-commit-interval: 100ms
  62. # 当kafka中没有初始offset或offset超出范围时将自动重置offset
  63. # earliest:重置为分区中最小的offset;
  64. # latest:重置为分区中最新的offset(消费分区中新产生的数据);
  65. # none:只要有一个分区不存在已提交的offset,就抛出异常;
  66. auto-offset-reset: latest #(实时生产,实时消费,不会从头开始消费)
  67. group-id: defaultConsumerGroup #(消费组 无消费)
  68. key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  69. value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  70. cloud:
  71. # 增加动态修改熔断规则支持
  72. sentinel:
  73. eager: true
  74. datasource:
  75. # 熔断配置
  76. ds1:
  77. apollo:
  78. namespaceName: application
  79. flowRulesKey: degrade-rules
  80. dataType: json
  81. ruleType: DEGRADE