自动缩放Solr-添加请求副本,而不是NRT副本 [英] Autoscaling solr - Add pull replicas, not NRT replicas

查看:63
本文介绍了自动缩放Solr-添加请求副本,而不是NRT副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个特定的要求,我只想在节点故障后群集启动重新启动过程时,仅使用solr自动缩放功能创建拉式副本.但是,当节点关闭并启动时,使用solrcloud自动缩放会创建NRT类型副本.我已经浏览了策略规范列表中给出的示例: https://lucene.apache.org/solr/guide/7_4/solrcloud-autoscaling-policy-preferences.html#policy-specification ,但我找不到限制副本的示例按类型创建.我还尝试将群集设置为限制NRT副本的数量,但是在这种情况下,当自动缩放完成(关闭的节点)后,由于已经存在NRT副本的最大数量,因此不会添加新的副本.

I have a specific requirement where I just want to create only pull replicas using the solr autoscaling feature whenever the cluster starts the recovey process after a node failure. However Using solrcloud autoscaling creates NRT type replicas when node goes down and brought up. I have gone through the examples given in the policy specifcation list : https://lucene.apache.org/solr/guide/7_4/solrcloud-autoscaling-policy-preferences.html#policy-specification but I am not able to find a example that limits replica creation by type. I have also tried to set the cluster to limit the number of NRT replicas but in that case when autoscaling is done(a node made down), no new replicas get added as the max number of NRT replicas are already there.

那么有可能直接实现这种功能,如果没有,那么请提出一个理想的方法.

So is it possible to acheive such functionality directly, if no, then please suggest an ideal approach for the same.

推荐答案

副本类型提示属性在8.3版中引入-

The replica type hint property was introduced in version 8.3 - https://issues.apache.org/jira/browse/SOLR-13674

https://lucene.apache.org/solr/8_4_1/changes/Changes.html#v8.3.0.bug_fixes

这篇关于自动缩放Solr-添加请求副本,而不是NRT副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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