【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號