Giter Club home page Giter Club logo

Comments (3)

r0h4n avatar r0h4n commented on May 18, 2024

Need more details here

  • Are there common actions to be taken before and after any volume op?
  • Are there specific actions to be taken for any volume op?
  • Do the outcome of these pre/post actions change the atomicity of the volume op atom
  • Do these pre/post actions cause changes to other cluster objects?
  • Do these pre/post actions trigger any Notifications/Alerts/Flows/Atoms?

from gluster-integration.

shtripat avatar shtripat commented on May 18, 2024

Are there common actions to be taken before and after any volume op?

At the moment I dont any common action which are required before and after volume operation. Actions on existing volume like start rebalance etc need to have pre-check to make sure volume exists already. And post check to figure out if the said action was actually a success by checking the rebalance status for the volume. Check to find pre-existance of volume is common code which could be invoked from different flows.

Are there specific actions to be taken for any volume op?

This could be the case in some cases and should be ideally implemented as an atom and linked in the flow.

Do the outcome of these pre/post actions change the atomicity of the volume op atom

So currently the logic is such a way that if some pre-run fails, we dont continue to the actual atoms execution. Yes say during main atoms execution if it fails at certain stage, it might affect the atomicity of the volume. But detailed logging from the individual atoms and updation of the task with proper details might help end user to debug and revert the consequences. I dont think enough thought is given at the moment for ordering the atom's executions in a flow. The final solution to this is fore sure TaskFlow framework only I feel.

Do these pre/post actions cause changes to other cluster objects?

Few of the flows like rebalance, snapshots etc might affect other cluster objects as well. Mostly its like e.g. if rebalance started the cluster should not allow other actions. Even brick operation like delete etc should be disabled. This scenario in oVirt is handled with different levels of locking. Say for certain volume operation we hold lock at cluster level and no actions can be performed on any objects of the cluster. The hierarchy is cluster -> volume -> brick

Do these pre/post actions trigger any Notifications/Alerts/Flows/Atoms?

Again it depends on the specific flows and might be the case.

@r0h4n this PR is specific to create and delete volume flows only which are existing at the moment. May be I should change the description of the issue here :)

from gluster-integration.

shtripat avatar shtripat commented on May 18, 2024

Taken care as part of #154. Closing now.

from gluster-integration.

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.