📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

配置项作用 #

thread_pool.snapshot.max 配置项用于控制快照线程池的最大线程数

配置项属性 #

  • 配置路径: thread_pool.snapshot.max
  • 数据类型: Integer(整数)
  • 默认值: (CPU核心数 + 1) / 2,最大不超过 5
  • 是否可选: 是
  • 作用域: NodeScope(节点级别)
  • 动态更新: 是(可以动态更新,无需重启)

配置建议 #

默认配置 #

thread_pool:
  snapshot:
    # max 使用默认计算值

动态更新 #

PUT /_cluster/settings
{
  "transient": {
    "thread_pool.snapshot.max": 3
  }
}

相关配置 #

配置项作用默认值
snapshot.max最大线程数(CPU+1)/2, 最大5
snapshot.core核心线程数1
snapshot.keep_alive线程保活时间5m

注意事项 #

  1. I/O 密集: 过多线程不会提升 I/O 性能。

  2. 上限 5: 最大值限制为 5。