Steve,

Yes I set the set system property AWSAZ and I've checked the java properties in 
Solr and I can see them.

It maybe the way we are configuring Solr so let me explain that first.

So we have 90 server in AWS, 30 servers per AZ's.
90 shards for the cluster.
Each server has three instances of Solr running on it so every instance on the 
server has to be in the same replica set.
So for example shard 1 will have three replicas and each replica needs to be in 
a separate AZ.

So does the rule of replica:>2 work?

I just need all of the servers in an AZ to be in the same replica.  Does that 
make sense?

On 9/25/18, 9:08 AM, "Steve Rowe" <sar...@gmail.com> wrote:

    Chuck,
    
    The default Snitch is the one that’s used if you don’t specify one in a 
rule.  The sysprop.* tag is provided by the default Snitch.
    
    The only thing that seems wrong to me in your rules is “replica:1”, 
“replica:2”, and “replica:3” - these say that exactly one, two, and three 
replicas of each shard, respectively, must be on each of the nodes that has the 
respective sysprop value.
    
    Since these rules will apply to all nodes that match the sysprop value, you 
have to allow for the possibility that some nodes will have *zero* replicas of 
a shard.  So you could specify “replica:<2”, which means that no node can host 
more than one replica, but it's acceptable for a node to host zero replicas.
    
    Did you set system property AWSAZ on each Solr node with an appropriate 
value?
    
    --
    Steve
    
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lucidworks.com&d=DwIFaQ&c=kKqjBR9KKWaWpMhASkPbOg&r=J-2s3b-3-OTA0o6bGDhJXAQlB5Y3s4rOUxlh_78DJl0&m=uG91WrgZB5UTKLOAB53AcrY5LyBsJ3VyBH8cN7xe2mU&s=9V6TJoE0h5NMjEWZ38ipa3zgYvoLJ1H9GHplSz1DJLU&e=
    
    > On Sep 25, 2018, at 10:39 AM, Chuck Reynolds <creyno...@ancestry.com> 
wrote:
    > 
    > Steve,
    > 
    > I wasn't able to get the sysprop to work.  I think maybe there is a 
disconnect on my part.
    > 
    > From the documentation it looks like I can only use the sysprop tag if 
I'm using a Snitch.  Is that correct.
    > 
    > I can't find any example of anyone using the default Snitch.
    > 
    > Here is what I have for my rule:
    > 
rule=shard:*,replica:1,sysprop.AWSAZ:AZ1&rule=shard:*,replica:2,sysprop.AWSAZ:AZ2&rule=shard:*,replica:3,sysprop.AWSAZ:AZ3
    > 
    > I'm not specifying a snitch.  Is that my problem or is there a problem 
with my rule?
    > 
    > Thanks for your help.
    > On 9/21/18, 2:40 PM, "Steve Rowe" <sar...@gmail.com> wrote:
    > 
    >    Hi Chuck,
    > 
    >    One way to do it is to set a system property on the JVM running each 
Solr node, corresponding to the the AWS availability zone on which the node is 
hosted.
    > 
    >    For example, you could use sysprop “AWSAZ”, then use rules like:
    > 
    >       replica:<2,sysprop.AWSAZ:us-east-1
    >       replica:<2,sysprop.AWSAZ:us-west-1
    >       replica:<2,sysprop.AWSAZ:ca-central-1
    > 
    >    --
    >    Steve
    >    
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lucidworks.com&d=DwIFaQ&c=kKqjBR9KKWaWpMhASkPbOg&r=J-2s3b-3-OTA0o6bGDhJXAQlB5Y3s4rOUxlh_78DJl0&m=glt-Kw4TwOAGYMt6NB7R6qMysuNssE_CjJH46rL4tqo&s=6CzANqo-EwE1nnzHaTwr71MxQd7-im366kZUXznMKC8&e=
    > 
    >> On Sep 21, 2018, at 4:07 PM, Chuck Reynolds <creyno...@ancestry.com> 
wrote:
    >> 
    >> I'm using Solr 6.6 and I want to create a 90 node cluster with a 
replication
    >> factor of three.  I'm using AWS EC2 instances and I have a requirement to
    >> replicate the data into 3 AWS availability zones.  
    >> 
    >> So 30 servers in each zone and I don't see a create collection rule that
    >> will put one replica in each of the three zones.
    >> 
    >> What am I missing?
    >> 
    >> 
    >> 
    >> --
    >> Sent from: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__lucene.472066.n3.nabble.com_Solr-2DUser-2Df472068.html&d=DwIFaQ&c=kKqjBR9KKWaWpMhASkPbOg&r=J-2s3b-3-OTA0o6bGDhJXAQlB5Y3s4rOUxlh_78DJl0&m=glt-Kw4TwOAGYMt6NB7R6qMysuNssE_CjJH46rL4tqo&s=pnPq-r9xSpo7DZsgF-XgR0MyUIFNcaZpAI-xcX4HjCY&e=
    > 
    > 
    > 
    
    

Reply via email to