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

New instance and job panels #8169

Merged
3 commits merged into from
Nov 8, 2021
Merged

New instance and job panels #8169

3 commits merged into from
Nov 8, 2021

Conversation

Zelldon
Copy link
Member

@Zelldon Zelldon commented Nov 8, 2021

Description

  • Remove the process instance gauge, which was used to count the current running instances
  • Remove the job gauge, which was used to count the pending jobs

Boths metrics were error prone, and show misleading numbers if a fail-over or restart happened. To overcome this problem we use now counters, and show only the creation and completion rate separately.

onenamespace

For multi namespace it looks like this:

multiple-namespaces

When we have starter and simple starter running, without workers it looks like this:

starters

Related issues

closes #4657

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/0.25) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement

The gauge which tried to reflect the running instance count is removed, since it shows inaccurate data especially on fail over or restarts. We will switch to showing rates for creations and completions
The gauge which tried to reflect the pending jobs is removed, since it shows inaccurate data especially on fail over or restarts. We will switch to showing rates for creations and completions
Replace the running instance panel with panels which show the rate of process instance and job creations and panels which show the completion of process instances and jobs
@Zelldon Zelldon requested a review from npepinpe November 8, 2021 11:11
Copy link
Member

@npepinpe npepinpe left a comment

Choose a reason for hiding this comment

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

👍

Can you mention this in the team meeting, more importantly about the pitfalls of using a gauge, so at least everyone thinks about it twice the next time? 🙂

@Zelldon
Copy link
Member Author

Zelldon commented Nov 8, 2021

bors r+

ghost pushed a commit that referenced this pull request Nov 8, 2021
8169: New instance and job panels r=Zelldon a=Zelldon

## Description

 * Remove the process instance gauge, which was used to count the current running instances
 * Remove the job gauge, which was used to count the pending jobs

Boths metrics were error prone, and show misleading numbers if a fail-over or restart happened. To overcome this problem we use now counters, and show only the creation and completion rate separately. 


![onenamespace](https://user-images.githubusercontent.com/2758593/140731929-47828d5d-017c-41f2-8d07-682e0c2d5e90.png)


For multi namespace it looks like this:

![multiple-namespaces](https://user-images.githubusercontent.com/2758593/140731959-287b1c83-8111-488f-a145-6f60d4a304ff.png)


When we have starter and simple starter running, without workers it looks like this:

![starters](https://user-images.githubusercontent.com/2758593/140732000-76cc5613-46e8-4ee7-865a-175078139cfe.png)

<!-- Please explain the changes you made here. -->

## Related issues

<!-- Which issues are closed by this PR or are related -->

closes #4657



Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@ghost
Copy link

ghost commented Nov 8, 2021

Build failed:

@Zelldon
Copy link
Member Author

Zelldon commented Nov 8, 2021

bors r+

ghost pushed a commit that referenced this pull request Nov 8, 2021
8154: 8153 add  id attribute for userTaskForm r=korthout a=Lzgabel

## Description

Add default id attribute for userTaskForm.

## Related issues
closes #8153 



8169: New instance and job panels r=Zelldon a=Zelldon

## Description

 * Remove the process instance gauge, which was used to count the current running instances
 * Remove the job gauge, which was used to count the pending jobs

Boths metrics were error prone, and show misleading numbers if a fail-over or restart happened. To overcome this problem we use now counters, and show only the creation and completion rate separately. 


![onenamespace](https://user-images.githubusercontent.com/2758593/140731929-47828d5d-017c-41f2-8d07-682e0c2d5e90.png)


For multi namespace it looks like this:

![multiple-namespaces](https://user-images.githubusercontent.com/2758593/140731959-287b1c83-8111-488f-a145-6f60d4a304ff.png)


When we have starter and simple starter running, without workers it looks like this:

![starters](https://user-images.githubusercontent.com/2758593/140732000-76cc5613-46e8-4ee7-865a-175078139cfe.png)

<!-- Please explain the changes you made here. -->

## Related issues

<!-- Which issues are closed by this PR or are related -->

closes #4657



Co-authored-by: lzgabel <lz19960321lz@gmail.com>
Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@ghost
Copy link

ghost commented Nov 8, 2021

Build failed (retrying...):

ghost pushed a commit that referenced this pull request Nov 8, 2021
8169: New instance and job panels r=Zelldon a=Zelldon

## Description

 * Remove the process instance gauge, which was used to count the current running instances
 * Remove the job gauge, which was used to count the pending jobs

Boths metrics were error prone, and show misleading numbers if a fail-over or restart happened. To overcome this problem we use now counters, and show only the creation and completion rate separately. 


![onenamespace](https://user-images.githubusercontent.com/2758593/140731929-47828d5d-017c-41f2-8d07-682e0c2d5e90.png)


For multi namespace it looks like this:

![multiple-namespaces](https://user-images.githubusercontent.com/2758593/140731959-287b1c83-8111-488f-a145-6f60d4a304ff.png)


When we have starter and simple starter running, without workers it looks like this:

![starters](https://user-images.githubusercontent.com/2758593/140732000-76cc5613-46e8-4ee7-865a-175078139cfe.png)

<!-- Please explain the changes you made here. -->

## Related issues

<!-- Which issues are closed by this PR or are related -->

closes #4657



Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@ghost
Copy link

ghost commented Nov 8, 2021

Build failed:

@Zelldon
Copy link
Member Author

Zelldon commented Nov 8, 2021

bors r+

@ghost
Copy link

ghost commented Nov 8, 2021

Build succeeded:

@ghost ghost merged commit f0ac86e into develop Nov 8, 2021
@ghost ghost deleted the zell-instance-counter-metrics branch November 8, 2021 15:16
This pull request was closed.
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.

Wrong values for current WFI and stream processor/exporter metrics/graphs
2 participants