On 12/9/22 09:23, mtn search wrote:
We have a single SolrCloud running in K8s (dev env) by implementing a
Zookeeper stateful set and a Solr node stateful set. On startup the Solr
pods connect to the ZK ensemble defined in the ZK stateful set.
If we wanted more SolrClouds in this K8s cluster, would we create more
stateful sets? or within these current stateful sets be able to mark sets
of ZK pods and Solr pods for use by a specific SolrCloud?
I know pretty much nothing about k8s or the solr operator, so from that
perspective I can't answer your question.
I can tell you one thing ... you can have many clusters all using the
same ZK ensemble. For multiple SolrCloud clusters using the same ZK
setup, just add a chroot to the zkhost string used for each cluster.
You can use any name you like, these are just examples:
zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181/solr1
zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181/solr2
zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181/solr3
I would recommend a chroot for any SolrCloud cluster set up for high
availability with more than one Solr host.
Thanks,
Shawn