Do multiple Solr shards on a single machine improve performance?

前端 未结 2 1696
无人及你
无人及你 2021-02-01 23:28

Does running multiple Solr shards on a single machine improve performance? I would expect Lucene to be multi-threaded, but it doesn\'t seem to be using more than a single core o

2条回答
  •  清酒与你
    2021-02-02 00:28

    If you currently have a single box with a single shard, then splitting this shard into several shards:

    • is likely to worsen throughput,
    • may improve latency, by parallelizing query execution.

    I can't provide you with statistics or benchmarks because it depends on whether query execution is CPU or I/O bound: if query execution is already I/O bound on a single box then splitting the shard into several shards will even worsen throughput. You will need to test yourself, just take a production log and try to replay it in both scenarii.

提交回复
热议问题