mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-06 03:51:25 +08:00
update 优化 修改配置文件对应配置
This commit is contained in:
@@ -18,16 +18,16 @@ dubbo:
|
||||
username: ${spring.cloud.nacos.username}
|
||||
password: ${spring.cloud.nacos.password}
|
||||
parameters:
|
||||
namespace: ${spring.profiles.active}
|
||||
namespace: ${spring.cloud.nacos.discovery.namespace:public}
|
||||
metadata-report:
|
||||
address: redis://${spring.data.redis.host:localhost}:${spring.data.redis.port:6379}
|
||||
group: DUBBO_GROUP
|
||||
username: ${spring.data.redis.username:default}
|
||||
password: ${spring.data.redis.password}
|
||||
parameters:
|
||||
namespace: ${spring.profiles.active}
|
||||
database: ${spring.data.redis.database}
|
||||
timeout: ${spring.data.redis.timeout}
|
||||
namespace: ${spring.cloud.nacos.config.namespace:public}
|
||||
database: ${spring.data.redis.database:0}
|
||||
timeout: ${spring.data.redis.timeout:3000}
|
||||
# 消费者相关配置
|
||||
consumer:
|
||||
# 结果缓存(LRU算法)
|
||||
|
||||
@@ -1,18 +1,13 @@
|
||||
server:
|
||||
# undertow 配置
|
||||
undertow:
|
||||
# jetty 配置
|
||||
jetty:
|
||||
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
|
||||
max-http-post-size: 1GB
|
||||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
||||
# 每块buffer的空间大小,越小的空间被利用越充分
|
||||
buffer-size: 512
|
||||
# 是否分配的直接内存
|
||||
direct-buffers: true
|
||||
max-http-form-post-size: -1
|
||||
threads:
|
||||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
||||
io: 8
|
||||
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
||||
worker: 256
|
||||
# 最小线程数
|
||||
min: 8
|
||||
# 最大线程数
|
||||
max: 256
|
||||
|
||||
dubbo:
|
||||
application:
|
||||
@@ -27,7 +22,7 @@ dubbo:
|
||||
# 指定dubbo协议注册ip
|
||||
# host: 192.168.0.100
|
||||
# 开启虚拟线程
|
||||
# threadpool: virtual
|
||||
threadpool: virtual
|
||||
# 消费者相关配置
|
||||
consumer:
|
||||
# 超时时间
|
||||
@@ -50,7 +45,7 @@ spring:
|
||||
threads:
|
||||
# 开启虚拟线程 仅jdk21可用
|
||||
virtual:
|
||||
enabled: false
|
||||
enabled: true
|
||||
task:
|
||||
execution:
|
||||
# 从 springboot 3.5 开始 spring自带线程池
|
||||
|
||||
Reference in New Issue
Block a user