Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to configure sharding and replicas on startup (in config files) - Solr 5.3.1,

$
0
0

Is it possible to start solr cloud (5.3.1) with everything else already setup (Collections are defined in the config files etc.) with multiple shards/replicas? Basically I want to avoid having to make an additional call like

solr create -c multishardcollection -n msc -shards 5 -replicationFactor 2

after starting up the cluster because there might already requests coming in.

Additionally, is there a way to influence the sharding strategy? Let's say I have a couple of different data sets, e.g. poduct data of different customers. Each customer has a unique customer id and I want to put all product data of a specific customer to go on a specific shard. Does that even make sense? And if so, how would I go about it?

I know there is a possibility to set properties (like numShards, replicationFactor etc.) in the core.properties file, but since the core.properties file is not uploaded to zookeeper I don't quite understand what the purpose of that is. Can anyone explain?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>