Coder Social home page Coder Social logo

Comments (3)

trink avatar trink commented on July 18, 2024
  1. IIRC it was by design; the thought was we would cache and not block the pipeline while elastic search was unavailable. If it never comes back there aren't a lot of options you could terminate the plugin and optionally stop Hindsight. An infinite retry would eventually backpressure the entire system and the reason for not discarding is because that is how it was configured.

  2. No the retry applies to the message already added to the batch so no data will be lost when it resumes.

  3. Only a failure return (-1) will log a warning

  4. Correct there isn't any mechanism to feed that information back at the moment.

  5. If you have set 'preserve_data = true' set then batch_count is restored along with the retry state

from lua_sandbox_extensions.

trink avatar trink commented on July 18, 2024

I think in this case the best thing to do would be add a termination option for the case you don't want the batch file to keep growing and you don't want to discard data. You would simply retry X times, terminate the plugin (based on your configuration you could even have that cause HS to shutdown) and then restart HS when elastic search is back on line. For the second option you could simply have retry X == 0 mean infinite retry where the data will build up in the HS queues until it backpressures due to limited disk space or elastic search comes back on line and it can be drained down in batch size chunks.

from lua_sandbox_extensions.

champtar avatar champtar commented on July 18, 2024

Hi,

  1. I'll try to add some options
  2. I was off by one :), the message that we use for the retry is already in the batch, so we don't drop it ...
    3)4) #89 i guess
  3. didn't know about this one, nice

Thanks

from lua_sandbox_extensions.

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.