Giter Site home page Giter Site logo

Comments (5)

HoustonPutman avatar HoustonPutman commented on May 26, 2024 2

There is a PR for adding ephemeral storage and cleaning up the section in their CRD pravega/zookeeper-operator#215. But the other functionality is already there.

from solr-operator.

HoustonPutman avatar HoustonPutman commented on May 26, 2024 1

I think we need an overhaul of the storage settings.

Something that looks like:

Spec:
    storage:
        storageType: <ephemeral,persistent>
        persistence:
            pvcSpec: <PVCSpec object>
            reclaimPolicy: <Reclaim,Delete>
         ephemeral:
            emptyDirVolumeSource: <EmptyDirVolumeSource object>

This is very similar (if not exactly the same as) the options soon to be in the Zookeeper Operator. Maybe we rename to dataStorage just to make sure that it's separate from the backupRestoreVolume stuff. Or maybe that moves into this section? Definitely some options to think about.

from solr-operator.

HoustonPutman avatar HoustonPutman commented on May 26, 2024

@sepulworld This is definitely a feature we need to add.

Unless I'm misunderstanding, I am pretty sure that the reclaimPolicy is a feature of the PersistentVolume, not the PVC. It says if the PV is unmapped from the PVC, what should happen to it. The only way that the solr operator could use this is for users to specify that they want a certain reclaim policy for their PVs by specifying it in the storageClass parameter of their pvcSpec.

What we need to do is delete PVCs after the statefulSet has been deleted. This would require using the finalizers much like the Zookeeper Operator does. I think following their lead would be good here. I think this is also an opportunity to refactor how we want the spec to look for this. Since we will have to create a new persistence option (or another name) that the pvcSpec and deletionPolicy will live under. We can make this backwards compatible at least for a minor version. But we will have to move things around eventually.

from solr-operator.

sepulworld avatar sepulworld commented on May 26, 2024

from solr-operator.

sepulworld avatar sepulworld commented on May 26, 2024

@swarupdonepudi was looking into this. We have to manually or script the cleanup of PVCs presently. Would be sweet to build in some of this automation into solr-operator. Is there an open PR with zk-operator for something new?

from solr-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.