How to do full solr reindex in kubernetes environment?

cancel
Showing results for 
Search instead for 
Did you mean: 
venur
Established Member

How to do full solr reindex in kubernetes environment?

Jump to solution

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 Solution

Accepted Solutions
fedorow
Senior Member II

Re: How to do full solr reindex in kubernetes environment?

Jump to solution

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 solution in original post

2 Replies
fedorow
Senior Member II

Re: How to do full solr reindex in kubernetes environment?

Jump to solution

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
Established Member

Re: How to do full solr reindex in kubernetes environment?

Jump to solution

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