server: port: 8080 # gRPC 服务端配置 grpc: server: # KeepAlive 配置(与客户端配合使用) keep-alive-time: 20s keep-alive-timeout: 5s permit-keep-alive-without-calls: true permit-keep-alive-time: 10s # 连接生命周期管理(服务端配置) max-connection-idle: 300s # 5分钟空闲后关闭连接 max-connection-age: 3600s # 1小时后强制关闭连接 max-connection-age-grace: 5s # 关闭前宽限期,让进行中的请求完成 # 线程池监控配置 thread: pool: monitor: enabled: true interval: 30 thread: threshold: 0.8 queue: threshold: 0.8 eureka: instance: prefer-ip-address: true #是否优先使用IP地址作为主机名的标识,默认false instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} #注册到eureka上的唯一实例ID lease-renewal-interval-in-seconds: 10 #表示eureka client发送心跳给server端的频率,默认30 lease-expiration-duration-in-seconds: 30 #表示eureka server至上一次收到client的心跳之后,等待下一次心跳的超时时间,在这个时间内若没收到下一次心跳,则将移除该instance,默认90 client: registry-fetch-interval-seconds: 5 #定时从Eureka Server拉取服务注册信息的间隔时间 serviceUrl: defaultZone: http://eureka-internal.piaoquantv.com/eureka/ spring: redis: hostName: r-bp1pi8wyv6lzvgjy5z.redis.rds.aliyuncs.com port: 6379 password: Wqsd@2019 timeout: 5000 # 增加到5秒,防止批量查询超时 lettuce: pool: # 增大连接池容量,防止高并发时连接等待 max-active: 64 max-wait: 2000 max-idle: 32 min-idle: 8 tair: hostName: r-bp1pi8wyv6lzvgjy5z.redis.rds.aliyuncs.com port: 6379 password: Wqsd@2019 timeout: 5000 # 增加到5秒,防止批量查询超时 lettuce: pool: max-active: 64 max-wait: 2000 max-idle: 32 min-idle: 8 apollo: meta: http://apolloconfig-internal.piaoquantv.com aliyun: log: endpoint: cn-hangzhou-intranet.log.aliyuncs.com accessKeyId: LTAIP6x1l3DXfSxm accessKeySecret: KbTaM9ars4OX3PMS6Xm7rtxGr1FLon project: recommend-feature