单台机器上的多个 Solr 分片会提高性能吗? [英] Do multiple Solr shards on a single machine improve performance?
问题描述
在一台机器上运行多个 Solr 分片会提高性能吗?我希望 Lucene 是多线程的,但它似乎并没有在我的服务器上使用超过一个内核和 16 个物理内核.我意识到这取决于工作负载,但任何统计数据或基准测试都会非常有用!
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 on my server with 16 physical cores. I realize this is workload dependent, but any statistics or benchmarks would be very useful!
推荐答案
我跑了一些 我们搜索堆栈的基准,并发现添加更多 Solr 分片(在一台机器上,具有 16 个物理内核)确实将性能提高到大约 8 个分片(其中我得到了 6.5 倍的加速).这是一个包含约 150 万个文档的索引,运行复杂的范围查询.
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.
因此,在针对单个索引运行查询时,Solr 似乎没有利用多个物理内核.
So, it seems that Solr doesn't take advantage of multiple physical cores, when running queries against a single index.
这篇关于单台机器上的多个 Solr 分片会提高性能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!