Code Monkey home page Code Monkey logo

Comments (7)

hbs avatar hbs commented on September 25, 2024

You mention "This means that we cannot easily delete inactive series by executing a WarpScript.", could such deletions be performed using a call to the /api/v0/delete endpoint, possibly with the use of the 'metaonly' flag to simply remove the metadata?

from warp10-platform.

hbs avatar hbs commented on September 25, 2024

On the implementation side of things, what you describe looks a lot like a Directory plugin, why modify the Directory class instead of creating a Directory plugin?

[Updated] is it because the lastactivity is not available to plugins? This can be easily added to the plugin interface if need be.

from warp10-platform.

aurrelhebert avatar aurrelhebert commented on September 25, 2024

Indeed, it's not possible for us to do a delete with metalonly as selected a series subset to delete with a find is too costly.

from warp10-platform.

aurrelhebert avatar aurrelhebert commented on September 25, 2024

For the directory plugin, I didn't think about it at all. I will check but as long as we get the init series metadata, this cleaner could be a directory plugin indeed. However, for my use case, I would still need to provide, inside the directory, the source code enabling a clean stop once the directory has loaded HBase.

from warp10-platform.

aurrelhebert avatar aurrelhebert commented on September 25, 2024

With some second thought, I do not think it matches the directory plugin pattern, as I am adding context when initialising the directory with HBase (in case the lastactivity is too old send a delete message to Kafka). Otherwise I keep the same pattern, and the directory work as usual. It's only in the case where the parameter directory.cleaner.stop is set to true that I change the behaviour (storing no series in RAM and shutting down the directory when HBase is read). This parameter may have another name, as even if I use it for the directory cleaner it can be used globally for the directory.

from warp10-platform.

StevenLeRoux avatar StevenLeRoux commented on September 25, 2024

We discussed with @hbs and there could be a possibility as a trusted directory plugin which require Mathias to merge it :) Once done we will give it a look, but as I understood it, this case would have all necessary context to arbitrate a deletion while keeping the same usage pattern or running a job regularly.

from warp10-platform.

pi-r-p avatar pi-r-p commented on September 25, 2024

Hello @StevenLeRoux @aurrelhebert ,
2.11.0 is released with TrustedDirectoryPlugin. Waiting for your feedback...

from warp10-platform.

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.