自动缩放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.
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