Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Correct svc top counter with meta and merge SQL requests #5616

Merged

Conversation

lpinsivy
Copy link
Contributor

fix(monitoring) : Metaservices not counted properly in statuses filter

Merge SQL requests for statuses of services to:

  • combine ACL in one SQL request
  • combine selection of total services per status and total of ACK and DT services per status

This allow to correct issue with calculation of Meta-services

refs: #5458

@julienmathis
Copy link
Contributor

Please do a complete benchmark with more that 100 000 svc before validating this PR. It's very touchy to change code on this part.

@lpinsivy
Copy link
Contributor Author

lpinsivy commented Sep 1, 2017

Please find the result of the bench

screenshot at sept 01 10-52-00

Copy link
Contributor

@Dacchi Dacchi left a comment

Choose a reason for hiding this comment

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

Coding style must be improved.
Lines must be shorter than 120 characters.
Continued indentation must be 4 characters

@lpinsivy lpinsivy force-pushed the 5458-Metaservices-not-counted-properly-in-statuses-filter branch from 029ecab to 728623d Compare September 5, 2017 09:49
@lpinsivy
Copy link
Contributor Author

lpinsivy commented Sep 5, 2017

Done !

@Dacchi Dacchi merged commit be0e4de into 2.8.x Sep 6, 2017
@ganoze ganoze deleted the 5458-Metaservices-not-counted-properly-in-statuses-filter branch September 14, 2017 08:57
lpinsivy added a commit that referenced this pull request Sep 25, 2017
Add SELECT DISTINCT to do not count twice services
ganoze pushed a commit that referenced this pull request Sep 29, 2017
Add SELECT DISTINCT to do not count twice services
ganoze pushed a commit that referenced this pull request Oct 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants