Autoscaling solr - Add pull replicas, not NRT replicas

*爱你&永不变心* 提交于 2021-01-28 11:22:04

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/60428945/autoscaling-solr-add-pull-replicas-not-nrt-replicas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!