Git Product home page Git Product logo

Comments (4)

hamersaw avatar hamersaw commented on May 24, 2024 1

@Future-Outlier this is already being addressed, will assign accordingly. Thanks for the initiative!

from flyte.

dosubot avatar dosubot commented on May 24, 2024

🤖

Hello @hamersaw!

I'm Dosu, a bot designed to assist you with bugs, answer your queries, and help you journey through the world of open-source contribution. While waiting for a human maintainer, I'm here to make sure your issue doesn't go unnoticed.

I'm taking a quick look at your issue regarding the ActiveNodeExecutions and ActiveTaskExecutions metrics. We'll delve into it in a moment. Thanks for your patience!

from flyte.

hamersaw avatar hamersaw commented on May 24, 2024

One proposal, is to move these metrics to FlytePropeller so they can more accurately reflect actual execution status. A relatively high-level design is as follows:

  • Add NodeExecutionCount and TaskExecutionCount values to the ExecutionContext through the ControlFlow struct and increment these accordingly as FlytePropeller progresses through DAG execution (entrypoint here).
  • Maintain an in-memory mapping of execution_id to node and task execution counts that is updated as FlytePropeller evaluations executions. This update will in-turn update the prometheus gauge metric.
  • Use a separate go routine to periodically iterate over the in-memory mapping and remove executions that have been manually deleted (decrementing the gauge metric).

With this solution the metric under FlytePropeller restarts will be eventually consistent. Although, as the workflow reeval duration is, by default, 30s it should converge within that timeframe.

from flyte.

Future-Outlier avatar Future-Outlier commented on May 24, 2024

@hamersaw Are you working on this issue?
If not, can I try it?

from flyte.

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.