Thanks I tried creating rules to pin a specific shard to a specific server name like below But these rules didn’t take effect, can you specify how to specify rules to use hostname
rule=shard:shard1,node_name:server1.com:8983_solr rule=shard:shard2,node_name:server2.com:8983_solr http://localhost:8983/solr/admin/collections?action=CREATE&name=doc1&numShards=4&replicationFactor=1&rule=shard:shard1,node_name:server1.com:8983_solr&rule=shard:shard2,node_name:server2.com:8983_solr&rule=shard:shard3,node_name:server3.com:8983_solr&rule=shard:shard4,node_name:server4.com:8983_solr From: Jan Høydahl <jan....@cominvent.com> Sent: Monday, November 28, 2022 10:54 AM To: users@solr.apache.org Subject: Re: Solr create collections on different servers Have you looked at placement plug-in? Replica Placement Plugins :: Apache Solr Reference Guide<https://urldefense.com/v3/__https:/solr.apache.org/guide/solr/latest/configuration-guide/replica-placement-plugins.html__;!!NknhfzgzgQ!yIot_AE6ytPYhCDu3pM_SjL5diX-GQzaAEk1M0l7RUf40uBbOHpEReR375M1g8LMAltkLfiMk51wvTN5znoYmha_kLiN2EM$> solr.apache.org<https://urldefense.com/v3/__https:/solr.apache.org/guide/solr/latest/configuration-guide/replica-placement-plugins.html__;!!NknhfzgzgQ!yIot_AE6ytPYhCDu3pM_SjL5diX-GQzaAEk1M0l7RUf40uBbOHpEReR375M1g8LMAltkLfiMk51wvTN5znoYmha_kLiN2EM$> [favicon.ico]<https://urldefense.com/v3/__https:/solr.apache.org/guide/solr/latest/configuration-guide/replica-placement-plugins.html__;!!NknhfzgzgQ!yIot_AE6ytPYhCDu3pM_SjL5diX-GQzaAEk1M0l7RUf40uBbOHpEReR375M1g8LMAltkLfiMk51wvTN5znoYmha_kLiN2EM$> Jan Høydahl 28. nov. 2022 kl. 00:18 skrev Aravind Reddy Jangam <aravind.reddyjang...@clarivate.com.invalid<mailto:aravind.reddyjang...@clarivate.com.invalid>>: 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 <elyog...@elyograg.org<mailto:elyog...@elyograg.org>> Sent: Sunday, November 27, 2022 10:40 AM To: users@solr.apache.org<mailto:users@solr.apache.org> 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$<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$ <https://urldefense.com/v3/__http:/localhost:8983/solr/admin/zookeeper?detail=true&path=*2Flive_nodes__;JQ!!NknhfzgzgQ!zaP3hssuPysij-Z5zHGl-i773VNIc3e-y2fbMCjFricp4L4xgCQEwpvh0iQTq_Dd16OUG2DVm1qWNq6OdDPUWhH4YLLyMiC9$%20> " 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. 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.