【ElasticSearch】配置记录
=======================================================
=======================================================
文档地址:https://www.elastic.co/guide/en/elasticsearch/reference/7.17/modules-threadpool.html
Thread pool types 线程池类型:
fixed 固定线程池
thread_pool:
write:
size: 30
queue_size: 1000
size 线程个数
queue_size 允许控制没有线程执行的挂起请求的队列大小。默认情况下,它设置为-1,这意味着它是无界的。当请求进来并且队列已满时,它将中止请求。
scaling 缩放线程池
thread_pool:
warmer:
core: 1
max: 8
keep_alive: 2m
core 核心线程个数
max 最大线程个数
keep_alive 决定了线程在线程池中应该保留多长时间而不做任何工作
缩放线程池包含动态数量的线程。这个数字与工作负载成正比,在core参数和max参数的值之间变化。
fixed_auto_queue_size 固定线程池自动队列数,这个是一个技术预览配置,8.0会移除该配置
thread_pool:
search:
size: 30
queue_size: 500
min_queue_size: 10
max_queue_size: 1000
auto_queue_frame_size: 2000
target_response_time: 1s
Allocated processors setting 设置处理器个数
node.processors: 32

浙公网安备 33010602011771号