Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrCloud" page has been changed by YonikSeeley. The comment on this change is: think about bootstrap. http://wiki.apache.org/solr/SolrCloud?action=diff&rev1=4&rev2=5 -------------------------------------------------- Key/doc partitioning is still done by the user (i.e. shards are opaque and solr will not know if documentA belongs in shardX or shardY) === Example Scenarios === + ===== Simplest Bootstrap ===== + How to create a new solr cluster + collection? Easiest would be to create one from an existing non-zookeeper server. + + Method 1: Environment variable (-Dboostrap_cluster=...) that could create files needed for a new collection, including copying the local config files into zookeeper before the core is created, then a zk-enabled core could be started. This would also bootstrap the entire cluster (default name = solr) if it had not been done yet. + + java -Dbootstrap_collection=collection_name -DzkHost=... -jar start.jar + + This method may be the most user friendly for first time users from the solr example. + + Method 2: A URL (a core container command) for moving an existing core to zookeeper (and creating a new collection). The core could be reloaded after the necessary files are moved. + + Method 3: A separate utility jar for creating a new cluster / collection. (Downsides - need to set up classpath correctly, etc.) + + ===== Adding existing shard ===== User starts up a shard and says it has "shardX" (assume there is not already an existing shardX in the cluster). === Other Questions ===
