on ‎2022 Mar 28 10:15 AM
Hi All,
We updated solr properties as mentioned below to change solr mode to cloud.
solrserver.instances.default.autostart=false
solrserver.instances.cloud.autostart=true
solrserver.instances.cloud.mode=cloud
solrserver.instances.cloud.hostname=localhost
solrserver.instances.cloud.port=8983
solrserver.instances.cloud.memory=512m
solrserver.instances.cloud.zk.host=
solrserver.instances.cloud.zk.upconfig=true
We could't understand if the solr is on cloud now. What are the ways to validate and confirm if solr is in cloud now?
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I guess you are working on CCV2 environment because of the ZooKeeper URLs. Solr instances are separate on CCV2 and have 3 ZooKeepers (what you see on the Cloud panel) for each environment. See: https://help.sap.com/viewer/b2f400d4c0414461a4bb7e115dccd779/latest/en-US/f7251d5a1d6848489b1ce7ba46...
For Backoffice, you should manually update server configuration to work with cloud solr on CCV2.
An example ImpEx for Solr cloud configuration is as follows
INSERT_UPDATE SolrServerConfig; name[unique = true] ; mode(code); solrQueryMethod(code); numShards; replicationFactor
; stageSolrServerConfig ; cloud ; POST ; 1 ; 1
INSERT_UPDATE SolrEndpointUrl;url[unique=true];solrServerConfig(name[default='stageSolrServerConfig'])[unique=true];
;"zookeeper-0.zookeeper.default.svc.cluster.local:2181"
;"zookeeper-1.zookeeper.default.svc.cluster.local:2181"
;"zookeeper-2.zookeeper.default.svc.cluster.local:2181"
UPDATE SolrFacetSearchConfig; name[unique = true] ; solrServerConfig(name)
; customIndex ; stageSolrServerConfig
You need the arrange index name according to your project.
Hope this helps,
Thank you Sumit and Mansur. It clears our queries
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mansur/Praveen,
Just an additional info on top of your answer above.
In CCV2, two properties will be injected into the system by default.
solr.config.Default.mode cloud
solr.config.Default.urls zookeeper-0.zookeeper,zookeeper-1.zookeeper,zookeeper-2.zookeeper
It means that if you are using "Default" as solr server config, making changes to solr operation mode or solr endpoint url wouldn't take effect.
So, if you are creating your own SolrServerConfig, please set the solr mode to cloud(*) and solr endpoint url to zookeeper-0.zookeeper,zookeeper-1.zookeeper,zookeeper-2.zookeeper, the same way as the properties that will be injected for "Default".
If you are using "Default" as SolrServerConfig, no change is required.
This might help further in understanding how and why solr is acting this way.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen.
Yes. It is not needed in case you are using the 'Default' solrServerConfig, and if you are using the CCV2 provided solr endpoints. Even if you change in 'Default', it will not be effective. For you to use a different endpoint, you have to change the solrServerConfig as well, like Mansur has mentioned in the first line of the impex script.
Thanks.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.