You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2021/12/01 14:41:18 UTC

[GitHub] [solr-operator] gthvidsten opened a new issue #378: How to specify which PVC to use

gthvidsten opened a new issue #378:
URL: https://github.com/apache/solr-operator/issues/378


   I need the Solr Operator (and Zookeeper Operator) to have persistent storage so that the server can be brought down/up without any data loss. I found the `SolrCloud.spec.dataStorage.persistent` setting [here](https://apache.github.io/solr-operator/docs/solr-cloud/solr-cloud-crd.html) but I can't find how to specify which Persistent Volume Claim to use for this, or alternatively which Storage Class to use.
   
   How can I have the Solr Operator use a specific PVC or StorageClass for persistent storage?
   Similarily, how can I do the same for Zookeeper?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten commented on issue #378: How to specify which PVC to use

Posted by GitBox <gi...@apache.org>.
gthvidsten commented on issue #378:
URL: https://github.com/apache/solr-operator/issues/378#issuecomment-984690120


   I may have figured it out. The following command is used to install the Solr Cloud:
   
   ```
   helm install example-solr apache-solr/solr --version 0.5.0 \
   --set image.tag=8.4 \
   --set dataStorage.persistent.pvc.storageClassName="solr-storage" \
   --set zk.provided.persistence.spec.storageClassName="solr-storage"
   ```
   Where `solr-storage` is an existing and functional StorageClass.
   
   It would be nice if someone could confirm that this is correct and I'm not missing anything (and that default values for the rest of the settings are good enough)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten commented on issue #378: How to specify which PVC to use

Posted by GitBox <gi...@apache.org>.
gthvidsten commented on issue #378:
URL: https://github.com/apache/solr-operator/issues/378#issuecomment-989140690


   I believe everything was answered here, so closing this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten closed issue #378: How to specify which PVC to use

Posted by GitBox <gi...@apache.org>.
gthvidsten closed issue #378:
URL: https://github.com/apache/solr-operator/issues/378


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] HoustonPutman commented on issue #378: How to specify which PVC to use

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #378:
URL: https://github.com/apache/solr-operator/issues/378#issuecomment-984719551


   That is correct! I think with the Solr helm chart, you also need to include `--set dataStorage.type=persistent`, since the default is ephemeral.
   
   And as per the original question, you cannot use existing PVCs with a SolrCloud for data storage, since behind the scene it creates a StatefulSet, which it turn creates new individual PVCs for each SolrCloud pod.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org