spring:
  application:
    name: 4dkankan-center-scene
  cloud:
    nacos:
      config:
        server-addr: 120.24.144.164:8848
        file-extension: yaml
        namespace: 4dkankan-test
        extension-configs:
          - data-id: 4dkankan-center-scene.yaml
            group: DEFAULT_GROUP
            refresh: true
        shared-configs:
          - data-id: common-db-config.yaml
            group: DEFAULT_GROUP
            refresh: true

          - data-id: common-redis-config-52.yaml
            group: DEFAULT_GROUP
            refresh: true

          - data-id: common-rabbitmq-config.yaml
            group: DEFAULT_GROUP
            refresh: true

          - data-id: other-config.yaml
            group: DEFAULT_GROUP
            refresh: true

          - data-id: common-upload-config.yaml
            group: DEFAULT_GROUP
            refresh: true
      discovery:
        server-addr: 120.24.144.164:8848
        namespace: 4dkankan-test
    sentinel:
      transport:
        dashboard: 120.24.144.164:8888
        heartbeat-interval-ms: 500
        port: 8719
      eager: true #取消sentinel控制台懒加载
      #sentinel配置持久化nacos
      datasource:
        #流控规则
        flow:
          nacos:
            server-addr: ${spring.cloud.nacos.config.server-addr}
            dataId: ${spring.application.name}-flow-rules
            groupId: SENTINEL_GROUP
            namespace: 4dkankan-test
            rule-type: flow
        #熔断规则
        degrade:
          nacos:
            server-addr: ${spring.cloud.nacos.config.server-addr}
            dataId: ${spring.application.name}-degrade-rules
            groupId: SENTINEL_GROUP
            namespace: 4dkankan-test
            rule-type: degrade
#      log:
#        dir: ./logs # 默认值${home}/logs/csp/
#        switch-pid: true # 日志带上线程id

#开启feign熔断降级，如果没有开启，feign调用链路不会显示再sentinel控制中
#feign:
#  sentinel:
#    enabled: true

feign:
  httpclient:
    connection-timeout: 200000

server:
  tomcat:
    threads:
      min-spare: 100  #最小工作线程数
      max: 1000       #最大工作线程数，建议配置为cpu核心数的200~250倍
    accept-count: 1000   #能够接受的最大等待数，默认100。如果等待队列也被放满了，新的请求会被tomcat拒绝（connection refused）
    max-connections: 2000   #同一时间，tomcat能够接受的最大连接数。一般这个值要大于(max-threads)+(accept-count)
    connection-timeout: 3000  #连接建立超时时间







