Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End-to-end reducer lag #230

Open
bjandras opened this issue Jul 24, 2023 · 0 comments
Open

End-to-end reducer lag #230

bjandras opened this issue Jul 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bjandras
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Add internal telemetry for how much the output of the system is behind current time, i.e. end-to-end lag introduced by the pipeline.

Describe the solution you'd like

Each core keeps the current timestamp in a member variable named current_timestamp_, defined in reducer/core.h. This timestamp gets updated with timestamps coming from incoming (received) messages (see Core::handle_rpc in reducer/core.cc). Ingest cores time-stamp originating messages using the system clock (the monotonic() function). Result: current end-to-end lag can be calculated in aggregation cores as monotonic() + get_boot_time() - current_timestamp_.

We can add a new internal stat named processing_time (or processing_lag, TBD), per aggregation core.

Describe alternatives you've considered

No response

Additional context

No response

@bjandras bjandras added the enhancement New feature or request label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant