Browse Source

actor system配置写到配置文件

thing_master
siyang 1 year ago
parent
commit
ae76a13cdf
  1. 17
      application/src/main/resources/application.yml

17
application/src/main/resources/application.yml

@ -169,6 +169,23 @@ aviator:
# no limitation on loop count.Default is zero.
max_loop_count: 1000
actors:
system:
# 每个邮箱处理完这些数量的邮件后会重新找一个线程池中的线程进行消费,避免单个线程占用过多CPU
throughput: 5
# actor系统最大重启次数
maxActorInitAttempts: 3
# 定时线程数,目前没什么用
schedulerPoolSize: 1
# 顶级转发器线程数,由于不需要做任何实质性操作,因此只需要单线程即可
rootDispatcherSize: 1
# 租户线程可能会涉及到业务操作,给2个线程
tenantDispatcherSize: 2
# 非租户线程也可能会涉及到业务操作,给2个线程
nonTenantDispatcherSize: 2
# 设备处理是直接涉及到业务操作的,因此可以给多一点线程数,具体多少看企业数据量
device-dispatcher-size: 4
#队列相关配置
queue:
type: in-memory # 队列类型: inMemory / disruptor

Loading…
Cancel
Save