cancel
Showing results for 
Search instead for 
Did you mean: 

How to do full solr reindex in kubernetes environment?

venur
Star Contributor
Star Contributor

Hi All

I have been tasked to do a full re-index and i used to do it by following the below steps with traditional setup.

1- Stop Solr

2- Delete items from /opt/alfresco-search-services/data/alfrescoModels

3- Delete items from /opt/alfresco-search-services/data/alfresco/index

4- Delete items from /opt/alfresco-search-services/data/archive/index

5- Start Solr

However, in kubernetes environemnt i am not sure what will be the right steps. If i stop the pod, i can't connect to the shell. 

If you have tried and have the steps handy, please share. Appreciate your response.

1 ACCEPTED ANSWER

fedorow
Elite Collaborator
Elite Collaborator

The kubernetes pod must have persistant volume mapad for /opt/alfresco-search-services/data path of solr6 container. Look at your yaml deployment file to find real storage path of this volume.

Stop pod, delete proper folders on persistant storage and start pod again.

p.s. you must have strong knowlage in container/docker/kubernetes technology, and know what you do to manipulate with kubernetes deployment.

View answer in original post

2 REPLIES 2

fedorow
Elite Collaborator
Elite Collaborator

The kubernetes pod must have persistant volume mapad for /opt/alfresco-search-services/data path of solr6 container. Look at your yaml deployment file to find real storage path of this volume.

Stop pod, delete proper folders on persistant storage and start pod again.

p.s. you must have strong knowlage in container/docker/kubernetes technology, and know what you do to manipulate with kubernetes deployment.

venur
Star Contributor
Star Contributor

 @fedorow that was the part i was missing. Thanks for help