cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need help to understand if solr cloud changes worked

Praveenyamajala
Explorer
0 Likes
1,898

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?

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor
0 Likes

When you navigate Solr web panel, you should see Cloud navigation link, if the Solr is started in cloud mode.

Praveenyamajala
Explorer
0 Likes

Hi Mansur,

Thanks for the reply.

I deployed the above changes to dev. But Dev and stage looks same as shown below.

Are these changes not required ?

Even when the solr portal shows cloud, in the backoffice -> facet search config, it shows mode as standalone. Why is it so?

mansurarisoy
Contributor
0 Likes

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,

Answers (2)

Answers (2)

Praveenyamajala
Explorer
0 Likes

Thank you Sumit and Mansur. It clears our queries

former_member634058
Active Participant
0 Likes

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.

Praveenyamajala
Explorer
0 Likes

Hi Sumit,

Thanks for the answer.

As per your answer, even if mode is shown as standalone in the backoffice, it is actually running in cloud and need not change anything ? Am i right?

Do we need to update mode and endpoint in 'Default' solr config as said by Mansur?

former_member634058
Active Participant

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.