Alfresco 搜索服务的搜索性能问题 [英] Search performance problems with Alfresco Search Services

查看:28
本文介绍了Alfresco 搜索服务的搜索性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试将带有 solr4 的 Alfresco CE 系统从带有 solr4 的 5.2 迁移到带有 Alfresco Search Services 的 Alfresco 6.1(我们尝试了 1.3 和 1.4),但是我们在使用 Alfresco Search Services/Solr6 时面临着巨大的性能问题:在类似设置上运行的搜索需要 3-5 倍的时间.

We are trying to migrate an Alfresco CE system from 5.2 with solr4 to Alfresco 6.1 with Alfresco Search Services (we tried 1.3 and 1.4) but we are facing massive performance problems using Alfresco Search Services / Solr6: Searches running on a similar setup take 3-5 x longer.

一些背景:

  • Alfresco 5.2/solr4 在 Ubuntu 16/OracleJdk 8 上运行
  • Alfresco 6.1/ASS 1.4 在 Ubuntu 18 上运行/采用 OpenJDK 11
  • 存储库和 ASS 在专用服务器上运行(不涉及 docker)
  • solr 索引存储在速度非常快的 ssd SAN ext4 设备上,随机和顺序访问/IOPS 数量没有问题
  • 所有盒子都有 8 个内核,16 GB RAM
  • 所有盒子都有 12 GB 堆空间的 jvm
  • 两个 solr 版本都具有相同的缓存配置
  • 两个 solr 版本具有相同的内存配置
  • solr 文档的数量:~ 7,000,000

我们可以观察到的:

  • 搜索像 alfresco、christmas、...这样的简单词,Alfresco 5.2/solr4 会在大约 1-2 秒内返回一个尚未缓存的结果
  • 搜索像 alfresco、christmas、...这样的简单词,Alfresco 6.1/solr6 会在大约 7-15 秒内返回一个尚未缓存的结果
  • Alfresco 5.2/solr4 在 solr admin ui 中显示使用 ~9 的 12 GB 堆空间
  • Alfresco 6.1/solr6 在 solr admin ui 中显示使用 ~3 的 12 GB 堆空间

我们已经尝试增加 RAM、堆空间、CPU,但搜索性能没有任何变化.我想知道为什么 sol46/ASS 占用的堆空间如此之少.

We already tried to increase RAM, heap space, CPU without any change in the search performance. I wonder why sol46/ASS consumes so little heap space.

有人有类似的经历吗?

我们应该怎样做才能获得更可接受的响应时间?

What should we do to get more acceptable response times?

我还尝试在 solr6 中配置分片(但不相信这解决了真正的问题)但是 在 Alfresco 6.1 CE 中创建 Solr 分片 接缝也不起作用.

I also tried to configure sharding in solr6 (without being convinced that this solves the real problem) but Creating Solr shards in Alfresco 6.1 CE seams not to work either.

推荐答案

它指出搜索性能问题是由社区为解决本地化限制(通过添加 locale = '*' 在搜索查询中).

it pointed out that the search performance issue was caused by a fix from the community to work around localization restrictions (by adding locale = '*' in the search query).

相反,索引应始终使用默认情况下未设置的跨语言环境属性创建.例如在 shared.properties

Instead the index should be always created with cross locale properties which is not set by default. e.g. in shared.properties

# Data types that support cross locale/word splitting/token patterns if tokenised
alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text
alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content
alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext

请查看 https://github.com/Alfresco/SearchServices/issues/234 了解更多详情.

please check https://github.com/Alfresco/SearchServices/issues/234 for more details.

这篇关于Alfresco 搜索服务的搜索性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆