Have you looked at placement plug-in?



Jan Høydahl

28. nov. 2022 kl. 00:18 skrev Aravind Reddy Jangam <[email protected]>:

Thanks Shawn, Earlier I only started solr in cloud mode on server
I ran below command to create collection, after starting solr on cloud mode on eight servers
Now core are created on eight shards, i.e each shard is on different server
./solr create_collection -c doc1 -s 4 -rf 2

One question, current when I run create_collection, each server has random shard
I would like for example server1 to have shard1 & server 2 to have shard 2, like below
Can you let me know how I can achieve this

Server1 - shard1
Server2 - shard2
Server3 -  shard3
Server4 - shard4



-----Original Message-----
From: Shawn Heisey <[email protected]>
Sent: Sunday, November 27, 2022 10:40 AM
To: [email protected]
Subject: Re: Solr create collections on different servers

On 11/27/22 08:38, Shawn Heisey wrote:
curl
https://urldefense.com/v3/__http://localhost:8983/solr/admin/zookeeper?detail=true&path=*2Flive_nodes__;JQ!!NknhfzgzgQ!zaP3hssuPysij-Z5zHGl-i773VNIc3e-y2fbMCjFricp4L4xgCQEwpvh0iQTq_Dd16OUG2DVm1qWNq6OdDPUWhH4YLLyMiC9$

That command will not work as-is.  I forgot the quotes.

curl
"https://urldefense.com/v3/__http://localhost:8983/solr/admin/zookeeper?detail=true&path=*2Flive_nodes__;JQ!!NknhfzgzgQ!zaP3hssuPysij-Z5zHGl-i773VNIc3e-y2fbMCjFricp4L4xgCQEwpvh0iQTq_Dd16OUG2DVm1qWNq6OdDPUWhH4YLLyMiC9$ "

Confidentiality note: This e-mail may contain confidential information from Clarivate. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this e-mail is strictly prohibited. If you have received this e-mail in error, please delete this e-mail and notify the sender immediately.

Reply via email to