Do multiple Solr shards on a single machine improve performance?

前端 未结 2 1732
无人及你
无人及你 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

    I ran some benchmarks of our search stack, and found that adding more Solr shards (on a single machine, with 16 physical cores) did improve performance up to about 8 shards (where I got a 6.5x speed up). This is on an index with ~1.5million documents, running complex range queries.

    So, it seems that Solr doesn't take advantage of multiple physical cores, when running queries against a single index.

提交回复
热议问题