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

Event Statistics: track counts of YK events by type and change-type #21

Merged
merged 22 commits into from
Jun 6, 2024

Conversation

richscott
Copy link
Collaborator

@richscott richscott commented May 23, 2024

Keep a set of basic statistical counts of events emitted from the yunikorn-core event stream in a map, with the key being the event's Type + ChangeType, and the value being the number of occurrences of events with that key combo.

Also introduce a new /ws/v1/event-statistics endpoint, which returns the current event counts in JSON-format.

This is intended to be used with submissions of different permutations of YK jobs, so we can determine minimum/ average/ maximum numbers of events that are emitted by YK for a given application volume. In the future, we may expand this data into a larger set of statistics, depending on other data.

Also fix many linting errors.

Fixes #21

richscott added 13 commits May 17, 2024 14:41
Also, add handler for new /ws/v1/event-statistics endpoint.
Improve JSON encoding of the config.EventTypeKey struct (it is
the key in the key-counts map) by implementing MarshalText().

Also, shorten the format of the rendered key to just "TYPE.CHANGE".
Also, add handler for new /ws/v1/event-statistics endpoint.
Improve JSON encoding of the config.EventTypeKey struct (it is
the key in the key-counts map) by implementing MarshalText().

Also, shorten the format of the rendered key to just "TYPE.CHANGE".
@richscott richscott requested a review from Mo-Fatah May 23, 2024 17:20
@richscott richscott self-assigned this May 23, 2024
@richscott richscott changed the title Track counts of YK events by type and change-type Event Statistics: track counts of YK events by type and change-type May 23, 2024
@richscott richscott requested a review from dejanzele May 31, 2024 16:29
pavlovic-ivan
pavlovic-ivan previously approved these changes Jun 4, 2024
internal/repository/postgres.go Outdated Show resolved Hide resolved
internal/ykclient/api_handlers.go Show resolved Hide resolved
internal/ykclient/client.go Show resolved Hide resolved
richscott added 2 commits June 4, 2024 13:38
Verify that GetApplication() uses default partition and queue names
when not given as arguments, per its comment description.
@richscott richscott requested a review from pavlovic-ivan June 5, 2024 18:40
Copy link
Collaborator

@pavlovic-ivan pavlovic-ivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good (from my side). I reviewed only Ci related files

@richscott richscott merged commit 09abe77 into G-Research:main Jun 6, 2024
3 checks passed
@richscott richscott deleted the rich/event-statistics branch June 6, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants