• 请不要在回答技术问题时复制粘贴 AI 生成的内容
alwayshere
V2EX  ›  程序员

单机版的 ES,是不是 CPU 有多少线程, number_of_shards 就该设为多少?

  •  
  •   alwayshere · Sep 3, 2018 · 3002 views
    This topic created in 2843 days ago, the information mentioned may be changed or developed.

    假设单台服务器跑 ES,CPU 是 4 核 8 线程,那么是不是该设置 number_of_shards 为 8,这样的话 CPU 可以开启 8 个线程,并行的在 8 个分片中同时进行 query,有点类似于 RAID0 一样的原理,这样能缩短查询时间吗?能不能这样理解?

    1 replies    2018-09-03 09:24:53 +08:00
    py2ex
        1
    py2ex  
       Sep 3, 2018
    做试验对比就知道了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4054 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 10:16 · PVG 18:16 · LAX 03:16 · JFK 06:16
    ♥ Do have faith in what you're doing.