Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-31 Thread Bernd Fehling
I created a jira SOLR-10733 for this problem with a new test for RuleEngine. Now I have also a patch to fix the problem added to SOLR-10733. How to proceed? Just set it to resolved and close it? Regards Bernd Am 23.05.2017 um 14:09 schrieb Noble Paul: > did you try the rule > shard:shard1,port

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-23 Thread Damien Kamerman
I'm not sure I fully understand what you're trying to do but this is what I do to ensure replicas are not on the same rack: rule=shard:*,replica:<2,sysprop.rack:* On 23 May 2017 at 22:37, Bernd Fehling wrote: > Yes, I tried that already. > Sure, it assigns 2 nodes with port 8983 to shard1 (e.g.

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-23 Thread Bernd Fehling
Yes, I tried that already. Sure, it assigns 2 nodes with port 8983 to shard1 (e.g. server1:8983,server2:8983). But due to no replica rule (which defaults to wildcard) I also get shard3 --> server2:8983,server2:7574 shard2 --> server1:7574,server3:8983 The result is 3 replicas on server2 and also

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-23 Thread Noble Paul
did you try the rule shard:shard1,port:8983 this ensures that all replicas of shard1 is allocated in the node w/ port 8983. if it doesn't , it's a bug. Please open aticket On Tue, May 23, 2017 at 7:10 PM, Bernd Fehling wrote: > After some analysis it turns out that they compare apples with ora

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-23 Thread Bernd Fehling
After some analysis it turns out that they compare apples with oranges :-( Inside "tryAPermutationOfRules" the rule is called with rules.get() and the next step is calling rule.compare(), but they don't compare the nodes against the rule (or rules). They compare the nodes against each other. E.g.

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-22 Thread Bernd Fehling
No, that is way off, because: 1. you have no "tag" defined. shard and replica can be omitted and they will default to wildcard, but a "tag" must be defined. 2. replica must be an integer or a wildcard. Regards Bernd Am 23.05.2017 um 01:17 schrieb Damien Kamerman: > If you want all the repli

Re: Rule-based Replica Placement not working with Solr 6.5.1

2017-05-22 Thread Damien Kamerman
If you want all the replicas for shard1 on the same port then I think the rule is: 'shard:shard1,replica:port:8983' On 22 May 2017 at 18:47, Bernd Fehling wrote: > I tried many settings with "Rule-based Replica Placement" on Solr 6.5.1 > and came to the conclusion that it is not working at all.

Rule-based Replica Placement not working with Solr 6.5.1

2017-05-22 Thread Bernd Fehling
I tried many settings with "Rule-based Replica Placement" on Solr 6.5.1 and came to the conclusion that it is not working at all. My test setup is 6 nodes on 3 servers (port 8983 and 7574 on each server). The call to create a new collection is "http://localhost:8983/solr/admin/collections?action=